@media (min-width: 981px) {
  /* Reserve extra space only when a long translation or unread count needs it. */
  .ta-ui-rc > .ta-site-frame:has(> .ta-site-sidebar) {
    grid-template-columns: minmax(252px, max-content) minmax(0, 1fr);
  }

  .ta-ui-rc .ta-site-sidebar {
    padding: 14px 12px 20px;
    background: linear-gradient(180deg, #f8fcff 0%, #f3f8fd 100%);
    border-inline-end: 1px solid #dfebf5;
    border-radius: 0;
    overflow-y: auto;
    scrollbar-gutter: auto;
    scroll-padding-block: 8px;
  }

  .ta-ui-rc .ta-site-sidebar::-webkit-scrollbar {
    width: 6px;
  }

  .ta-ui-rc .ta-site-sidebar::-webkit-scrollbar-thumb {
    background: rgb(98 122 154 / .45);
    border-radius: 6px;
  }

  /* On systems with hidden scrollbars, the lower edge fades while more rows
     remain below it. The local layer covers the cue at the end of the list. */
  .ta-ui-rc .ta-site-sidebar.ta-pc-account-rail {
    background:
      linear-gradient(to top, #f3f8fd 60%, transparent) bottom / 100% 18px no-repeat local,
      linear-gradient(to top, rgb(98 122 154 / .22), transparent) bottom / 100% 10px no-repeat scroll,
      linear-gradient(180deg, #f8fcff 0%, #f3f8fd 100%);
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav {
    gap: 0;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-section {
    padding: 4px 8px 8px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #627a9a;
    letter-spacing: .08em;
    text-transform: none;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-section:is(:lang(en), :lang(de), :lang(es), :lang(fr), :lang(it), :lang(pl), :lang(pt), :lang(tr), :lang(vi)) {
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-section-account {
    margin: 10px 8px 0;
    /* 6px space after the divider plus 6px account heading padding. */
    padding: 12px 0 8px;
    border-block-start: 1px solid #dfebf5;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link {
    box-sizing: border-box;
    min-block-size: 42px;
    padding-block: 0;
    padding-inline: 6px 8px;
    gap: 10px;
    border-radius: 14px;
    color: #082e66;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.005em;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link + .ta-site-nav-link {
    margin-block-start: 2px;
  }

  html[data-ta-language] .ta-ui-rc .ta-site-sidebar .ta-site-nav-label {
    font-size: inherit;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-icon {
    flex: 0 0 32px;
    inline-size: 32px;
    block-size: 32px;
    border-radius: 50%;
    background: #edf6ff;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-icon svg {
    inline-size: 17px;
    block-size: 17px;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link.is-active {
    background: #e7f2ff;
    color: #082e66;
    font-weight: 700;
  }

  .ta-ui-rc .ta-site-sidebar .is-active .ta-site-nav-icon {
    background: #d6e9ff;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link[data-ta-site-nav-item="publish"] {
    color: #0866f5;
  }

  .ta-ui-rc .ta-site-sidebar [data-ta-site-nav-item="publish"]:not(.is-active) {
    font-weight: 650;
  }

  .ta-ui-rc .ta-site-sidebar [data-ta-site-nav-item="publish"]:not(.is-active) .ta-site-nav-icon {
    background: #e0ecff;
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link:not(.is-active):hover {
    background: rgba(8, 102, 245, .05);
  }

  .ta-ui-rc .ta-site-sidebar .ta-site-nav-link:not(.is-active):hover .ta-site-nav-icon {
    background: #e7f2ff;
  }

  /* Keep the shared rail and put each account page in the full main column. */
  html:not(.ta-ui-in-frame) .ta-ui-rc.ta-pc-account-shell:not(.ta-ui-embedded) > .ta-site-frame {
    display: grid;
    background: #f0f7fc;
  }

  .ta-ui-rc.ta-pc-account-shell > .ta-site-frame > .ta-pc-account-rail {
    grid-area: 1 / 1;
  }

  .ta-ui-rc.ta-pc-account-shell > .ta-site-frame > main {
    grid-area: 1 / 2;
    inline-size: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .ta-ui-rc.ta-pc-account-shell > .ta-site-frame > main.user-center-layout {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .ta-ui-rc.ta-pc-account-shell .user-center-layout > .user-center-content {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
  }

  .ta-ui-rc.ta-pc-account-shell :is(.user-center-layout > .user-center-sidebar,
    .ta-me-parent-back, .ta-release-account-back),
  .ta-ui-rc.ta-pc-account-shell:not(.ta-pc-account-child-flow) .ta-me-entry-back {
    display: none !important;
  }

  .ta-ui-rc.ta-pc-account-shell.ta-my-publications .ta-v124-home-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .ta-ui-rc.ta-pc-account-shell.ta-my-publications #homeSupportRail {
    display: none;
  }
}
