/* ==========================================================================
   WHAT THE AUTOMATIONS SEND, on Settings (agents-q73, 17 Nov 2026;
   admin/js/office-gates.mjs paints #ofc-gates-card).

   Additions only, on the Settings card's own key/value rows (office.css
   .ofc-kv, .ofc-conn__st), as office-aic.css adds to its card: a row's
   words and buttons go under it, across both columns. Every colour is an
   --o-* token, so light and dark read without a copy. Every control is 44px
   tall; at 390px a row's two columns stack and nothing runs off the side.
   ========================================================================== */

#office #ofc-gates-card .ofc-gates__h { margin: 1.5rem 0 0.5rem; color: var(--o-text); font: 600 var(--o-t-sm)/1.3 var(--body); }
#office #ofc-gates-card .ofc-gates__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; }
#office #ofc-gates-card .ofc-gates__row :is(select, input) { min-height: 44px; flex: 1 1 14rem; max-width: 24rem; box-sizing: border-box; }
#office #ofc-gates-card .ofc-gates__row :is(.ofc-ghost, .ofc-primary) { min-height: 44px; }
#office #ofc-gates-card .ofc-gates__item { align-items: start; }
#office #ofc-gates-card .ofc-gates__item > b { min-width: 0; }
#office #ofc-gates-card .ofc-gates__words { grid-column: 1 / -1; margin: 0; font-weight: 400; }
#office #ofc-gates-card .ofc-gates__words > summary { cursor: pointer; color: var(--o-dim); min-height: 44px; display: flex; align-items: center; }
#office #ofc-gates-card .ofc-gates__words pre { margin: 0.25rem 0 0; padding: 0.75rem; max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: var(--o-bg, transparent); color: var(--o-text); font: 400 var(--o-t-sm)/1.5 var(--body); }
#office #ofc-gates-card .ofc-gates__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 decide. */
#office #ofc-gates-card .ofc-gates__acts :is(.ofc-primary, .ofc-quiet) { min-height: 44px; margin-left: 0; }
#office #ofc-gates-card .ofc-gates__said { grid-column: 1 / -1; margin: 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 400; line-height: 1.5; max-width: 64ch; }
@media (max-width: 560px) {
  #office #ofc-gates-card .ofc-gates__item { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  #office #ofc-gates-card .ofc-gates__row :is(select, input) { max-width: none; }
}
