/* ===================================================== Support codes table */

/* The code in the row: mono, accent, slightly larger than body so it reads as
   the identifier it is. Tracks the table's mono idiom but with brand color. */
.cdt__code {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "zero";
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}

/* Bound-to cell: machine over a dimmer client name, the same two-line idiom
   the sessions table uses for machine/agent-id. */
.cdt__bound {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cdt__boundsub {
  font-size: 11px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

/* ===================================================== Generate-code dialog */

.codegen__loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.codegen__lede {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* The hero: the code itself, large, mono, accent, with a copy button. This is
   read aloud over the phone, so it is the single dominant element on the
   surface and is sized for unmistakable legibility. */
.codegen__codewrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
}
.codegen__code {
  font-family: var(--font-mono);
  /* ss01 = stylistic alt; zero = slashed zero. The unambiguous alphabet has no
     0, but the feature is harmless and keeps mono rendering consistent. */
  font-feature-settings: "ss01", "zero";
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--accent);
  user-select: all;
  /* Never wrap the grouped code across lines — it must read as one token. */
  white-space: nowrap;
}

.codegen__hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
