.updateBanner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-2) var(--spacing-3);
  align-items: center;
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-btn-primary-text);
}

.updateBannerContent {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

.updateBannerActions {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  flex-shrink: 0;
  margin-left: auto;
}

.progressRow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.progressBar {
  flex: 1;
  height: 4px;
  background: rgb(255 255 255 / 20%);
  border-radius: 2px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: var(--color-btn-primary-text);
  border-radius: 2px;
  transition: width 300ms ease;
}

.downloadButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-1) var(--spacing-3);
  background: rgb(255 255 255 / 20%);
  border: 1px solid rgb(255 255 255 / 30%); /* stylelint-disable-line declaration-property-unit-allowed-list */
  border-radius: var(--radius-base);
  color: var(--color-btn-primary-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default);
  white-space: nowrap;

  &:hover {
    background: rgb(255 255 255 / 30%);
  }
}

.dismissButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: var(--radius-base);
  color: rgb(255 255 255 / 70%);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default), background var(--duration-fast) var(--ease-default);

  &:hover {
    color: var(--color-btn-primary-text);
    background: rgb(255 255 255 / 15%);
  }
}

.updateRow {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.upToDate {
  font-size: var(--font-size-sm);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

.updateChecking {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

.updateError {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

.aboutHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.headerRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-2);
}

.aboutLogo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity 200ms ease;
  opacity: 0.85;

  &:hover {
    opacity: 1;
  }
}

.aboutDivider {
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-4) 0;
}

.aboutActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3);
  align-items: start;
}

.aboutButtons {
  display: contents;
}

.checkForUpdatesCol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
}

.aboutButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--spacing-2) var(--spacing-3);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 150ms ease;
  width: 100%;

  &:hover:not(:disabled) {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  svg {
    flex-shrink: 0;
  }

  span {
    white-space: nowrap;
  }
}

.reportIssueBelow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--spacing-2) var(--spacing-3);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 150ms ease;
  width: 100%;
  margin-top: var(--spacing-3);

  &:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
  }

  svg {
    flex-shrink: 0;
  }

  span {
    white-space: nowrap;
  }
}

.updateStatus {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 18px;
}
