.team-edit-upload-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.team-edit-upload--media {
  min-width: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.72rem;
}

.team-edit-upload--media .team-edit-upload__head {
  display: grid;
  gap: 0.2rem;
}

.team-edit-upload--media .team-edit-upload__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.72rem;
  align-items: stretch;
}

.team-media-item {
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.66rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.team-media-item__head {
  display: grid;
  gap: 0.18rem;
}

.team-media-item__head strong {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.team-media-item__head .note {
  margin: 0;
  font-size: 0.78rem;
}

.team-media-item .team-upload-widget,
.team-media-item .cover-upload__controls,
.team-media-item .upload-picker {
  min-width: 0;
}

.team-media-item .team-upload-widget {
  align-content: start;
}

.team-media-item--avatar .team-upload-widget {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
}

.team-media-item--cover .team-upload-widget {
  grid-template-columns: 1fr;
  gap: 0.58rem;
}

.team-media-item .cover-upload__preview {
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.34);
}

.team-media-item .cover-upload__preview:hover {
  border-color: var(--foreground);
}

.team-media-item .cover-upload__preview:active {
  transform: scale(0.995);
}

.team-media-item .cover-upload__preview:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

.team-media-item--avatar .cover-upload__preview {
  width: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 0.72rem;
}

.team-media-item--avatar .cover-upload__placeholder {
  color: rgba(233, 239, 255, 0.92);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.team-media-item--cover .cover-upload__preview {
  width: 100%;
  aspect-ratio: 15 / 4;
  border-radius: 0.72rem;
}

.team-media-item--cover .cover-upload__placeholder {
  text-transform: none;
  letter-spacing: 0.02em;
}

.team-media-item .cover-upload__controls {
  display: grid;
  gap: 0.45rem;
}

.team-media-item .upload-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.52rem;
}

.team-media-item .upload-picker label.button,
.team-media-item .upload-picker button.button {
  max-width: 100%;
  min-height: 40px;
  padding: 0.56rem 0.92rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.team-media-item [data-team-upload-filename] {
  display: block;
  max-width: 100%;
  min-width: 0;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-edit-upload--media .team-edit-upload__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.team-edit-upload--media .team-edit-upload__actions .button[disabled] {
  opacity: 0.45;
  filter: saturate(0.55);
  transform: none;
}

.team-layout .publish-request-item__actions {
  align-items: center;
}

.team-layout .publish-request-item__actions .button {
  min-height: 34px;
  padding: 0.48rem 0.84rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.team-layout--split .publish-request-item--member-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.52rem;
}

.team-layout--split .publish-request-item__identity {
  min-width: 0;
}

.team-layout--split .publish-request-item__name,
.team-layout--split .publish-request-item__username {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-layout--split .publish-request-item__username {
  margin: 0.16rem 0 0;
}

.team-layout--split .publish-request-item--member-request .publish-request-item__actions {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.42rem;
}

.team-layout--split .publish-request-item--member-request .publish-request-item__actions form {
  flex: 0 0 auto;
}

.team-layout--split .publish-request-item--member-request .publish-request-item__actions .button {
  min-height: 32px;
  padding: 0.4rem 0.72rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.team-page .team-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.42rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.06rem;
  scrollbar-width: thin;
}

.team-page .team-tabs {
  background: var(--card);
  background-image: none;
}

.team-page .team-tab-trigger {
  flex: 1 1 0;
  min-width: 170px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--muted);
  background-image: none;
}

.team-page .team-tab-trigger:hover,
.team-page .team-tab-trigger:focus-visible,
.team-page .team-tab-trigger.is-active,
.team-page .team-tab-trigger[aria-selected="true"] {
  background: var(--card);
  background-image: none;
}

.team-page .team-meta-list a,
.team-page .team-meta-list a:visited,
.team-page .team-meta-list a:hover,
.team-page .team-meta-list a:focus-visible {
  text-decoration: none;
  color: inherit;
}

.team-page .team-recent-card .team-card__head {
  margin-bottom: 0.22rem;
}

.team-page .team-recent-list {
  display: grid;
  gap: 0.52rem;
  margin-top: 0.08rem;
}

.team-page .team-recent-list .team-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.62rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.66rem;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.team-page .team-recent-list .team-recent-item:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.team-page .team-recent-list .team-recent-item .team-update-item__main strong {
  font-size: 0.86rem;
  line-height: 1.34;
}

.team-page .team-recent-list .team-recent-item .team-update-item__main span {
  font-size: 0.82rem;
  line-height: 1.42;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.team-page .team-recent-list .team-recent-item .team-update-item__time {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  white-space: nowrap;
  padding-top: 0.06rem;
}

.team-page .team-recent-list .team-recent-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 0.62rem;
}

.team-page .team-notify-list {
  display: grid;
  gap: 0.58rem;
  padding-bottom: 0.18rem;
  margin-bottom: 0;
}

.team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-card {
  background: var(--card);
  background-image: none;
}

.team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-series-card {
  min-height: 0;
  grid-template-rows: auto auto auto;
  align-content: start;
}

.team-page .team-notify-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 0.64rem;
  padding: 0.68rem 0.76rem;
  border: 1px solid var(--border-color);
  border-radius: 0.66rem;
  background: var(--card);
  background-image: none;
  min-width: 0;
}

.team-page .team-notify-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: none;
}

.team-page .team-notify-list .team-notify-item:last-child {
  padding-bottom: 0.68rem;
  border-bottom: 1px solid var(--border-color);
}

.team-page .team-notify-item__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.team-page .team-notify-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-page .team-notify-item__body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.team-page .team-notify-item__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.team-page .team-notify-item__time-inline {
  color: var(--muted-foreground);
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-page .team-notify-item__meta,
.team-page .team-notify-item__preview {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: normal;
  min-width: 0;
}

.team-page .team-notify-item__preview {
  color: var(--foreground);
  opacity: 0.92;
  overflow-wrap: anywhere;
}

.team-tab-panel .admin-pagination {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.team-tab-panel .admin-pagination > .button {
  min-height: 32px;
  padding: 0.36rem 0.72rem;
  font-size: 0.72rem;
}

.team-tab-panel .admin-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.team-tab-panel .admin-pagination__numbers .button,
.team-tab-panel .admin-pagination__numbers .chip,
.team-tab-panel .admin-pagination__dots {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.team-tab-panel .admin-pagination__dots {
  color: var(--muted-foreground);
}

.team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination {
  margin-top: 0.5rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  justify-content: center;
  width: 100%;
}

.team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-notify-pagination {
  margin-top: 0.32rem;
  padding-top: 0.2rem;
  justify-content: center;
  gap: 0.22rem;
}

.team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-notify-pagination .admin-pagination__numbers {
  justify-content: center;
}

@media (max-width: 760px) {
  .team-page .team-tabs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.24rem;
    overflow: visible;
    padding-bottom: 0;
    min-width: 0;
  }

  .team-page .team-tab-trigger {
    min-width: 0;
    flex: 0 0 auto;
    width: 100%;
    font-size: 0.64rem;
    padding: 0.22rem 0.3rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .team-page .team-recent-list {
    gap: 0.42rem;
  }

  .team-page .team-recent-list .team-recent-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding: 0.52rem 0.56rem;
  }

  .team-page .team-recent-list .team-recent-item .team-update-item__main strong {
    font-size: 0.82rem;
  }

  .team-page .team-recent-list .team-recent-item .team-update-item__main span {
    font-size: 0.78rem;
    line-height: 1.36;
  }

  .team-page .team-recent-list .team-recent-item .team-update-item__time {
    font-size: 0.66rem;
    padding-top: 0;
  }

  .team-page .team-recent-list .team-recent-item:last-child {
    padding-bottom: 0.52rem;
  }

  .team-page .team-notify-list {
    gap: 0.48rem;
    padding-bottom: 0.12rem;
  }

  .team-page .team-notify-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.54rem 0.56rem;
    border-radius: 0.58rem;
  }

  .team-page .team-notify-list .team-notify-item:last-child {
    padding-bottom: 0.54rem;
  }

  .team-page .team-notify-item__avatar {
    width: 28px;
    height: 28px;
  }

  .team-page .team-notify-item__title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.08rem;
  }

  .team-page .team-notify-item__time-inline {
    font-size: 0.68rem;
    white-space: normal;
    line-height: 1.35;
  }

  .team-page .team-notify-item__meta,
  .team-page .team-notify-item__preview {
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .team-edit-upload-grid {
    align-items: start;
  }

  .team-edit-upload--media {
    height: auto;
  }

  .team-edit-upload--media .team-edit-upload__body {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .team-media-item {
    height: auto;
  }

  .team-media-item--avatar .team-upload-widget {
    grid-template-columns: 1fr;
  }

  .team-media-item--avatar .cover-upload__preview {
    width: 100%;
    max-width: 170px;
    justify-self: start;
  }

  .team-media-item--cover .cover-upload__preview {
    aspect-ratio: 16 / 5;
  }

  .team-media-item .upload-picker {
    align-items: stretch;
  }

  .team-media-item .upload-picker label.button,
  .team-media-item .upload-picker button.button {
    width: 100%;
  }

  .team-edit-upload--media .team-edit-upload__actions {
    justify-content: stretch;
  }

  .team-edit-upload--media .team-edit-upload__actions .button {
    width: 100%;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination {
    margin-top: 0.46rem;
    padding-top: 0.24rem;
    gap: 0.15rem;
    justify-content: center;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] {
    overflow-x: hidden;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-series-card {
    padding-left: 0.72rem;
    padding-right: 0.72rem;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .team-notify-pagination {
    margin-top: 0.28rem;
    padding-top: 0.16rem;
    gap: 0.18rem;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination > .button {
    min-height: 28px;
    padding: 0.26rem 0.5rem;
    font-size: 0.68rem;
    min-width: 62px;
    justify-content: center;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination__numbers {
    justify-content: center;
  }

  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination__numbers .button,
  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination__numbers .chip,
  .team-page .team-tab-panel[data-team-tab-panel="notifications"] .admin-pagination__dots {
    min-width: 26px;
    min-height: 26px;
    font-size: 0.66rem;
  }
}
