/* 18.10.2026 — Tournament section only. Desktop headings and action button remain native. */
html body .automix .am-tournament-welcome{
  width:calc(100% - 32px);max-width:100%;min-width:0;box-sizing:border-box;
  margin:14px auto 20px;padding:5px 10px 10px;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
html body .automix .am-tournament-welcome>.am-tour-intro-heading{
  margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #c1a15c;
  font-size:clamp(16px,1.75vw,20px);font-weight:750;line-height:1.4;
  color:#e8c87b;
}
html body .automix .am-tournament-welcome>.am-tournament-intro.am-intro-prose{
  display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box;
  margin:0;padding:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:transparent!important;
}
html body .automix .am-tournament-welcome .am-tournament-intro>p{
  margin:0 0 10px;font-size:14px;line-height:1.55;color:#cbd5df;
}
html body .automix .am-tournament-welcome .am-tournament-intro>p:last-child{margin-bottom:0}

/* The tournament heading is DIRECTLY above its cover.  Keep the status dot animation. */
html body .automix .am-current-tournament>.am-tour-heading{margin-bottom:9px}
html body .automix .am-current-tournament>.am-tour-heading>.am-tour-status{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}

@media screen and (max-width:650px){
 /* A modest reading gutter, not edge-to-edge body copy or global zoom. */
 html body .automix .am-tournament-welcome{
   width:calc(100% - 20px);max-width:100%;
   margin:9px auto 12px;padding:4px 6px 6px;
 }
 html body .automix .am-tournament-welcome>.am-tour-intro-heading{
   margin:0 0 9px;padding:0 0 8px;
   font-size:clamp(13px,3.7vw,16px);line-height:1.35;
 }
 html body .automix .am-tournament-welcome .am-tournament-intro>p{
   margin:0 0 7px!important;padding:0!important;
   font-size:clamp(11px,3vw,13px)!important;line-height:1.46!important;
 }
 /* Single title row: name left, animated status + dot right; admin actions beneath. */
 html body .automix .am-current-tournament>.am-tour-heading.am-toolbar{
   display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
   grid-auto-rows:auto;align-items:center!important;column-gap:6px!important;row-gap:5px!important;
   width:100%;min-width:0;box-sizing:border-box;margin:4px 0 7px!important;padding:0 2px!important;
 }
 html body .automix .am-current-tournament>.am-tour-heading>.am-tour-number{display:none!important}
 html body .automix .am-current-tournament>.am-tour-heading>h2{
   grid-column:1;grid-row:1;min-width:0!important;width:auto!important;max-width:none;
   padding:0;margin:0!important;white-space:nowrap!important;overflow:visible;
   font-size:clamp(11px,3.1vw,15px)!important;line-height:1.25!important;
   font-weight:750;color:#e4ecf3;
 }
 html body .automix .am-current-tournament>.am-tour-heading>.am-tour-status{
   grid-column:2;grid-row:1;justify-self:end;align-self:center;gap:4px!important;
   min-height:23px;padding:3px 6px!important;margin:0!important;
   font-size:clamp(10px,2.8vw,12px)!important;line-height:1.1!important;
   white-space:nowrap!important;flex-wrap:nowrap;
 }
 html body .automix .am-current-tournament>.am-tour-heading>.am-tour-status .am-tour-live-dot{
   width:6px;height:6px;flex:0 0 6px;margin:0;
 }
 html body .automix .am-current-tournament>.am-tour-heading>button{
   grid-column:1/-1;justify-self:end;align-self:center;
   min-height:25px!important;padding:3px 7px!important;margin:0!important;
   font-size:10px!important;line-height:1.15!important;
 }
 /* Keep the actual image and tournament number badge; don't crop the banner. */
 html body .automix .am-current-tournament>.am-tour-cover-wrap{
   width:100%;min-width:0;margin:0 0 9px!important;border-radius:6px;
 }
 html body .automix .am-current-tournament .am-tour-cover{
   display:block;max-height:none;width:100%;height:auto;object-fit:contain;border-radius:6px;
 }
 html body .automix .am-current-tournament .am-tour-cover-number{
   right:6px;bottom:6px;width:43px;height:43px;font-size:18px;
 }
 html body .automix .am-current-tournament .am-tour-cover-number small{font-size:6px;letter-spacing:.07em}
 /* The tabs stay one row with touch scrolling, instead of growing into a tall stack. */
 html body .automix .am-current-tournament>.am-tour-nav{
   display:flex!important;flex-wrap:nowrap!important;gap:5px!important;
   max-width:100%;overflow-x:auto;overflow-y:hidden;
   padding:0 0 5px!important;margin:0 0 9px!important;
   scrollbar-width:thin;overscroll-behavior-x:contain;
 }
 html body .automix .am-current-tournament>.am-tour-nav>button{
   flex:none!important;min-height:29px!important;margin:0!important;
   padding:5px 7px!important;font-size:10px!important;
   line-height:1.2!important;white-space:nowrap;
 }
 /* Desktop's two-column passport, proportionally adapted rather than stacked. */
 html body .automix .am-current-tournament #tournament-archive-card .ta-passport-grid,
 html body .automix .am-current-tournament #tournament-archive-card.am-has-personal-awards .ta-passport-grid{
   display:grid!important;
   grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
   align-items:start;column-gap:7px!important;row-gap:6px!important;
   padding:8px!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-facts{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   gap:5px!important;min-width:0;margin:0!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-facts>*{
   grid-column:auto!important;width:100%;min-width:0;box-sizing:border-box;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format{
   min-height:0!important;margin:0!important;padding:0!important;border-radius:4px;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact>div,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format>div{
   display:grid!important;grid-template-columns:minmax(0,43%) minmax(0,57%)!important;
   align-items:stretch;gap:0!important;min-height:34px!important;padding:0!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact small,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format small{
   display:flex;align-items:center;min-width:0;height:auto;
   margin:0!important;padding:3px 4px!important;
   border:0!important;font-size:10px!important;line-height:1.16!important;
   font-weight:600;overflow-wrap:break-word;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact strong,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format strong{
   display:flex;align-items:center;min-width:0;
   margin:0!important;padding:3px 4px!important;
   font-size:10px!important;line-height:1.2!important;
   font-weight:700;overflow-wrap:break-word;word-break:normal;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-podium{
   min-width:0;margin:0!important;padding:0!important;
   background:transparent!important;border:0!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-section-title{
   font-size:12px!important;line-height:1.2!important;
   margin:1px 0 6px!important;padding:0 0 6px!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-runner-row{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   gap:5px!important;margin:5px 0 0!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-winner,
 html body .automix .am-current-tournament #tournament-archive-card .ta-runner{
   min-width:0;min-height:0!important;display:grid!important;
   grid-template-columns:minmax(0,39px) minmax(0,1fr)!important;
   gap:4px!important;padding:5px!important;border-radius:5px;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-prize-heading{
   font-size:10px!important;line-height:1.2!important;
   margin:0!important;padding:0!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-prize-content{
   display:flex!important;align-items:center;gap:4px!important;min-width:0;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-cup{
   width:18px!important;height:18px!important;flex:0 0 18px!important;object-fit:contain;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-prize-content strong{
   font-size:10px!important;line-height:1.2!important;
   overflow-wrap:break-word!important;word-break:normal!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-actions{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   padding:7px!important;gap:6px!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-actions>*{
   width:100%!important;min-height:34px!important;margin:0!important;
   padding:6px 5px!important;font-size:10px!important;line-height:1.2!important;
 }
 html body .automix .am-current-tournament>.am-tour-description,
 html body .automix .am-current-tournament .am-tour-description{
   box-sizing:border-box;width:100%;margin:9px 0!important;padding:11px!important;
 }
 html body .automix .am-current-tournament .am-tour-description>.am-tour-section-heading{
   font-size:14px!important;line-height:1.3!important;
   padding-bottom:7px!important;margin-bottom:7px!important;
 }
 html body .automix .am-current-tournament .am-tour-description>p{
   font-size:clamp(11px,2.85vw,13px)!important;
   line-height:1.48!important;margin:0!important;padding:0!important;
 }
}
@media (max-width:345px){
 html body .automix .am-current-tournament>.am-tour-heading>h2{font-size:10.5px!important}
 html body .automix .am-current-tournament>.am-tour-heading>.am-tour-status{font-size:10px!important;padding:3px 4px!important}
 html body .automix .am-current-tournament #tournament-archive-card .ta-passport-grid{gap:5px!important;padding:6px!important}
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact small,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format small,
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact strong,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format strong,
 html body .automix .am-current-tournament #tournament-archive-card .ta-prize-content strong{font-size:9px!important}
}
/* Tiny phones: avoid merging fact labels with their values inside the narrow left column. */
@media screen and (max-width:389px){
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact>div,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format>div{
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:auto auto!important;
   min-height:37px!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact small,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format small{
   min-height:0!important;padding:3px 5px 0!important;line-height:1.15!important;
 }
 html body .automix .am-current-tournament #tournament-archive-card .ta-fact strong,
 html body .automix .am-current-tournament #tournament-archive-card .ta-format strong{
   min-height:0!important;padding:1px 5px 4px!important;line-height:1.17!important;
 }
}

/* 18.10.2026 — Captain roster controls: one integrated strip for desktop and mobile. */
html body .automix .am-own-applications.am-captain-strips{
  display:grid;gap:7px;margin:10px 0 14px;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip{
  box-sizing:border-box;display:grid;
  grid-template-columns:minmax(0,1fr) max-content 40px;
  align-items:center;gap:10px;min-width:0;height:43px;
  padding:0 0 0 13px;
  background:linear-gradient(100deg,#182b3a 0%,#172432 55%,#142331 100%);
  border:1px solid #457389;border-radius:7px;
  box-shadow:inset 0 1px 0 rgba(168,216,238,.07);
  overflow:hidden;
}
html body .automix .am-captain-strip-name{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:#edf5fc;font-size:13px;font-weight:700;
  letter-spacing:.01em;line-height:1.2;
}
html body .automix .am-own-applications .am-captain-strip-status{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-width:0;max-width:100%;white-space:nowrap;
  padding:4px 8px;border:1px solid rgba(128,194,184,.3);
  border-radius:5px;color:#aedfcf;
  background:linear-gradient(100deg,rgba(58,119,110,.2),rgba(38,86,90,.12));
  font-size:12px;line-height:1.1;font-weight:700;letter-spacing:0;
}
html body .automix .am-captain-strip-status:before{
  content:'✓';display:inline-flex;align-items:center;justify-content:center;
  width:13px;height:13px;flex:none;border-radius:50%;
  border:1px solid currentColor;font-size:9px;font-weight:700;line-height:1;
}
html body .automix .am-own-applications .am-captain-strip-status--pending,
html body .automix .am-own-applications .am-captain-strip-status--review{
  color:#e8cea0;border-color:rgba(200,162,100,.36);
  background:rgba(116,88,48,.13);
}
html body .automix .am-captain-strip-status--pending:before,
html body .automix .am-captain-strip-status--review:before{content:'·';font-size:13px}
html body .automix .am-own-applications .am-captain-strip-status--rejected{
  color:#e5a9b0;border-color:rgba(215,123,135,.36);
  background:rgba(122,58,73,.14);
}
html body .automix .am-captain-strip-status--rejected:before{content:'!'}
html body .automix .am-own-applications .am-captain-strip-edit{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  align-self:stretch;justify-self:stretch;
  width:40px;min-width:40px;height:100%;min-height:0;
  margin:0!important;padding:0!important;
  border:0!important;border-left:1px solid rgba(116,164,190,.45)!important;
  border-radius:0!important;box-shadow:none!important;
  color:#b4dce9!important;
  background:linear-gradient(135deg,rgba(52,92,115,.45),rgba(27,56,73,.45))!important;
  font-size:0;cursor:pointer;transition:background-color .15s,color .15s;
}
html body .automix .am-own-applications .am-captain-strip-edit:hover{
  color:#f2f8fd!important;background:#28485b!important;
}
html body .automix .am-own-applications .am-captain-strip-edit:focus-visible{
  outline:2px solid #93d9e9!important;outline-offset:-3px!important;
}
html body .automix .am-captain-strip-edit svg{display:block;flex:none;width:18px;height:18px;pointer-events:none}
@media(max-width:650px){
 html body .automix .am-own-applications.am-captain-strips{margin:7px 0 10px;gap:5px}
 html body .automix .am-own-applications.am-captain-strips>.am-captain-strip{
  grid-template-columns:minmax(0,1fr) max-content 34px;
  gap:5px;height:37px;padding-left:8px;border-radius:6px;
 }
 html body .automix .am-captain-strip-name{font-size:clamp(10px,2.7vw,12px)}
 html body .automix .am-own-applications .am-captain-strip-status{
  gap:4px;padding:3px 5px;font-size:clamp(10px,3vw,12px);
 }
 html body .automix .am-captain-strip-status:before{width:11px;height:11px;font-size:8px}
 html body .automix .am-own-applications .am-captain-strip-edit{width:34px;min-width:34px}
 html body .automix .am-captain-strip-edit svg{width:16px;height:16px}
}
@media(max-width:350px){
 html body .automix .am-own-applications.am-captain-strips>.am-captain-strip{gap:4px;padding-left:6px}
 html body .automix .am-own-applications .am-captain-strip-status{padding:3px 4px;gap:3px;font-size:10px}
}

/* 18.10 — Tournament heading: title + status on the left; owner edit on the right.
   The animated dot and original status palette stay intact. */
html body .automix .am-current-tournament>.am-tour-heading.am-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  column-gap:12px!important;row-gap:0!important;align-items:center!important;
  min-width:0;width:100%;margin:7px 0 10px!important;padding:0 2px!important;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-main{
  grid-column:1;grid-row:1;display:flex;flex-direction:column;
  gap:6px;align-items:flex-start;justify-content:center;min-width:0;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-main>h2{
  display:block;flex:none!important;margin:0!important;padding:0!important;
  min-width:0!important;max-width:100%;width:auto;
  font-size:clamp(19px,2.1vw,26px)!important;line-height:1.25!important;
  color:#d7dfeb;font-weight:750;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-status-line{
  display:flex;gap:7px;align-items:center;min-width:0;
  font-size:12px;line-height:1.2;color:#9eafc0;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-status-caption{
  font-size:12px;font-weight:500;color:#9faec2;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-status-line>.am-tour-status{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  margin:0!important;padding:3px 8px!important;min-height:23px!important;
  border-radius:5px!important;font-size:12px!important;
  line-height:1.15!important;white-space:nowrap;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-status .am-tour-live-dot{
  width:7px!important;height:7px!important;flex:0 0 7px!important;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:6px;
  grid-column:2;grid-row:1;min-width:0;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-actions>.am-tour-primary-edit{
  box-sizing:border-box;min-height:35px!important;height:auto;
  padding:7px 11px!important;margin:0!important;
  border:1px solid #a98f55!important;border-radius:5px!important;
  background:#182130!important;color:#ead28b!important;
  font-size:13px!important;line-height:1.25!important;font-weight:700!important;
  white-space:nowrap;box-shadow:none!important;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-actions>.am-tour-primary-edit:hover{
  background:#293343!important;border-color:#d1ad62!important;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-extras{
  display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1;
  min-width:0;justify-content:flex-end;
}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-extras:empty{display:none}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-extras:not(:empty){padding-top:6px}
html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-extras>button{
  min-height:28px!important;padding:5px 9px!important;margin:0!important;
  font-size:11px!important;line-height:1.2!important;
}

/* Monitoring-style, distinct tournament tab controls on WEB and MOBILE. */
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar{
  display:flex!important;flex-wrap:wrap!important;gap:9px!important;
  box-sizing:border-box;min-width:0;max-width:100%;
  margin:15px 0 17px!important;padding:0 2px 2px!important;
  border:none!important;background:transparent!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button{
  box-sizing:border-box;flex:none!important;min-height:36px!important;height:auto;
  padding:8px 13px!important;margin:0!important;
  border:1px solid #465364!important;border-radius:5px!important;
  background:#182130!important;color:#dce4ed!important;
  box-shadow:none!important;font:700 13px/1.25 inherit!important;
  white-space:nowrap;transition:background .16s,border-color .16s;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button:hover{
  background:#263847!important;border-color:#647e8d!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button.active{
  background:linear-gradient(120deg,#285969,#1b3e4e)!important;
  border-color:#638d9d!important;color:#f2f7fa!important;
}
@media screen and (max-width:650px){
 html body .automix .am-current-tournament>.am-tour-heading.am-toolbar{
   grid-template-columns:minmax(0,1fr) max-content!important;
   align-items:center!important;column-gap:7px!important;
   margin:4px 0 8px!important;padding:0 2px!important;
 }
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-main{gap:4px}
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-main>h2{
   font-size:clamp(10.5px,3.3vw,14px)!important;
   line-height:1.2!important;white-space:nowrap!important;
 }
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-status-line{gap:5px!important}
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-status-caption{font-size:10px!important}
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-status-line>.am-tour-status{
   min-height:19px!important;padding:2px 5px!important;font-size:10px!important;gap:4px!important;
 }
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-status .am-tour-live-dot{
   width:6px!important;height:6px!important;flex:0 0 6px!important;
 }
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-actions>.am-tour-primary-edit{
   min-height:29px!important;padding:5px 8px!important;font-size:11px!important;
 }
 html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar{
   flex-wrap:nowrap!important;gap:6px!important;
   overflow-x:auto;overflow-y:hidden;max-width:100%;
   margin:11px 0 13px!important;padding:0 0 6px!important;
   scrollbar-width:thin;overscroll-behavior-x:contain;
 }
 html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button{
   flex:none!important;min-height:30px!important;
   padding:6px 9px!important;font-size:11px!important;
   border-radius:4px!important;
 }
}
@media (max-width:345px){
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-main>h2{font-size:10px!important}
 html body .automix .am-current-tournament>.am-tour-heading .am-tour-heading-actions>.am-tour-primary-edit{font-size:10px!important;padding:5px 6px!important}
}
