@layer components {
  .app-list-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: calc(var(--app-spacing) * 2);
  }

  .app-list-titlebar h1,
  .app-list-titlebar h2,
  .app-list-titlebar h3,
  .app-list-titlebar h4,
  .app-list-titlebar h5,
  .app-list-titlebar h6 {
    margin: 0;
  }

  .app-list-titlebar button,
  .app-list-titlebar [role="button"] {
    --app-button-padding-horizontal: 10px;
    --app-button-padding-vertical: 6px;
    font-size: 13px;
    margin: 0;
  }

  .app-list-titlebar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  .app-list-titlebar h1 i {
    background: var(--app-muted-border-color);
    width: 35px;
    height: 35px;
    font-size: 16px;
    border-radius: var(--app-border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-list-titlebar h1:has(i) {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .app-list-titlebar details.dropdown {
    margin-bottom: 0;
  }

  .app-list-titlebar details.dropdown summary:after {
    display: none;
  }

  .app-list-titlebar details.dropdown li {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--app-border);
  }

  .app-list-titlebar details.dropdown li:last-child {
    border-bottom: none;
  }

  .app-list-titlebar details.dropdown ul {
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-list-titlebar details.dropdown li button,
  .app-list-titlebar details.dropdown li [role="button"] {
    margin: 0 !important;
    border: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
  }
}
