/* Keep the brand and actions on one row, with navigation in its own row on smaller screens. */
html:not(.guide-embed-mode) body[data-home-page="true"] .generator-frame-wrap #create.workspace {
  scroll-margin-top: 100px !important;
}

@media (max-width: 980px) {
  html:not(.guide-embed-mode) body[data-home-page="true"] .generator-frame-wrap #create.workspace {
    scroll-margin-top: 128px !important;
  }

  html:not(.guide-embed-mode) body header[data-responsive-header="main"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: start;
    gap: 6px 8px;
    height: auto !important;
    min-height: 0;
    padding-block: 8px 5px;
  }

  html body header[data-responsive-header="main"] > .top-nav {
    display: contents;
  }

  html body header[data-responsive-header="main"] .nav-actions {
    grid-area: 1 / 2;
    gap: clamp(3px, 1vw, 10px);
    margin: 0;
  }

  html body header[data-responsive-header="main"] .nav-center {
    position: static;
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    gap: 4px !important;
    padding: 0;
    overflow: visible;
    transform: none;
  }

  html body header[data-responsive-header="main"] .nav-center > a[data-nav] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 4px 2px !important;
    font-size: clamp(12px, 2.8vw, 15px);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  html body header[data-responsive-header="main"] .nav-actions :is(a.cta, .account-trigger) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px clamp(7px, 1.5vw, 14px) !important;
    font-size: clamp(12px, 2.8vw, 15px) !important;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  html body header[data-responsive-header="main"] > .qrcods-identity {
    gap: 4px !important;
  }

  html body header[data-responsive-header="main"] > .qrcods-identity .qrcods-identity-copy {
    flex-direction: column !important;
    gap: 0 !important;
  }

  html body header[data-responsive-header="main"] > .qrcods-identity .qrcods-identity-icon {
    width: clamp(27px, 8vw, 38px) !important;
    height: clamp(27px, 8vw, 38px) !important;
  }

  html body header[data-responsive-header="main"] > .qrcods-identity .qrcods-identity-name,
  html body header[data-responsive-header="main"] > .qrcods-identity .qrcods-identity-name > span {
    font-size: clamp(14px, 4.1vw, 20px) !important;
  }
}

@media (max-width: 980px) {
  html body header[data-responsive-header="links"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    height: auto;
    min-height: 0;
  }

  html body header[data-responsive-header="links"] > .nav {
    position: static;
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    transform: none;
  }

  html body header[data-responsive-header="links"] > .nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 44px;
    padding: 5px 8px;
    font-size: clamp(12px, 2.8vw, 14px) !important;
    text-align: center;
    white-space: normal;
  }
}
