/* Copied from apps/sidi/web/components/decision-card.css (the Sidi SPA) so Prime shows its approvals with the same card.
   Tokens only and logical properties only, as in the original. Edit the original, then re-copy. */
/* The decision card in the console and the SPA, on design tokens only and logical properties
   only. desktop/src/nexus/components/decision-card.css is the same card on Nexus's token names. */
.dc-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-inline-size: var(--width-prose);
  padding: var(--space-5);
  color: var(--fg1);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}

.dc-card .dc-title {
  display: block;
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  text-box: normal;
}

.dc-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dc-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--fg2);
}

.dc-value,
.dc-fact__name,
.dc-fact__value {
  margin: 0;
  font-size: var(--fs-sm);
  unicode-bidi: plaintext;
}

.dc-raw {
  margin: 0;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  color: var(--fg1);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.dc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.dc-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}

.dc-fact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dc-fact__name {
  font-weight: 600;
}

.dc-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-choice {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.dc-choice__label {
  font-size: var(--fs-md);
  font-weight: 600;
  unicode-bidi: plaintext;
}

.dc-choose,
.dc-retry {
  align-self: flex-start;
  min-block-size: 44px;
  padding-block: var(--space-2);
  padding-inline: var(--space-4);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg1);
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong-bw);
  border-radius: var(--radius-sm);
}

.dc-choose:hover:not(:disabled),
.dc-retry:hover {
  border-color: var(--accent);
}

.dc-choose:disabled {
  color: var(--fg3);
  cursor: not-allowed;
  border-color: var(--border-subtle);
}

.dc-choose:focus-visible,
.dc-retry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dc-rec {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid var(--border-default);
}

.dc-rec__choice {
  font-weight: 600;
}

.dc-note,
.dc-done,
.dc-error,
.dc-problems {
  margin: 0;
  font-size: var(--fs-sm);
}

.dc-note,
.dc-problems {
  color: var(--fg2);
}

.dc-done {
  font-weight: 600;
}

.dc-error {
  color: var(--danger-text);
  font-weight: 600;
}

.dc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* The optional note that goes with the final choice. */
.dc-notebox {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dc-notebox__input {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 44px;
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--fg1);
  resize: vertical;
  background: var(--bg-input);
  border: 1px solid var(--border-strong-bw);
  border-radius: var(--radius-sm);
}

.dc-notebox__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dc-notebox__input:disabled {
  color: var(--fg3);
  border-color: var(--border-subtle);
}

.dc-notebox__hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--fg2);
}
