html body dialog.am-player-confirm .am-player-confirm-controls {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

html body dialog.am-player-confirm .am-player-confirm-controls > button {
  min-width: 0;
  white-space: normal;
}

html body dialog.am-player-confirm .am-player-confirm-status:empty {
  display: none;
}

.wapper .header #hidden-menu .collapsible-menu > li > ul > li > a:is(
  [href="banlist"], [href^="banlist?"], [href$="/banlist"], [href$="/banlist/"], [href*="/banlist?"], [href*="/banlist/?"]
) :is(.fa, .fas, .far, .fa-window-close, svg) {
  display: none !important;
}

html body .automix .am-tournament-results.am-full-results {
  margin: 14px 0;
  padding: 14px 16px;
}

html body .automix .am-tournament-results.am-full-results > .am-tour-section-heading {
  margin: 0 0 8px;
  padding-bottom: 8px;
}

html body .automix .am-full-results .am-results-text {
  margin: 0;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.55;
}

html body .automix .am-full-results .am-results-fold > summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.am-results-fold > summary::-webkit-details-marker {
  display: none;
}

.am-results-fold-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #d4dee9;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.am-results-fold-label {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 9px;
  border: 1px solid #7a6d57;
  border-radius: 6px;
  background: linear-gradient(125deg, #2a3847, #1b2936);
  color: #f3d699;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.am-results-fold > summary:focus-visible {
  outline: 2px solid #b79a63;
  outline-offset: 3px;
}

.am-results-fold[open] > summary .am-results-fold-label {
  margin-top: 0;
  margin-bottom: 9px;
}

.am-results-fold:not([open]) .am-results-fold-close,
.am-results-fold[open] :is(.am-results-fold-preview, .am-results-fold-open) {
  display: none;
}

@media (max-width: 650px) {
  html body dialog.am-player-confirm .am-player-confirm-controls > button {
    padding: 6px 9px;
    font-size: 13px;
  }

  html body #am-dialog .am-team-actions:has(> button[data-archive-team] + a.am-button) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
    padding-top: 9px;
  }

  html body #am-dialog .am-team-actions:has(> button[data-archive-team] + a.am-button) > :is(button[data-archive-team], a.am-button) {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 5px 6px !important;
    font-size: 11px !important;
    text-align: center;
    text-wrap: balance;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html body #am-dialog .am-team-actions > button[data-edit-team] {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .automix #am-content.am-team-profile-page .am-team-history:has(> .am-team-history-row) {
    margin-top: 16px;
  }

  .automix #am-content.am-team-profile-page .am-team-history:has(> .am-team-history-row) > h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
  }

  .automix #am-content.am-team-profile-page .am-team-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    min-height: 62px;
    margin-top: 6px;
    padding: 8px 10px !important;
  }

  .automix #am-content.am-team-profile-page .am-team-history-row > div {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .automix #am-content.am-team-profile-page .am-team-history-row small {
    margin-top: 2px;
    font-size: 11px;
  }

  .automix #am-content.am-team-profile-page .am-team-history-row small:empty {
    display: none;
  }

  .automix #am-content.am-team-profile-page .am-team-history-row > span {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.25;
  }

  .wapper .content .automix #am-content.am-team-profile-page .am-team-history-row > a.am-button {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 36px !important;
    padding: 5px 7px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  html body .automix .am-tournament-results.am-full-results {
    margin: 9px 0;
    padding: 11px;
  }

  html body .automix .am-tournament-results.am-full-results > .am-tour-section-heading {
    margin: 0 0 7px !important;
    padding-bottom: 7px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  html body .automix .am-tournament-results.am-full-results .am-results-text,
  html body .automix .am-results-fold-preview {
    font-size: clamp(11px, 2.85vw, 13px) !important;
    line-height: 1.48 !important;
  }

  .am-results-fold-preview {
    -webkit-line-clamp: 3;
  }

  .am-results-fold-label {
    font-size: 12px;
  }
}
