.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 25px;
}

.brand-lockup .logo {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
}

.brand-lockup > span,
.login-brands > span {
  width: 1px;
  height: 42px;
  background: #dedee2;
  flex: 0 0 auto;
}

.brand-lockup .cavan-logo {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.login-brands {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.login-brands .yayfest-login-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0;
}

.login-brands .cavan-login-logo {
  width: 132px;
  height: auto;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}

@media (min-width: 721px) {
  main {
    margin: 0 auto;
    align-self: start;
    padding-top: 36px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .data-surface {
    min-height: 0;
  }
}

nav button[hidden] {
  display: none !important;
}

main {
  min-width: 0;
}

.section-head.tools-only {
  justify-content: flex-end;
  align-items: center;
}

.section-head.tools-only .actions {
  margin-left: auto;
}

.lock-roster {
  width: 100%;
  height: 37px;
  margin-bottom: 8px;
  border: 1px solid #d8cdea;
  border-radius: 9px;
  background: #f5f1fa;
  color: #5b388d;
  font-size: 10px;
  font-weight: 650;
}

.roster-locked {
  margin: 13px 0 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #edf6f0;
  color: #247044;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 720px) {
  .section-head.tools-only .actions {
    width: 100%;
    margin-top: 0;
  }

  .lock-roster {
    min-height: 43px;
  }
}

@media (min-width: 721px) and (max-width: 1200px) {
  main {
    padding-right: 24px;
    padding-left: 24px;
  }

  #teams .team-line-summary {
    grid-template-columns: 40px minmax(0, 1fr) 90px 22px;
    gap: 11px;
  }

  .team-line-summary .quota-state {
    display: none;
  }

  #teams .team-line-actions {
    grid-template-columns: 1fr 1fr;
  }

  .section-head.tools-only .actions {
    width: 100%;
    justify-content: flex-end;
  }
}

#teams.teams {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e2e5;
  border-radius: 14px;
  background: #fff;
}

.team-line {
  border-bottom: 1px solid #e8e8eb;
}

.team-line:last-child {
  border-bottom: 0;
}

.team-line-summary {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr) 180px 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 0;
  background: #fff;
  color: #1d1d1f;
  text-align: left;
}

.team-line-summary:hover,
.team-line.open .team-line-summary {
  background: #faf9fc;
}

.team-line-name {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.team-line-name b {
  font-size: 13px;
}

.team-line-name small,
.team-line-contact small {
  overflow: hidden;
  color: #85858a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-line-contact {
  display: grid;
  gap: 4px;
}

.team-line-contact b {
  font-size: 12px;
}

.team-lock-state {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
}

.team-lock-state.open {
  background: #edf7f0;
  color: #267046;
}

.team-lock-state.locked {
  background: #f1edf7;
  color: #5b388d;
}

.team-chevron {
  color: #888;
  font-size: 19px;
  text-align: center;
  transition: transform .2s;
}

.team-line.open .team-chevron {
  transform: rotate(180deg);
}

.team-line-details[hidden] {
  display: none;
}

.team-line-details {
  padding: 18px;
  border-top: 1px solid #e7e7e9;
  background: #fafafa;
}

.team-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e2e2e5;
  border-radius: 10px;
  background: #fff;
}

.team-detail-grid.leader-only {
  grid-template-columns: repeat(2, 1fr);
}

.team-detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-right: 1px solid #e8e8eb;
}

.team-detail-grid > div:last-child {
  border-right: 0;
}

.team-detail-grid small {
  color: #8a8a90;
  font-size: 8px;
  letter-spacing: .7px;
}

.team-detail-grid b {
  font-size: 11px;
}

.quota-control {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #777;
  font-size: 10px;
}

.quota-control button {
  width: 30px;
  height: 30px;
  border: 1px solid #d6d6da;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}

.team-line-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-line-actions button {
  min-height: 40px;
  border: 1px solid #d8d8dc;
  border-radius: 9px;
  background: #fff;
  color: #333;
  font-size: 10px;
  font-weight: 650;
}

.team-line-actions .members {
  width: auto;
  grid-column: 1 / -1;
  justify-self: center;
  justify-content: center;
  width: min(380px, 100%);
}

.team-line-actions .toggle-quota {
  border-color: #d8cdea;
  color: #5b388d;
}

.team-line-actions .delete-team {
  color: #b42323;
}

.team-line-actions.leader-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: 14px auto 0;
}

.team-line-actions.team-edit-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.team-line-actions .toggle-team-lock {
  border-color: #d8cdea;
  color: #5b388d;
}

@media (max-width: 720px) {
  #teams.teams {
    border-radius: 12px;
  }

  .team-line-summary {
    grid-template-columns: 38px minmax(0, 1fr) auto 20px;
    gap: 9px;
    min-height: 68px;
    padding: 11px;
  }

  .team-line-summary .team-mark {
    width: 38px;
    height: 38px;
  }

  .team-line-contact {
    text-align: right;
  }

  .team-line-details {
    padding: 11px;
  }

  .team-detail-grid {
    grid-template-columns: 1fr;
  }

  .team-detail-grid > div {
    border-right: 0;
    border-bottom: 1px solid #e8e8eb;
  }

  .team-detail-grid > div:last-child {
    border-bottom: 0;
  }

  .team-line-actions {
    grid-template-columns: 1fr 1fr;
  }

  .team-line-actions.team-edit-actions {
    grid-template-columns: 1fr;
  }

  .team-line-actions button {
    min-height: 44px;
  }
}
