/* ==========================================================================
   tkati AI'S CONNECTIONS, on Settings (wire-ai-2, 6 Nov 2026;
   admin/js/office-ai-connect.mjs paints #ofc-aic-card).

   Additions only, on the Settings card's own key/value rows (office.css
   .ofc-kv, .ofc-conn__st): a row's buttons and what a press said go under
   it, across both columns. Every colour is an --o-* token, which the pro
   theme points at the light sheet and the dark switch at the black, so
   light and dark read without a dark copy (tools/dark-side.mjs has nothing
   to write for it). Every control is 44px tall; at 390px the row's two
   columns stack, and nothing runs off the side. connectors-q43 adds the
   password form (.ofc-aic__key), on the same tokens.
   ========================================================================== */

#office #ofc-aic-card .ofc-aic__row { align-items: start; }
#office #ofc-aic-card .ofc-aic__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* The roster's own rule pushes a row's first button to the far end; here the buttons sit with what they act on. */
#office #ofc-aic-card .ofc-aic__acts :is(.ofc-ghost, .ofc-quiet, .ofc-primary) { min-height: 44px; margin-left: 0; }
#office #ofc-aic-card .ofc-aic__pick { min-height: 44px; max-width: 14rem; }
#office #ofc-aic-card .ofc-aic__said { grid-column: 1 / -1; margin: 0; max-width: 64ch; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 400; line-height: 1.5; }
#office #ofc-aic-card .ofc-aic__h { margin: 1.5rem 0 0.5rem; color: var(--o-text); font: 600 var(--o-t-sm)/1.3 var(--body); }
#office #ofc-aic-card #ofc-aic-again { margin: 0.5rem 0 0; min-height: 44px; }
/* A service connected by a password made for tkati (connectors-q43): its two fields, each with its own label, then who
   it is for and Connect. Fields 44px tall, side by side on a desk, stacked at 390. */
#office #ofc-aic-card .ofc-aic__key { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); align-items: end; gap: 0.5rem 0.75rem; margin: 0.25rem 0 0; }
#office #ofc-aic-card .ofc-aic__key > :is(.ofc-aic__said, .ofc-aic__acts) { grid-column: 1 / -1; }
#office #ofc-aic-card .ofc-aic__fld { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
#office #ofc-aic-card .ofc-aic__lab { color: var(--o-dim); font: 500 var(--o-t-sm)/1.3 var(--body); }
#office #ofc-aic-card .ofc-aic__in { min-height: 44px; width: 100%; box-sizing: border-box; }
/* A service signed into at the person's own address (connectors-q87: a shop): that address's field, across the row. */
#office #ofc-aic-card .ofc-aic__row > .ofc-aic__fld { grid-column: 1 / -1; max-width: 24rem; }
@media (max-width: 560px) {
  #office #ofc-aic-card .ofc-aic__row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  #office #ofc-aic-card .ofc-aic__key { grid-template-columns: minmax(0, 1fr); }
}
