/*
 * copy-command.css — the copy-command part's look (spec S-F1/S-F2 U0): the one source for .ap-cmd and its .ts-copy
 * button, which parts.css and appui.css no longer carry. The part links it on any page that shows it, /login included,
 * where neither of those sheets is loaded. Tokens only.
 */

/* A scroll container is its children's containing block, so an absolute child scrolls and clips with it. */
.ap-cmd { position: relative; display: flex; align-items: center; gap: var(--space-1); max-width: 100%; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-subtle); }
.ap-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text); }

.ts-copy { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; background: none; cursor: pointer; color: var(--color-text-subtle); border-radius: 5px; }
.ts-copy:hover { color: var(--color-text); background: var(--color-bg-hover); }
.ts-copy svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .ap-cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

@media (pointer: coarse) {
  .ts-copy { min-width: 44px; min-height: 44px; justify-content: center; }
}
