/* 18.10.2026 — final tournament polish. No changes to unrelated site modules. */
/* Captain's compact integrated strip: visible edge without a neon outline. */
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip {
  position:relative;
  border:1px solid #678392!important;
  background:linear-gradient(110deg,#192a36 0%,#162532 56%,#15222f 100%)!important;
  box-shadow:inset 2px 0 rgba(106,165,178,.34),inset 0 1px rgba(211,234,247,.09),0 1px 3px rgba(0,0,0,.15)!important;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip:hover {
  border-color:#7898a8!important;
}
html body .automix .am-own-applications .am-captain-strip-edit {
  border-left:1px solid rgba(145,185,204,.4)!important;
  background:linear-gradient(145deg,rgba(56,89,109,.5),rgba(28,55,73,.45))!important;
}
/* Same quiet steel-blue buttons on desktop and mobile. Active tab has a subtle
   teal gradient rather than a gold frame or bright fill. */
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button {
  border:1px solid #526677!important;
  border-radius:6px!important;
  color:#e3ebf0!important;
  background:linear-gradient(180deg,#253746 0%,#1a2937 100%)!important;
  box-shadow:inset 0 1px rgba(233,244,251,.065)!important;
  font-weight:700!important;
  text-shadow:none!important;
  transition:background .18s,border-color .18s,color .18s!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button:hover {
  border-color:#7593a4!important;
  background:linear-gradient(180deg,#2b4251,#203343)!important;
  color:#eff7fa!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button.active {
  border-color:#78a5b5!important;
  background:linear-gradient(115deg,#315c6b,#254757 72%,#1d3442)!important;
  color:#f2f5f2!important;
  box-shadow:inset 0 1px rgba(201,240,241,.13)!important;
}
/* A single Challonge link: desktop footer, mobile bottom of the right passport column. */
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions {
  display:grid!important;
  grid-template-columns:minmax(0,228px) minmax(0,228px) minmax(0,1fr)!important;
  gap:10px!important;
  padding:12px 16px!important;
  align-items:stretch!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer {
  display:inline-flex!important;
  grid-column:3;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
  width:auto!important;
  min-width:155px!important;
  max-width:100%!important;
  min-height:40px!important;
  margin:0!important;
  padding:8px 12px!important;
  border:1px solid #776b53!important;
  border-radius:6px!important;
  background:linear-gradient(125deg,#2a302e,#1d2a32)!important;
  color:#e3d0a6!important;
  box-shadow:inset 0 1px rgba(248,226,183,.07)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.24!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer:focus-visible {
  border-color:#b6a078!important;
  background:linear-gradient(125deg,#353a33,#223543)!important;
  color:#f0dfb6!important;
}
/* Narrow desktop widths should never clip the link. */
@media (min-width:651px) and (max-width:770px) {
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions {
    grid-template-columns:repeat(2,minmax(0,228px))!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer {
    grid-column:2;
    justify-self:end!important;
  }
}
@media (max-width:650px) {
  html body .automix .am-own-applications.am-captain-strips>.am-captain-strip {
    border-color:#6c8998!important;
  }
  html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button {
    border-radius:5px!important;
    min-height:34px!important;
    padding:6px 3px!important;
    box-shadow:inset 0 1px rgba(233,244,251,.07)!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding:8px!important;
  }
  /* The right-hand awards column stretches to the height of the facts column.
     The link sits on its final baseline, with breathing room below third place. */
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-passport-grid>.ta-podium {
    display:flex!important;
    flex-direction:column!important;
    align-self:stretch!important;
    min-height:100%!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-podium>.am-tour-challonge-footer {
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:flex-end!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:auto 0 0!important;
    padding:7px 10px!important;
    min-height:32px!important;
    border:1px solid #607588!important;
    border-radius:5px!important;
    color:#d7e5ea!important;
    background:linear-gradient(115deg,#243b4b,#172a39)!important;
    box-shadow:inset 0 1px rgba(213,233,243,.08)!important;
    font-size:clamp(10px,2.75vw,12px)!important;
    font-weight:700!important;
    line-height:1.2!important;
    text-decoration:none!important;
    white-space:nowrap!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-podium>.am-tour-challonge-footer:hover {
    border-color:#8aa7b5!important;
    color:#f1f7f9!important;
  }
}


/* 18.10 | FINAL ACTION BUTTONS (tour overview only).
   Shared visual language with sign-in controls/unread notification: calm layered
   graphite-blue panels and fine edge contrast, not solid brown/gold buttons.
   These selectors override legacy .am-tour-primary and :first-child rules. */
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-application-open.am-tour-primary,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-tour-teams-open {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:40px!important;
  height:100%!important;
  padding:9px 12px!important;
  margin:0!important;
  border-radius:6px!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.28!important;
  text-align:center!important;
  text-shadow:none!important;
  white-space:normal!important;
  box-shadow:inset 0 1px rgba(235,246,255,.10),0 2px 6px rgba(0,0,0,.12)!important;
  transition:background .18s,border-color .18s,color .18s!important;
}
/* Primary action is gently brighter, with a restrained warm title. */
/* Same surface as the Challonge action: this selector has the necessary
   specificity to replace the old turquoise primary button (also on mobile). */
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-application-open.am-tour-primary {
  border:1px solid #866a42!important;
  background:linear-gradient(125deg,#2a3744 0%,#1b2833 100%)!important;
  color:#e6d3aa!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.12)!important;
  border-radius:7px!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-application-open.am-tour-primary:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-application-open.am-tour-primary:focus-visible {
  background:linear-gradient(125deg,#324351 0%,#223443 100%)!important;
  border-color:#ae8e60!important;
  color:#f6e7c4!important;
}
/* Secondary action: lighter than the background, without a gold fill. */
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-tour-teams-open {
  border:1px solid #566e7d!important;
  background:linear-gradient(120deg,#253644 0%,#1b2b39 100%)!important;
  color:#dbe6ed!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-tour-teams-open:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-tour-teams-open:focus-visible {
  border-color:#86a7b6!important;
  background:linear-gradient(120deg,#2f4757,#233847)!important;
  color:#f2f7fa!important;
}
@media (max-width:650px){
 html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-application-open.am-tour-primary,
 html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions > button.am-tour-teams-open {
   min-height:38px!important;
   padding:7px 5px!important;
   font-size:clamp(10px,2.72vw,12px)!important;
   line-height:1.2!important;
 }
}


/* 18.10.2026 — requested button and document refinement. */
/* Captain team strip: visible but calm, no merge with the background. */
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip{
  border:1px solid rgba(124,167,187,.56)!important;
  background:linear-gradient(112deg,#182a37 0%,#162533 58%,#14212d 100%)!important;
  box-shadow:0 0 0 1px rgba(40,67,81,.78),inset 0 1px rgba(228,242,251,.08),inset 3px 0 rgba(118,176,197,.16)!important;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip:hover{
  border-color:rgba(138,184,203,.66)!important;
}
html body .automix .am-own-applications .am-captain-strip-status{
  border-color:rgba(144,199,188,.34)!important;
  background:linear-gradient(115deg,rgba(52,93,97,.34),rgba(25,55,63,.24))!important;
  box-shadow:inset 0 1px rgba(232,248,245,.06)!important;
}
html body .automix .am-own-applications .am-captain-strip-status--review,
html body .automix .am-own-applications .am-captain-strip-status--pending{
  border-color:rgba(184,121,126,.38)!important;
  background:linear-gradient(115deg,rgba(104,47,58,.28),rgba(64,31,42,.22))!important;
  color:#f2ddd4!important;
}
html body .automix .am-own-applications .am-captain-strip-edit{
  border-left:1px solid rgba(140,183,201,.38)!important;
  background:linear-gradient(135deg,rgba(45,74,92,.60),rgba(24,48,63,.48))!important;
}
html body .automix .am-own-applications .am-captain-strip-edit:hover,
html body .automix .am-own-applications .am-captain-strip-edit:focus-visible{
  background:linear-gradient(135deg,rgba(59,95,118,.72),rgba(30,58,76,.62))!important;
}

/* Tabs and compact controls in the calm sign-in / unread-notice language. */
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button{
  border:1px solid #7a6d57!important;
  background:linear-gradient(125deg,#2a3847 0%,#1b2936 100%)!important;
  color:#eef2f4!important;
  box-shadow:inset 0 1px rgba(255,255,255,.055),0 1px 2px rgba(0,0,0,.12)!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button:hover,
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button:focus-visible{
  border-color:#ac9568!important;
  background:linear-gradient(125deg,#34495b 0%,#25394a 100%)!important;
  color:#fff0cc!important;
}
html body .wapper .content .automix .am-current-tournament>.am-tour-nav.am-toolbar>button.active{
  border-color:#b79a63!important;
  background:linear-gradient(125deg,#355a69 0%,#244454 72%,#1b3443 100%)!important;
  color:#fff2d3!important;
}

/* Overview footer actions: All teams is the highlighted action, Apply is calmer. */
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,230px)) minmax(0,1fr)!important;
  gap:12px!important;
  padding:14px 18px!important;
  align-items:stretch!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-apply,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-teams,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer{
  min-height:42px!important;
  height:100%!important;
  border-radius:7px!important;
  padding:9px 14px!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:700!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.12)!important;
}

html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-teams{
  border:1px solid #bf9353!important;
  background:linear-gradient(125deg,#7b5d28 0%,#5f4924 46%,#413923 100%)!important;
  color:#f4e1b2!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-teams:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-teams:focus-visible{
  border-color:#d3af76!important;
  background:linear-gradient(125deg,#8d6c33 0%,#6b542d 48%,#4e4328 100%)!important;
  color:#ffedc4!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer{
  border:1px solid #866a42!important;
  background:linear-gradient(125deg,#2a3744 0%,#1b2833 100%)!important;
  color:#e6d3aa!important;
  justify-self:end!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer:focus-visible{
  border-color:#ae8e60!important;
  background:linear-gradient(125deg,#324351 0%,#223443 100%)!important;
  color:#f6e7c4!important;
}

/* Conditions tab: quieter document panels and compact controls. */
html body .wapper .content .automix .am-current-tournament .am-tour-document{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 16px!important;
  margin:12px 0 10px!important;
  border:1px solid rgba(179,136,69,.52)!important;
  border-radius:8px!important;
  background:linear-gradient(120deg,rgba(48,40,24,.34),rgba(20,31,44,.48))!important;
  box-shadow:none!important;
}
html body .wapper .content .automix .am-current-tournament .am-tour-document strong{
  display:block!important;
  margin:0 0 2px!important;
  color:#e4c67e!important;
  font-size:13px!important;
  line-height:1.2!important;
}
html body .wapper .content .automix .am-current-tournament .am-tour-document span{
  color:#cfd7df!important;
  font-size:11px!important;
  line-height:1.25!important;
}
html body .wapper .content .automix .am-current-tournament .am-tour-document .am-tour-doc-download,
html body .wapper .content .automix .am-current-tournament .am-document-upload .am-tour-doc-upload,
html body .wapper .content .automix .am-current-tournament button.am-tour-conditions-apply{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 14px!important;
  border-radius:7px!important;
  border:1px solid #bf9353!important;
  background:linear-gradient(125deg,#7b5d28 0%,#5f4924 46%,#413923 100%)!important;
  color:#f4e1b2!important;
  text-decoration:none!important;
  box-shadow:inset 0 1px rgba(255,240,205,.08),0 1px 2px rgba(0,0,0,.12)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
html body .wapper .content .automix .am-current-tournament .am-tour-document .am-tour-doc-download:hover,
html body .wapper .content .automix .am-current-tournament .am-document-upload .am-tour-doc-upload:hover,
html body .wapper .content .automix .am-current-tournament button.am-tour-conditions-apply:hover,
html body .wapper .content .automix .am-current-tournament .am-tour-document .am-tour-doc-download:focus-visible,
html body .wapper .content .automix .am-current-tournament .am-document-upload .am-tour-doc-upload:focus-visible,
html body .wapper .content .automix .am-current-tournament button.am-tour-conditions-apply:focus-visible{
  border-color:#d3af76!important;
  background:linear-gradient(125deg,#8d6c33 0%,#6b542d 48%,#4e4328 100%)!important;
  color:#ffedc4!important;
}
html body .wapper .content .automix .am-current-tournament .am-document-upload{
  margin-top:12px!important;
  padding:14px 16px 16px!important;
  border:1px dashed rgba(123,159,180,.46)!important;
  border-radius:8px!important;
  background:linear-gradient(125deg,rgba(23,44,60,.64),rgba(17,30,41,.86))!important;
}
html body .wapper .content .automix .am-current-tournament .am-document-upload h3{
  margin:0 0 4px!important;
  color:#e8d39b!important;
  font-size:13px!important;
  line-height:1.2!important;
}
html body .wapper .content .automix .am-current-tournament .am-document-upload p{
  margin:0 0 10px!important;
  color:#c8d2db!important;
  font-size:11px!important;
  line-height:1.35!important;
}
html body .wapper .content .automix .am-current-tournament .am-document-upload input[type="file"]{
  display:block!important;
  width:100%!important;
  margin:0 0 10px!important;
  padding:6px 8px!important;
  border:1px solid rgba(83,110,129,.55)!important;
  border-radius:6px!important;
  background:#0e1620!important;
  color:#d8e1e7!important;
  font-size:12px!important;
}

@media (max-width:650px){
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer{
    grid-column:1 / -1!important;
    justify-self:stretch!important;
  }
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-apply,
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-overview-teams,
  html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>.am-tour-challonge-footer{
    min-height:36px!important;
    padding:7px 8px!important;
    font-size:clamp(10.5px,2.9vw,12px)!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-tour-document{
    flex-direction:column!important;
    align-items:flex-start!important;
    padding:10px 12px!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-tour-document .am-tour-doc-download,
  html body .wapper .content .automix .am-current-tournament .am-document-upload .am-tour-doc-upload,
  html body .wapper .content .automix .am-current-tournament button.am-tour-conditions-apply{
    min-height:34px!important;
    padding:7px 10px!important;
    font-size:clamp(10.5px,2.8vw,12px)!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-document-upload{
    padding:12px!important;
  }
}


/* 18.10.2026 — follow-up fixes: stronger captain strip, calmer apply button, smaller mobile team cards. */
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip{
  position:relative!important;
  border:1px solid rgba(138,192,216,.82)!important;
  background:linear-gradient(112deg,#1d3141 0%,#182936 55%,#16222e 100%)!important;
  box-shadow:0 0 0 1px rgba(96,148,172,.30),0 10px 26px rgba(0,0,0,.14),inset 0 1px rgba(239,248,252,.09),inset 4px 0 rgba(123,193,221,.34)!important;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip::before{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  box-shadow:inset 0 0 0 1px rgba(204,232,244,.07)!important;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip:hover{
  border-color:rgba(160,214,236,.88)!important;
  box-shadow:0 0 0 1px rgba(112,170,195,.34),0 12px 28px rgba(0,0,0,.16),inset 0 1px rgba(239,248,252,.1),inset 4px 0 rgba(144,213,239,.40)!important;
}
html body .automix .am-own-applications .am-captain-strip-name{
  color:#f3f7fb!important;
  text-shadow:0 1px 0 rgba(0,0,0,.18)!important;
}
html body .automix .am-own-applications .am-captain-strip-status{
  border-color:rgba(145,206,194,.42)!important;
  background:linear-gradient(120deg,rgba(58,94,94,.42),rgba(28,54,60,.28))!important;
}

/* Apply button should match Challonge calm style; All teams stays highlighted stronger. */


/* Mobile teams list: slightly smaller so the whole content sits inside cleaner like on desktop. */
@media (max-width:650px){
  html.am-mobile-layout body .wapper .content .automix .am-team-list{
    gap:10px!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact:has(.am-team-metrics){
    grid-template-columns:30px minmax(0,1fr) 86px 9px!important;
    grid-template-rows:auto auto!important;
    gap:3px 6px!important;
    min-height:60px!important;
    padding:7px 8px!important;
    border-radius:10px!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact>img{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact .am-team-copy>b{
    font-size:13px!important;
    line-height:1.18!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact .am-team-copy>small{
    font-size:9.6px!important;
    line-height:1.18!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact>.am-team-metrics{
    gap:2px!important;
    padding-left:6px!important;
    border-left:1px solid rgba(96,121,138,.82)!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact .am-team-metric strong{
    font-size:13px!important;
    line-height:1.05!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact .am-team-metric small{
    font-size:8px!important;
    line-height:1.05!important;
  }
  html.am-mobile-layout body .wapper .content .automix .am-team-list .am-team.am-team-compact>.am-team-arrow{
    font-size:22px!important;
    line-height:1!important;
    align-self:center!important;
  }
}


/* 18.10.2026 — MOBILE TEAMS: retain the desktop row composition.
   The legacy mobile rule uses display:contents and moves the subtitle across
   the metrics column. Override that, do not simply shrink the card. */
@media screen and (max-width:650px){
  html body .wapper .content .automix .am-current-tournament .am-team-list,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) 82px 10px!important;
    grid-template-rows:minmax(46px,auto)!important;
    align-items:center!important;
    column-gap:7px!important;
    row-gap:0!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:62px!important;
    margin:0!important;
    padding:7px 9px!important;
    border-radius:8px!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>img,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>img{
    display:block!important;
    grid-column:1!important;
    grid-row:1!important;
    width:34px!important;
    height:34px!important;
    object-fit:contain!important;
    align-self:center!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-copy,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-copy{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    gap:3px!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-copy>b,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-copy>b{
    display:block!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    color:#eef4fb!important;
    font-size:clamp(11px,3.4vw,14px)!important;
    font-weight:700!important;
    line-height:1.15!important;
    text-overflow:ellipsis!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-copy>small,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-copy>small{
    display:block!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    color:#bcc8d6!important;
    font-size:clamp(9px,2.65vw,11px)!important;
    line-height:1.16!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:break-word!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-metrics,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-metrics{
    display:grid!important;
    grid-column:3!important;
    grid-row:1!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
    min-width:0!important;
    padding-left:6px!important;
    border-left:1px solid #526476!important;
    align-items:center!important;
    align-self:stretch!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-metric strong,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-metric strong{
    font-size:clamp(13px,3.55vw,15px)!important;
    line-height:1.15!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-metric small,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact .am-team-metric small{
    font-size:clamp(8px,2.3vw,9px)!important;
    line-height:1.16!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-arrow,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>.am-team-arrow{
    grid-column:4!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
    font-size:22px!important;
    line-height:1!important;
  }
}
@media screen and (max-width:350px){
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact{
    grid-template-columns:30px minmax(0,1fr) 78px 9px!important;
    column-gap:5px!important;
    padding:6px 7px!important;
  }
  html body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>img,
  html.am-mobile-layout body .wapper .content .automix .am-current-tournament .am-team-list>.am-team.am-team-compact>img{
    width:30px!important;height:30px!important;
  }
}


/* 18.10 / 19.10 — Captain row copper shimmer: two clipped background layers.
   The old masked ::before pseudo-element could spill into the whole tournament
   content on iOS Safari after opening/reflowing the mobile navigation.
   Use paint confined to the actual row border instead, without a mask. */
@keyframes am-copper-border-flow {
  0%   { background-position:0 0, 0% 50%; }
  100% { background-position:0 0, 100% 50%; }
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip {
  position:relative!important;
  isolation:isolate!important;
  box-sizing:border-box!important;
  border:1.5px solid transparent!important;
  background-image:
    linear-gradient(108deg,#192d3b 0%,#172532 55%,#15222e 100%),
    linear-gradient(105deg,#855738 0%,#ad7545 15%,#cc9556 29%,#e2b66f 43%,#a9693d 56%,#94603c 71%,#d0a06b 86%,#855738 100%)!important;
  background-origin:padding-box,border-box!important;
  background-clip:padding-box,border-box!important;
  background-size:100% 100%,230% 100%!important;
  background-position:0 0,0% 50%;
  background-repeat:no-repeat!important;
  animation:am-copper-border-flow 12s ease-in-out infinite alternate!important;
  box-shadow:0 0 0 1px rgba(95,69,39,.27),0 0 10px rgba(166,100,42,.10),inset 0 1px rgba(244,221,176,.045)!important;
}
/* Remove the former masked copper overlay completely, not just its animation. */
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip::before {
  content:none!important;
  display:none!important;
  animation:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}
html body .automix .am-own-applications.am-captain-strips>.am-captain-strip:hover {
  box-shadow:0 0 0 1px rgba(106,75,40,.32),0 0 12px rgba(176,107,47,.15),inset 0 1px rgba(247,225,186,.065)!important;
}
html body .automix .am-own-applications .am-captain-strip-status--approved {
  color:#adddce!important;
  border-color:rgba(135,192,180,.43)!important;
  background:linear-gradient(115deg,rgba(49,102,100,.27),rgba(25,65,74,.16))!important;
}
html body .automix .am-own-applications .am-captain-strip-edit {
  border-left:1px solid rgba(157,174,183,.35)!important;
  background:linear-gradient(135deg,rgba(49,82,103,.53),rgba(27,55,74,.45))!important;
}
@media(prefers-reduced-motion:reduce){
  html body .automix .am-own-applications.am-captain-strips>.am-captain-strip {
    animation:none!important;
    background-position:0 0,44% 50%!important;
  }
}

/* Footer actions: apply button = same calm style as Challonge; teams button = slightly stronger warm accent. */

html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-teams-open{
  border:1px solid #b0884f!important;
  background:linear-gradient(125deg,#7f612b 0%,#6f5528 28%,#5e4724 62%,#4e3d22 100%)!important;
  color:#f6e2b4!important;
  box-shadow:inset 0 1px rgba(255,232,180,.16)!important;
}
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-teams-open:hover,
html body .wapper .content .automix .am-current-tournament #tournament-archive-card .ta-actions>button.am-tour-teams-open:focus-visible{
  border-color:#c39b62!important;
  background:linear-gradient(125deg,#8d6d32 0%,#785c2b 56%,#624a25 100%)!important;
  color:#fff0cb!important;
}

/* 18.10 mobile conditions: desktop-like hierarchy scaled to the compact Overview.
   Only the conditions tab is affected; the team list, desktop and dialogs stay unchanged. */
@media screen and (max-width:650px){
 html body .wapper .content .automix .am-current-tournament .am-tour-conditions.am-conditions-two-sections{
   box-sizing:border-box!important;
   width:100%!important;
   min-width:0!important;
   margin:10px 0 10px!important;
   padding:12px 12px 14px!important;
   border:1px solid rgba(71,92,110,.65)!important;
   border-radius:8px!important;
   background:rgba(18,29,42,.74)!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-conditions-two-sections .am-condition-flat{
   display:block!important;
   width:100%!important;
   min-width:0!important;
   margin:0!important;
   padding:0!important;
   border:0!important;
   background:transparent!important;
   box-shadow:none!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-conditions-two-sections .am-condition-flat+.am-condition-flat{
   margin-top:16px!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-conditions-two-sections .am-condition-flat>.am-tour-section-heading{
   font-size:clamp(13px,3.7vw,15px)!important;
   font-weight:700!important;
   line-height:1.32!important;
   margin:0 0 8px!important;
   padding:0 0 7px!important;
   border:0!important;
   border-bottom:1px solid rgba(218,177,102,.78)!important;
   border-radius:0!important;
   background:transparent!important;
   color:#e7c880!important;
   -webkit-text-fill-color:#e7c880!important;
   text-transform:none!important;
   letter-spacing:0!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-conditions-two-sections .am-condition-flat>.am-results-text{
   width:100%!important;
   min-width:0!important;
   margin:0!important;
   padding:0!important;
   font-size:clamp(11.25px,3.0vw,12.5px)!important;
   font-weight:400!important;
   line-height:1.46!important;
   color:#cad5e0!important;
   white-space:pre-wrap!important;
   overflow-wrap:anywhere!important;
   letter-spacing:0!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-tour-document{
   margin:9px 0!important;
   gap:6px!important;
 }
 html body .wapper .content .automix .am-current-tournament .am-document-upload{
   margin-top:9px!important;
 }
}
