/* AI core (stream 1A): the clipboard's offline line and the "Make a work order" tap. Tokens only, so both worlds read
   right; the studio block below swaps the steel plate for card stock. Registered by app/features/companion. */

/* The AI server is down: one quiet line over the composer, before they type (not an alarm: the helper is resting). */
.co-offline {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 12px 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
  color: var(--ink-2); font-size: .85rem; line-height: 1.45;
}
.co-offline > .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.co-offline > span { min-width: 0; flex: 1; }

/* Work orders on request: a quiet ghost button under an actionable reply; one tap runs the pass. */
.co-orders-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.co-make-order { color: var(--blue); }
.co-make-order .co-make-wait { display: none; }
.co-make-order.htmx-request .co-make-label { display: none; }
.co-make-order.htmx-request .co-make-wait { display: inline; color: var(--ink-3); }
.co-make-order:disabled { cursor: progress; }
@media (pointer: coarse) { .co-make-order { min-height: 44px; } }
.co-orders-none { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); }
.co-orders-none .icon { width: 16px; height: 16px; }

[data-world="studio"] .co-offline { background: var(--surface); border-style: dashed; }
[data-world="studio"] .co-make-order { border-radius: var(--r-sm); }
