/*
 * THE ATTACHMENT SURFACE, as a compound: the grid, then whatever verbs the host
 * composed under it. The root owns only the rhythm between them; the bar is a
 * wrapping row so a surface with six verbs does not push one off the edge.
 *
 * `scroll` exists only when the caller bounded the grid's height, and it is the
 * one part that scrolls, so the bar stays pinned below.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-files-editor {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: var(--lotics-space-10);
  }

  .lotics-files-editor__scroll {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    max-height: var(--lotics-files-editor-grid-max);
    overflow-y: auto;
  }

  .lotics-files-editor__bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--lotics-space-8);
  }

  .lotics-files-editor__spacer {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
  }
}
