/* ============================================================
   Provider Connectors (/admin/connectors): the list and its three inline
   form panels. The page is built from design-system components; this sheet
   only places them. Structure in @layer layout.

   Every rule hangs on the page's domain-concept class and reads --t-* / --c-*
   tokens only. See frontend/app/README.md.
   ============================================================ */

@layer layout {
  .admin-connectors { display: grid; gap: var(--t-space-6); align-content: start; }

  /* Page intro: heading block on the left, actions on the right. */
  .admin-connectors .intro { display: flex; flex-wrap: wrap; align-items: flex-start;
                             justify-content: space-between; gap: var(--t-space-3); }
  .admin-connectors .actions { display: flex; flex-wrap: wrap; gap: var(--t-space-2);
                               flex-shrink: 0; max-inline-size: 100%; }

  .admin-connectors .connector-form { display: grid; gap: var(--t-space-4); }

  /* A rotation's key/value pair is one recessed group. */
  .admin-connectors .connector-form fieldset {
    display: grid;
    gap: var(--t-space-3);
    margin: 0;
    padding: var(--t-space-3);
    border: 0;
  }

  /* The base drew each row's actions as compact pills so the three fit on one
     line beside the data. Keep that density here; the table scrolls sideways
     only when the columns still do not fit. */
  .admin-connectors .row-actions { display: flex; flex-wrap: nowrap; align-items: center;
                                   gap: var(--t-space-2); }
  .admin-connectors .row-actions form { margin: 0; }
  /* A <button> renders without the "button" class (the element selector in
     the button component paints it), while an <a> carries it. Select both, or
     the submit button keeps the default size and stands taller than its two
     neighbours in the same row. */
  .admin-connectors .row-actions :is(button, .button) {
    min-block-size: auto;
    padding: var(--t-space-2) var(--t-space-3);
    font-size: var(--t-font-size-sm);
  }
  .admin-connectors .data-table table { font-size: var(--t-font-size-sm); }
}
