.model-files-editor {
  margin: 1rem 0;
}

.module-package-panel { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.module-package-panel[hidden] { display: none; }
.model-files-editor .model-file-panel[hidden] { display: none; }
.module-package-panel .editor-shell[hidden] { display: none; }
.module-package-panel > .editor-shell { flex: 1 1 0; min-height: 0; }

.model-file-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
}

.model-file-name {
  min-width: 0;
  width: 100%;
}

.model-file-tabs {
  margin: .75rem 0 .5rem;
}

.model-file-tabs button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.model-file-tabs .model-file-selected {
  border-color: var(--accent, #2457c5);
  box-shadow: inset 0 -2px var(--accent, #2457c5);
}
.model-file-tab { display: flex; flex: 0 0 auto; align-items: center; min-width: 0; }
.model-file-delete svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-file-delete:hover:not(:disabled) { color: var(--red); }
.model-file-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.model-file-rename { width: 160px; min-width: 0; }

.model-file-panel .editor-shell,
.model-file-panel .editor-shell .editor-monaco {
  min-height: 16rem;
}

.model-file-hint,
.model-file-status {
  margin: .5rem 0 0;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.model-file-hint {
  color: var(--muted, #536276);
}

.model-file-status {
  color: var(--text, #172233);
}
