:host {
  display: block;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text-primary-color, inherit);
  max-height: 200px;
  overflow: auto;
}

.card {
  margin: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--component-border-color, rgba(0, 0, 0, 0.12));
  background: var(--background-color, transparent);
  box-sizing: border-box;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.actions {
  margin-top: 14px;
}

.create-changelog {
  appearance: none;
  border: 1px solid var(--communication-foreground, #0078d4);
  border-radius: 4px;
  background: var(--communication-background, #0078d4);
  color: var(--text-on-communication-background, #ffffff);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out;
}

.create-changelog:hover {
  background: var(--communication-background-hover, #106ebe);
  border-color: var(--communication-background-hover, #106ebe);
}

.create-changelog:active {
  background: var(--communication-background-pressed, #005a9e);
  border-color: var(--communication-background-pressed, #005a9e);
}

.create-changelog:focus-visible {
  outline: 2px solid var(--focus-border, #0078d4);
  outline-offset: 2px;
}

.theme-high-contrast .create-changelog {
  background: ButtonFace;
  color: ButtonText;
  border-color: ButtonText;
}

.theme-high-contrast .create-changelog:hover,
.theme-high-contrast .create-changelog:active {
  background: Highlight;
  color: HighlightText;
  border-color: Highlight;
}

.spinner-wrapper {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.spinner-wrapper.visible {
  display: flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--communication-foreground, #0078d4);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.status-text {
  font-size: 12px;
  opacity: 0.85;
}

.result-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 18px;
}

.result-message[hidden] {
  display: none;
}

.result-message.success {
  color: var(--status-success-foreground, #107c10);
}

.result-message.error {
  color: var(--status-error-foreground, #a4262c);
}

.result-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--status-success-foreground, #107c10);
  flex: 0 0 16px;
}

.result-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid var(--background-color, #ffffff);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.result-message.error .result-icon {
  display: none;
}

.theme-high-contrast .result-message.success,
.theme-high-contrast .result-message.error {
  color: CanvasText;
}

.theme-high-contrast .result-icon {
  background: CanvasText;
}

.theme-high-contrast .result-icon::after {
  border-color: Canvas;
}
