/* Admin > System Integrations editor. Reuses the generic editor classes (.cai-editor-card, .cai-form-stack,
   .cai-card-select) from clinical-ai-wc.css; this file adds only the .admin-integrations-* layout. */

/* Two field columns shared by the Details and Connection cards (Name | Description, API key secret | key kind);
   they match nph-input's --input-max-width (28.75rem) so paired fields sit together instead of half a card apart. */
.admin-integrations-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 28.75rem));
    gap: 1rem 2rem;
    align-items: start;
}

/* A required nph-input's label row is 2rem tall (its 1rem asterisk icon carries a 1rem bottom margin), an
   optional one's about 1.5rem: drop the optional Description by the difference so both boxes line up. */
.admin-integrations-fields > nph-textarea {
    margin-top: 0.5rem;
}

/* The shared test strip fills its grid cell (min-height: 100%) beside the identity form in Sources and
   Destinations; here it is the last item of the editor column, so size it to its content instead. */
.admin-integrations-editor > .cai-test-strip {
    min-height: auto;
}

/* Fixed-width type tiles: a lone type must not stretch across the whole card. */
.admin-integrations-editor .cai-card-select {
    --wc-ui-card-choice-columns: repeat(auto-fill, 12rem);
}
