.planyx-ucn-profile {
  margin-top: 0.25rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--muted) / 0.35);
  color: hsl(var(--foreground));
}

.planyx-ucn-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.planyx-ucn-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.planyx-ucn-heading p {
  margin: 0.25rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  line-height: 1.2rem;
}

.planyx-ucn-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.planyx-ucn-status.is-synced {
  border-color: rgb(134 239 172);
  background: rgb(240 253 244);
  color: rgb(22 101 52);
}

.planyx-ucn-status.is-review_required,
.planyx-ucn-status.is-ucn_conflict,
.planyx-ucn-status.is-pending {
  border-color: rgb(253 230 138);
  background: rgb(255 251 235);
  color: rgb(146 64 14);
}

.planyx-ucn-status.is-error,
.planyx-ucn-status.is-not_configured {
  border-color: rgb(254 202 202);
  background: rgb(254 242 242);
  color: rgb(153 27 27);
}

.planyx-ucn-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  background: hsl(var(--background));
}

.planyx-ucn-value {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.planyx-ucn-copy,
.planyx-ucn-retry {
  border: 1px solid hsl(var(--border));
  border-radius: 0.45rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}

.planyx-ucn-copy {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
}

.planyx-ucn-retry {
  min-height: 2.25rem;
  margin-top: 0.8rem;
  padding: 0.45rem 0.75rem;
}

.planyx-ucn-copy:hover,
.planyx-ucn-retry:hover {
  background: hsl(var(--accent));
}

.planyx-ucn-copy:focus-visible,
.planyx-ucn-retry:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.planyx-ucn-copy:disabled,
.planyx-ucn-retry:disabled {
  cursor: wait;
  opacity: 0.65;
}

.planyx-ucn-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  line-height: 1.2rem;
}

@media (prefers-color-scheme: dark) {
  .planyx-ucn-status.is-synced {
    border-color: rgb(22 101 52);
    background: rgb(5 46 22 / 0.45);
    color: rgb(187 247 208);
  }

  .planyx-ucn-status.is-review_required,
  .planyx-ucn-status.is-ucn_conflict,
  .planyx-ucn-status.is-pending {
    border-color: rgb(146 64 14);
    background: rgb(69 26 3 / 0.45);
    color: rgb(254 240 138);
  }

  .planyx-ucn-status.is-error,
  .planyx-ucn-status.is-not_configured {
    border-color: rgb(153 27 27);
    background: rgb(69 10 10 / 0.45);
    color: rgb(254 202 202);
  }
}

@media (max-width: 640px) {
  .planyx-ucn-heading,
  .planyx-ucn-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .planyx-ucn-value-row {
    align-items: stretch;
    flex-direction: column;
  }

  .planyx-ucn-copy {
    width: 100%;
  }
}
