/* Upload portal. Colors come from the site's --kb-* theme variables only. */

.portal-brand {
  color: var(--kb-text-primary);
  text-decoration: none;
}

.portal-brand:hover,
.portal-brand:focus-visible {
  color: var(--kb-text-primary);
}

.portal-brand-icon {
  color: var(--kb-primary);
}

.portal-subbrand {
  color: var(--kb-text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.portal-theme-menu {
  min-width: 260px;
}

.portal-account-menu {
  min-width: 240px;
}

.portal-account-name {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.portal-narrow {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.portal-steam64 {
  user-select: all;
}

/* Drop zone on the upload page. */
.portal-drop {
  border: 2px dashed var(--kb-border-subtle);
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--kb-text-secondary);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.portal-drop.is-over {
  border-color: var(--kb-primary);
  background-color: var(--kb-primary-muted);
}

.portal-file-row {
  border-top: 1px solid var(--kb-border-subtle);
  padding: 0.75rem 0;
}

.portal-file-row:first-child {
  border-top: 0;
}

.portal-progress {
  height: 0.35rem;
}

.portal-progress .progress-bar {
  background-color: var(--kb-primary);
}

.portal-team-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.portal-team-list li {
  padding: 0.1rem 0;
}

.portal-commander {
  color: var(--kb-warning);
}

.portal-outcome .btn-check:checked + .btn {
  background-color: var(--kb-primary);
  border-color: var(--kb-primary);
  color: var(--kb-primary-fg);
}

.portal-status {
  font-size: 0.8rem;
  white-space: nowrap;
}

.portal-status[data-status="live"] {
  color: var(--kb-text-success, var(--kb-success));
}

.portal-status[data-status="queued"],
.portal-status[data-status="processing"],
.portal-status[data-status="deploying"],
.portal-status[data-status="waiting_rebuild"],
.portal-status[data-status="waiting_approval"] {
  color: var(--kb-text-info, var(--kb-info));
  font-weight: 600;
}

.portal-status[data-status="attention"],
.portal-status[data-status="removed"],
.portal-status[data-status="rejected"] {
  color: var(--kb-text-danger, var(--kb-danger));
  font-weight: 600;
}

.portal-status[data-status="merged"] {
  color: var(--kb-text-muted);
}

.portal-kv dt {
  color: var(--kb-text-muted);
  font-weight: 500;
}

.portal-table td,
.portal-table th {
  vertical-align: middle;
}

.portal-log {
  max-height: 32rem;
  overflow-y: auto;
}

.portal-wrap {
  overflow-wrap: anywhere;
}
