/* Hub shared shell, extracted from templates in v2.1.3.4. */

/* Former site-header inline block 1. */
/*
   * Кнопка существует только при .IsAdmin,
   * поэтому публичный topbar не меняется.
   */

  .global-settings-link {
    box-sizing: border-box;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin:
      0
      0
      0
      8px;

    padding: 0;

    border:
      1px solid
      rgba(158, 216, 171, 0.18);

    border-radius: 10px;

    color:
      rgba(205, 231, 211, 0.76);

    background:
      linear-gradient(
        145deg,
        rgba(174, 226, 186, 0.08),
        rgba(174, 226, 186, 0.018)
      ),
      rgba(7, 30, 16, 0.52);

    box-shadow:
      inset 0 1px 0
      rgba(238, 250, 241, 0.07),
      0 7px 20px
      rgba(0, 0, 0, 0.18);

    backdrop-filter:
      blur(12px)
      saturate(1.06);

    -webkit-backdrop-filter:
      blur(12px)
      saturate(1.06);

    text-decoration: none;

    transition:
      color 140ms ease,
      border-color 140ms ease,
      background 140ms ease,
      transform 140ms ease;
  }

  .global-settings-link:hover {
    color:
      rgba(235, 248, 238, 0.96);

    border-color:
      rgba(174, 226, 186, 0.32);

    background:
      linear-gradient(
        145deg,
        rgba(174, 226, 186, 0.13),
        rgba(174, 226, 186, 0.035)
      ),
      rgba(10, 43, 22, 0.66);

    transform:
      translateY(-1px);
  }

  .global-settings-link:focus-visible {
    outline:
      2px solid
      rgba(145, 214, 160, 0.64);

    outline-offset: 2px;
  }

  .global-settings-icon {
    display: block;

    width: 19px;
    height: 19px;
  }

/* Former site-header inline block 2. */
/*
   * Логотип и Settings являются одним элементом
   * основной разметки topbar.
   */

  .global-header-inner >
  .global-brand-cluster {
    box-sizing: border-box !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    justify-self: start !important;
    align-self: center !important;

    gap: 7px !important;

    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .global-brand-cluster
  > .global-thumbnail {
    flex: 0 0 auto !important;

    margin: 0 !important;
  }

  .global-brand-cluster
  .global-settings-link {
    position: static !important;

    flex: 0 0 38px !important;

    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;

    transform: none;
  }

  .global-brand-cluster
  .global-settings-link:hover {
    transform:
      translateY(-1px);
  }

  @media (max-width: 760px) {
    .global-header-inner >
    .global-brand-cluster {
      gap: 5px !important;
    }

    .global-brand-cluster
    .global-settings-link {
      flex-basis: 36px !important;

      width: 36px !important;
      height: 36px !important;
    }
  }
