@charset "UTF-8";


// ########################
// #    root/variables    #
// ########################

:root {
  --bgColors:$;
  --baseColors:$;
  --scrollbar-width:  $scrollbarWidth;
  --global-font-size: $globalFontSize;
  --font-override:    $fontOverride;
  --color-normal:     $userColor;
  --color-override:   $colorOverride;

  --font-increment:   calc(var(--global-font-size) - 15px);
  --font-default:     system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif, "TwitterChirp";
  --square-avatars-border-radius: 10%;
  --color-twitter-blue: #1da1f2;

  $bird-svg: "\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg%3E%3Cpath d='M23.643 4.937c-.835.37-1.732.62-2.675.733.962-.576 1.7-1.49 2.048-2.578-.9.534-1.897.922-2.958 1.13-.85-.904-2.06-1.47-3.4-1.47-2.572 0-4.658 2.086-4.658 4.66 0 .364.042.718.12 1.06-3.873-.195-7.304-2.05-9.602-4.868-.4.69-.63 1.49-.63 2.342 0 1.616.823 3.043 2.072 3.878-.764-.025-1.482-.234-2.11-.583v.06c0 2.257 1.605 4.14 3.737 4.568-.392.106-.803.162-1.227.162-.3 0-.593-.028-.877-.082.593 1.85 2.313 3.198 4.352 3.234-1.595 1.25-3.604 1.995-5.786 1.995-.376 0-.747-.022-1.112-.065 2.062 1.323 4.51 2.093 7.14 2.093 8.57 0 13.255-7.098 13.255-13.254 0-.2-.005-.402-.014-.602.91-.658 1.7-1.477 2.323-2.41z' %3E%3C/path%3E%3C/g%3E%3C/svg%3E\"";

  --bird-svg: url(#{$bird-svg});
}

$navbarDropdown: "div[role=menu][style^='max-height: calc'].r-ipm5af";
$notLegacyProfile: "
  &.gt2-opt-legacy-profile:not(.gt2-page-profile),
  &:not(.gt2-opt-legacy-profile).gt2-page-profile,
  &:not(.gt2-opt-legacy-profile):not(.gt2-page-profile)";

// ########################
// #         fonts        #
// ########################

// 2014-02 ~ 2017-06
@font-face {
  font-family: Rosetta;
  src: url(https://abs.twimg.com/a/1496201771/font/rosetta-icons-Regular.woff);
}

// 2017-06 ~ 2019-07
@font-face {
  font-family: Edge;
  src: url(https://abs.twimg.com/a/1569889127/font/edge-icons-Regular.woff);
}



// ########################
// #       functions      #
// ########################

// returns calc function for evenly spacing the navbar/other parts
@function space($val) {
  @return calc((100vw - #{$val} - var(--scrollbar-width)) / 2);
}

// returns val with --font-increment added
@function incr($val) {
  @return calc(#{$val} + var(--font-increment));
}

// returns a dynamic border that can be used with clip-paths
@function dropborder($width, $color) {
  @return drop-shadow(#{$width} 0px 0px #{$color})
          drop-shadow(-#{$width} 0px 0px #{$color})
          drop-shadow(0px #{$width} 0px #{$color})
          drop-shadow(0px -#{$width} 0px #{$color})
          drop-shadow(#{$width} #{$width} 0px #{$color})
          drop-shadow(-#{$width} -#{$width} 0px #{$color})
          drop-shadow(-#{$width} #{$width} 0px #{$color})
          drop-shadow(#{$width} -#{$width} 0px #{$color});
}



// ########################
// #        mixins        #
// ########################

// style for parents with hoverable icons
@mixin hoverableSvg {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 1.5em;
  width: 1.5em;

  div {
    transition: opacity .2s ease-in-out;
    background-color: var(--color-user);
    opacity: 0;
    border-radius: 9999px;
    position: absolute;
    height: 39px;
    width: 39px;
  }

  svg {
    width: 1em;
    height: 1em;
    fill: var(--color-user);
  }

  &:hover {
    cursor: pointer;
    div {
      opacity: .1;
    }
    svg {
      fill: var(--color-user) !important;
    }
  }
}

// turn area gray on hover
@mixin grayscaleHover {
  transition: filter .2s ease-in-out;
  backface-visibility: hidden;

  &:hover {
    filter: brightness(87.5%);
    -webkit-filter: brightness(87.5%);
  }
}

// small dashboard profile
@mixin smallDashboardProfile {
  .gt2-dashboard-profile {
    width: 290px !important;
    .gt2-banner {
      height: 96px !important;
    }

    .gt2-avatar {
      width: 72px !important;
      height: 72px !important;
    }

    .gt2-toggle-lo-nightmode,
    .gt2-toggle-acc-switcher-dropdown {
      bottom: calc(83px + (var(--font-increment) + 2px) / 2) !important;
    }

    .gt2-user {
      top: 103px !important;
      left: 90px !important;
      .gt2-name {
        width: 160px !important;
      }
    }
  }
}

// default link styling
@mixin standardLink {
  a,
  a:link,
  a:visited {
    color: var(--color-user);
    text-decoration-line: none;
    &:hover {
      text-decoration-line: underline;
    }
  }
}

// default border styling
@mixin separatorTop {
  border-top: 1px solid var(--color-gray-dark) !important;
}
@mixin separatorBottom {
  border-bottom: 1px solid var(--color-gray-dark) !important;
}



// ########################
// #   responsive styles  #
// ########################

// normal display
@media only screen and (min-width: 1350px) {
  body:not(.gt2-opt-small-sidebars) {
    main > div,
    main > div > div > div {
      width: 1320px !important;
    }
    .gt2-nav-left,
    .gt2-legacy-profile-nav-left,
    .gt2-legacy-profile-nav-center {
      margin-left: space(1318px);
    }
    .gt2-nav-right,
    .gt2-legacy-profile-nav-right {
      margin-right: space(1318px);
    }

    #{$navbarDropdown} {
      right: space(1320px) !important;
    }

    .gt2-search-overflow-hider {
      right: calc(50% - 300px);
    }

    &.gt2-opt-sticky-sidebars {
      div[data-testid=primaryColumn] {
        margin-left: 360px;
      }
    }

    &[data-gt2-path^="settings"] {
      main {
        section[aria-labelledby=root-header] {
          margin-left: 360px;
          width: 360px;
        }
        section[aria-labelledby=detail-header] {
          margin-left: 720px;
        }
      }
    }

    &.gt2-not-logged-in {
      &.gt2-opt-sticky-sidebars {
        div[data-testid=sidebarColumn] {
          margin-left: 10px;
        }
      }
      &:not(.gt2-opt-sticky-sidebars) {
        div[data-testid=primaryColumn] {
          margin: 0 10px;
        }
        div[data-testid=sidebarColumn] {
          margin-left: 0;
        }
      }
      &[data-gt2-path^="settings"] {
        main > div > div > div {
          max-width: 1310px;
        }
      }
    }
  }
}


// normal display (with smallSidebars enabled)
@media only screen and (min-width: 1230px) {
  .gt2-opt-small-sidebars {
    main > div {
      width: 1200px !important;
      & > div > div {
        max-width: 1200px !important;
        width: 1200px !important;
      }
    }
    .gt2-nav-left,
    .gt2-legacy-profile-nav-left,
    .gt2-legacy-profile-nav-center {
      margin-left: space(1198px);
    }
    .gt2-nav-right,
    .gt2-legacy-profile-nav-right {
      margin-right: space(1198px);
    }

    #{$navbarDropdown} {
      right: space(1200px) !important;
    }

    .gt2-search-overflow-hider {
      right: calc(50% - 300px);
    }

    &.gt2-opt-sticky-sidebars {
      div[data-testid=primaryColumn] {
        margin-left: 300px;
      }
    }

    &[data-gt2-path^="settings"] {
      main {
        section[aria-labelledby=root-header] {
          margin-left: 300px;
          width: 300px;
        }
        section[aria-labelledby=detail-header] {
          margin-left: 600px;
        }
      }
    }

    &.gt2-not-logged-in {
      &.gt2-opt-sticky-sidebars {
        div[data-testid=sidebarColumn] {
          margin-left: 10px;
        }
      }
      &:not(.gt2-opt-sticky-sidebars) {
        div[data-testid=primaryColumn] {
          margin: 0 10px;
        }
        div[data-testid=sidebarColumn] {
          margin-left: 0;
        }
      }
    }
  }
}


// only right sidebar
@media only screen and (max-width: 1350px)
                   and (min-width: 1095px) {
  body:not(.gt2-opt-small-sidebars) {
    main > div {
      width: 960px !important;
      & > div > div {
        width: 960px !important;
        left: 0 !important;
      }
    }
    .gt2-nav-left,
    .gt2-legacy-profile-nav-left,
    .gt2-legacy-profile-nav-center {
      margin-left: space(958px);
    }
    .gt2-nav-right,
    .gt2-legacy-profile-nav-right {
      margin-right: space(958px);
    }

    #{$navbarDropdown} {
      right: space(960px) !important;
    }

    .gt2-search-overflow-hider {
      right: calc(50% - 120px);
    }

    // hide sidebar
    .gt2-left-sidebar {
      display: none;
    }

    &[data-gt2-path^="settings"] {
      main {
        section[aria-labelledby=root-header] {
          margin-left: 0;
          width: 360px;
        }
        section[aria-labelledby=detail-header] {
          margin-left: 360px;
        }
      }
    }

    .gt2-legacy-profile-nav {
      .gt2-legacy-profile-nav-right {
        padding-right: 360px;
      }
    }
  }
}


// right small sidebar (for reuse)
@mixin displayRightSmallSidebar {
  main > div {
    width: 900px !important;
    & > div > div {
      width: 900px !important;
      justify-content: unset !important;

      div[data-testid=sidebarColumn],
      div[data-testid=sidebarColumn] > div > div {
        width: 290px;
      }
    }
  }

  .gt2-nav-left,
  .gt2-legacy-profile-nav-left,
  .gt2-legacy-profile-nav-center {
    margin-left: space(898px);
  }
  .gt2-nav-right,
  .gt2-legacy-profile-nav-right {
    margin-right: space(898px);
  }
  #{$navbarDropdown} {
    right: space(900px) !important;
  }

  .gt2-search-overflow-hider {
    right: calc(50% - 150px);
  }

  // smaller search
  .gt2-search > div {
    width: 270px !important;
  }

  .gt2-legacy-profile-nav {
    .gt2-legacy-profile-nav-right {
      padding-right: 300px;
    }
  }
}


// only right sidebar (with smallSidebars enabled)
@media only screen and (min-width: 1095px)
                   and (max-width: 1230px) {
  .gt2-opt-small-sidebars {
    @include displayRightSmallSidebar;

    &[data-gt2-path^="settings"] {
      main {
        section[aria-labelledby=root-header] {
          margin-left: 0;
          width: 300px;
        }
        section[aria-labelledby=detail-header] {
          margin-left: 300px;
        }
      }
    }
  }
}


// right small sidebar
@media only screen and (min-width: 1005px)
                   and (max-width: 1095px) {
  @include displayRightSmallSidebar;
  @include smallDashboardProfile;

  body[data-gt2-path^="settings"] {
    main {
      section[aria-labelledby=root-header] {
        margin-left: 0;
        width: 300px;
      }
      section[aria-labelledby=detail-header] {
        margin-left: 300px;
      }
    }
  }
}


// any right sidebar
@mixin someRightSidebar {
  div[data-testid=primaryColumn] {
    margin-right: 10px;
  }
  .gt2-left-sidebar {
    display: none;
  }

  .gt2-settings-back {
    display: none !important;
  }

  .gt2-legacy-profile-nav {
    .gt2-legacy-profile-nav-left {
      padding-left: 610px;
    }
    .gt2-legacy-profile-nav-center {
      left: 0;
      padding: unset;
    }
  }
}
@media only screen and (max-width: 1350px)
                   and (min-width: 1005px) {
  body:not(.gt2-opt-small-sidebars) {
    @include someRightSidebar;

    &.gt2-not-logged-in {
      div[data-testid=sidebarColumn] {
        margin-left: 10px;
      }
    }
  }
  .gt2-opt-small-sidebars {
    @media only screen and (max-width: 1230px) {
      @include someRightSidebar;

      &.gt2-not-logged-in {
        div[data-testid=sidebarColumn] {
          margin-left: 10px;
        }
      }
    }
  }
}


// no sidebars at all
@media only screen and (max-width: 1005px) {
  main > div {
    width: 600px !important;
    & > div > div > div:nth-child(1) {
      margin-right: 0 !important;
    }
  }

  .gt2-nav-left,
  .gt2-legacy-profile-nav-left,
  .gt2-legacy-profile-nav-center {
    margin-left: space(598px);
    .gt2-nav-header {
      display: none;
    }
  }
  .gt2-nav-right,
  .gt2-legacy-profile-nav-right {
    margin-right: space(598px);
  }
  #{$navbarDropdown} {
    right: space(600px) !important;
  }

  .gt2-left-sidebar {
    display: none;
  }

  body[data-gt2-path^="settings"] {
    main > div > div > div {
      section {
        margin-bottom: 0 !important;
      }
      border-width: 1px;
      height: max-content;
      flex-grow: 0;
      margin-bottom: 10px;
      > div:last-child {
        margin-bottom: 0;
      }
    }
    &[data-gt2-path^="settings/gt2"] {
      main > div > div > div > div:not(.gt2-left-sidebar) {
        display: none;
      }
    }
    .gt2-settings-back {
      display: flex !important;
    }
  }

  .gt2-search-overflow-hider {
    width: 100% !important;
  }


  .gt2-not-logged-in {
    div[data-testid=sidebarColumn] {
      display: none;
    }
  }
}


// not smallest screen
@media only screen and (min-width: 1005px) {
  .gt2-opt-sticky-sidebars {
    #{$notLegacyProfile} {
      .gt2-left-sidebar {
        position: fixed !important;
        height: calc(100vh - 57px);
      }
    }
  }
  body:not(.gt2-opt-sticky-sidebars)[data-gt2-path^="settings/"] {
    .gt2-left-sidebar {
      position: fixed !important;
      height: calc(100vh - 57px);
    }
  }

  body:not(.gt2-not-logged-in) {
    .gt2-nav-left > a[href="/explore"] {
      display: none !important;
    }
  }
}


// even smaller screen
@media only screen and (max-width: 705px) {
  body[data-gt2-path-modal^="compose/tweet"] {
    main {
      margin-top: 0 !important;
      & > div {
        width: 100% !important;
      }
    }
    .gt2-nav {
      display: none;
    }
  }
  body[data-gt2-path="messages"],
  body[data-gt2-path^="messages/"],
  body[data-gt2-path^="i/moment_maker"] {
    main > div > div > div > div:nth-last-child(2) {
      top: 56px;
      position: sticky;
      @include separatorTop;
    }
    .gt2-search-overflow-hider {
      display: block;
    }
  }
}



// ########################
// #    global styling    #
// ########################

// global background color
body {
  background-color: var(--color-bg) !important;
}

// minimalscrollbar
html[data-minimalscrollbar] {
  body {
    margin-right: 0 !important;
  }
}

// hide header completely (left sidebar)
header {
  display: none !important;
}

// remove anchor decorations
a {
  &:hover {
    text-decoration-thickness: 1px;
  }
  &:not(:hover) {
    text-decoration-line: unset;
  }
}

// non transparent tooltips
#layers [role=tooltip] {
  background-color: rgb(110, 118, 125);
}

// remove invisible overlay on tab navigation
[data-testid^=ScrollSnap-].r-orgf3d {
  display: none;
}

// make parts around toasts clickable
div[data-testid=toast] {
  position: absolute;
  bottom: 0;
}

// headings decrop
h2 {
  font-weight: 800 !important;
  line-height: normal !important;
  & > div {
    &:nth-child(2) {
      line-height: normal !important;
    }
    // icon
    &:nth-child(3) {
      align-self: center;
    }
  }
}

// main component
main {
  align-items: center !important;

  & > div > div {
    margin: 0 !important;
  }

  & > div > div > div {

    // compact conversations on tweets
    div[data-testid=primaryColumn] {
      height: fit-content;
      height: -moz-fit-content;
      height: -webkit-fit-content;
      margin-bottom: 10px;
      @include separatorBottom;

      & > div {

        // scroll behind nav bar
        & > div:nth-child(1) {
          position: relative;
        }

        // small compose tweet
        & > div:nth-child(2):not(.gt2-compose-large) {
          [data-testid=toolBar] {
            display: none;
          }
          & > div,
          & > div > div:nth-child(2) {
            padding-bottom: 0 !important;
            & > div > div > div > div > div:nth-child(2) {
              padding-top: 0 !important;
            }
          }
        }
        // compose tweet hide scrollbar
        .DraftEditor-root {
          overflow: unset;
        }

        [data-testid=tweet] {
          // put tweet images in foreground
          img {
            z-index: 1;
          }
          & > div > div > div > div:nth-child(3) > div > div:empty {
            margin: unset;
          }
        }

        // ChirpUpdate: readd vertical dividers
        section[aria-labelledby*=accessible-list] div[style*="position: absolute"]:not(.gt2-hidden) + div:not(:last-child) > div:not(:empty):not([data-gt2-divider-add-ignore]) {
          @include separatorBottom;

          & > div:empty {
            height: 8px;
            margin: unset !important;
            background-color: var(--color-elem-sel);
          }
          [data-testid=placementTracking] {
            @include separatorTop;
          }
        }

        [data-testid=cellInnerDiv] [data-gt2-divider-add-ignore] a[href^="/i/status/"] {
          margin: unset;
          padding-left: 16px;
        }

        & > div:nth-child(2) > div > section > div > div {
          padding-bottom: 0 !important;
          & > div > div:not([class]) {
            &:nth-last-child(2) > div {
              border-bottom-width: 0;
            }

            &:last-child > div {
              height: fit-content;
              height: -moz-fit-content;
              height: -webkit-fit-content;
              & > div {
                height: calc(6.5625rem);
                &:empty {
                  display: none;
                }
              }
            }
          }
        }
      }
    }

    // separators
    div[data-testid=primaryColumn] > div > div:nth-child(1),
    & > section {
      @include separatorTop;
      @include separatorBottom;
    }

    // section title separator
    & > section > div:nth-child(1) > div:not([data-testid=emptyState]) > div:nth-child(1) {
      @include separatorBottom;
    }

    div[data-testid=sidebarColumn] {
      margin-right: 0;

      & > div {
        min-height: 0 !important;

        & > div:nth-child(2) > div {
          margin-bottom: 10px;

          & > div > div {
            padding: 0;

            // apply theme to sidebar elements
            & > div {
              border-radius: 0;
              border: 1px solid var(--color-gray-dark);
              background-color: var(--color-elem);
              margin-bottom: 10px;

              // tos/privacy policy/etc. nav
              &:nth-last-child(1) nav {
                padding: 15px;
                // more button
                & > :nth-last-child(2) > div {
                  &:hover {
                    text-decoration-thickness: 1px;
                  }
                  &:not(:hover) {
                    text-decoration-line: unset;
                  }
                }
              }

              &:empty {
                display: none;
              }

              &:last-child {
                margin-bottom: 10px;
              }

              a[href^="/i/connect_people"] {
                border-radius: unset;
              }

              // ChirpUpdate: readd vertical dividers
              // who to follow / you might like
              aside {
                & > div > div,
                & > a[href*="i/connect_people"] {
                  @include separatorTop;
                }
              }
            }
          }
        }
      }
    }
  }
}



// ########################
// #     page specific    #
// ########################

// error page
.gt2-page-error {
  main > div > div > div {
    display: inline;
    .gt2-left-sidebar {
      float: left;
      position: relative !important;

      & + div {
        width: 600px;
        background-color: var(--color-elem);
        float: left;
        margin: 0 10px;
      }
    }
  }
}

// home page
body[data-gt2-path="home"] {
  [data-testid=primaryColumn] > div > div > div:nth-child(2) > nav {
    border-bottom-width: 0;
  }
}

// messages page
body[data-gt2-path="messages"],
body[data-gt2-path^="messages/"],
body[data-gt2-path^="i/moment_maker"] {
  .gt2-left-sidebar {
    display: none;
  }
  main > div > div > div {
    & > section {
      max-width: unset;
      border-bottom-width: 1px;
      margin-bottom: 10px;

      &:nth-last-child(2) {
        width: 40%;

        // better indicator for active conversation
        div[data-testid=conversation] {
          @include separatorBottom;

          & > div > div:nth-child(2) > div > div:nth-child(1) > div:nth-child(1) > div {
            overflow-x: hidden;
          }

          &[aria-selected=true] {
            background-color: var(--color-elem-sel);
            & + div {
              border-right-width: 4px;
            }
          }
        }
      }

      // right section
      &:nth-last-child(1) {
        width: 60%;
        & > div {
          &,
          & > div > div,
          & > div > div:nth-child(1) > div > div > div > div,
          & > div > div:nth-child(2) > div > div > div:not([style]) > div > div > div {
            max-width: unset;
            margin: unset;
          }
        }
      }
    }
  }
}
body[data-gt2-path="messages/settings"] {
  main > div > div > div > section:nth-last-child(1) > div:nth-child(2) > div > div > div {
    @include separatorBottom;
  }
}
body[data-gt2-path^="messages/"][data-gt2-path*="/info"] {
  main > div > div > div > section:nth-last-child(1) > div:nth-child(2) > div > div > div > div {

    &:nth-child(2),
    &:nth-child(3) {
      & > :empty {
        margin: unset;
      }
      & > :not(:empty) {
        @include separatorBottom;
      }
    }
  }
}
body[data-gt2-path^="i/moment_maker"] {
  section {
    background-color: var(--color-elem);
  }
}

// make show more tweets more noticable
body[data-gt2-path=home],
body[data-gt2-path=search],
body[data-gt2-path=explore] {
  div[data-testid=primaryColumn] section > h1 + div > div > div:not([class]) > div:first-child:last-child > div[role=button]:first-child:last-child > div:first-child:last-child > div[dir]:first-child:last-child {
    padding: 30px 0;
    & > span {
      font-weight: bold;
    }
  }
}

// settings page
body[data-gt2-path^="settings/"] {
  main {
    section[aria-labelledby=root-header],
    section[aria-labelledby=detail-header] {
      & > div:nth-child(2) {
        margin-bottom: 0;
      }
    }
    section[aria-labelledby=root-header] {
      position: fixed;
      border-right-width: 0;
      border-bottom-width: 1px;
      box-shadow: 1px 0 0 var(--color-gray-dark);
      // ChirpUpdate: readd vertical dividers
      [role=tablist] > div > a {
        @include separatorBottom;
      }
    }
    section[aria-labelledby=detail-header] {
      height: max-content;
      border-left-width: 1px;
      border-bottom-width: 1px;
      margin-bottom: 10px;

      a[href="/settings/contacts"],
      a[href="/settings/location_information"],
      a:last-child {
        border-bottom-width: 0;
      }
      // ChirpUpdate: readd vertical dividers
      & > div:nth-child(2):not(.gt2-settings) {
        & > *,
        & > div:not([class*=" "]) > * {
          &:not(:first-child) {
            @include separatorTop;

            &:empty {
              height: 8px;
              margin: unset !important;
              background-color: var(--color-elem-sel);
            }
          }
          &:first-child:empty {
            height: 8px;
            margin: unset !important;
            background-color: var(--color-elem-sel);
          }

        }
      }

      // tablists nav background colors get glitched somehow, not sure why
      [role=tablist] {
        background-color: var(--color-elem);
      }

      & > nav + div > div {
        &:first-child {
          border-bottom-width: 0;
        }
        // compact list, makes the scrollbar glitchy
        /*
        section > div > div {
          min-height: unset !important;
          & > div {
            position: relative !important;
            transform: unset !important;
            &:nth-last-child(2) > div {
              border-bottom-width: 0;
            }
            &:last-child {
              display: none;
            }
          }
        }*/

      }
    }
  }

  .gt2-toggle-settings {
    background-color: var(--color-elem);
    box-sizing: border-box;
    font-size: incr(15px);
    color: var(--color-text);
    text-decoration: none;

    div {
      width: inherit;
      padding: 11.7px 15px;
    }

    svg {
      transform: rotate(-90deg);
      width: incr(1.25em);
      position: absolute;
      right: 15px;
    }

    &:hover {
      cursor: pointer;
      background-color: var(--color-elem-sel);
    }
  }

  &[data-gt2-path="settings/gt2"] {
    main section[aria-labelledby=root-header] > div:nth-child(2) > div {
      & > div:not(:empty),
      & > div:not(:empty) > div:not(:empty) {
        background-color: var(--color-elem);

        & > div:nth-child(2) {
          border-right-width: 0;
        }
      }
    }

    .gt2-toggle-settings {
      background-color: var(--color-elem-sel);
      div {
        border-right: solid 2px var(--color-user);
      }
    }
  }

  .gt2-settings {
    & ~ * {
      display: none;
    }
  }
  .gt2-settings-header,
  .gt2-settings-sub-header,
  .gt2-setting {
    color: var(--color-text);
    box-sizing: border-box;
    @include separatorBottom;
    background-color: var(--color-elem);
  }

  .gt2-settings-header {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 53px;

    .gt2-settings-back {
      display: none !important;
      @include hoverableSvg;
      width: 39px;
      height: 39px;
      position: relative;
      margin-left: -4px;
      margin-right: 18px;
      svg {
        width: 1.5em;
        height: 1.5em;
        font-size: 15px;
      }
    }
  }

  .gt2-settings-header,
  .gt2-settings-sub-header {
    font-size: incr(19px) !important;
    font-weight: 800;
  }

  .gt2-settings-sub-header {
    padding: 10px 15px;
    line-height: 1.3135em;
  }

  .gt2-settings-separator {
    height: 8px;
    background-color: var(--color-elem-sel);
    @include separatorBottom;
  }


  .gt2-setting {
    padding: 15px;

    & > div {
      display: flex;
      justify-content: space-between;
    }

    .gt2-setting-toggle {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 20px;

      div {
        position: absolute;
        width: 20px;
        height: 20px;
      }

      // hover shadow
      div:nth-child(1) {
        transition: opacity 0.2s ease-in-out;
        background-color: var(--color-gray);
        opacity: 0;
        border-radius: 9999px;
        padding: 10px;
      }

      &:not(.gt2-disabled):hover div:nth-child(1) {
        opacity: 0.1;
      }

      // checkbox
      div:nth-child(2) {
        border-radius: 4px;
        border: 2px solid var(--color-gray);
        box-sizing: border-box;

        svg {
          fill: white;
          display: none;
        }
      }

      &.gt2-active {
        div:nth-child(2) {
          background-color: var(--color-user);
          border-color: var(--color-user);
        }
        svg {
          display: block !important;
        }
      }

      &.gt2-disabled {
        cursor: not-allowed;

        &.gt2-active {
          div:nth-child(2) {
            background-color: var(--color-gray-dark);
            border-color: var(--color-gray-dark);
          }
        }
      }
    }

    .gt2-setting-input {
      margin-top: 10px;
      padding: 4px;
      border: solid 1px var(--color-gray-dark-2);
      border-radius: 4px;
      -webkit-backface-visibility: hidden;
      &:focus-within {
        box-shadow: var(--color-user) 0 0 0 1px;
        border-color: var(--color-user);
      }
      input {
        appearance: none;
        outline-style: none;
        border: unset;
        background: transparent;
        width: 100%;
        font-size: incr(20px);
        font-family: inherit;
        color: var(--color-text);
      }
    }

    & > span {
      display: block;
      font-size: incr(13px);
      padding-top: 10px;
      color: var(--color-gray-light);
    }

    &:last-child {
      border-bottom: unset;
    }

    .gt2-settings-multi-selection {


      margin-top: 12.5px;
      font-size: incr(13px);
      & > div {
        &:first-child:last-child {
          flex-grow: 1;
        }
        display: flex;
        flex-direction: column;
        & > div {
          display: flex;
          margin-left: auto;
          &:not(:last-child) {
            margin-bottom: 12.5px;
          }
          & > span {
            margin-right: 10px;
          }
        }
      }
    }

    // color pickr
    .gt2-color-override-pickr {
      opacity: 1;
      visibility: visible;
      margin-top: 12.5px;
      width: auto;
      &,
      input {
        font-family: inherit;
        background-color: transparent;
        border: 1px solid var(--color-gray-dark-2);
        border-radius: 4px;
        box-shadow: unset;
        font-size: calc(15px + var(--font-increment));
        color: var(--color-text);
      }
      .pcr-type.active {
        background-color: var(--color-user);
        color: var(--color-text-2);
      }
    }
  }
}

// profile page
.gt2-page-profile {
  .gt2-dashboard-profile {
    display: none;
  }
  &.gt2-profile-not-found {
    [data-testid=emptyState] {
      margin: unset;
      max-width: unset;
      & > div {
        text-align: center;
        &:nth-child(1) {
          line-height: unset;
          font-weight: 700;
          font-size: calc(22px + var(--font-increment));
        }
      }
    }
  }
}

// blocked profile page
.gt2-page-profile-youre-blocked {
  .gt2-blocked-profile-description,
  .gt2-blocked-profile-items {
    margin-bottom: 10px;
    @include standardLink;
  }

  .gt2-blocked-profile-description {
    color: var(--color-text);
    white-space: pre-wrap;
  }

  .gt2-blocked-profile-items {
    display: inline;
    color: var(--color-gray-light);

    & > * {
      margin-right: 10px;
      display: inline-flex;
      align-items: center;
    }

    svg {
      height: 1.25em;
      margin-right: 5px;
    }
  }

  .gt2-blocked-profile-ff {
    a {
      pointer-events: none;
      color: var(--color-gray-light);
      text-decoration: none;
      margin-right: 20px;
      span {
        color: var(--color-text);
        font-weight: 700;
      }
    }
  }

  .gt2-blocked-profile-followers-you-know {
    margin-top: 10px;
    font-size: incr(13px);
    display: flex;
    color: var(--color-gray-light);
    text-decoration-line: none;

    &:hover {
      text-decoration-line: underline;
    }

    & > img {
      width: 20px;
      height: 20px;
      border: solid 1px var(--color-bg);
      border-radius: 9999px;
      position: relative;

      &:nth-child(1) {
        z-index: 2;
      }
      &:nth-child(2) {
        z-index: 1;
        margin-left: -10px;
      }
      &:nth-child(3) {
        margin-left: -10px;
      }
      &:nth-last-of-type(1) {
        margin-right: 10px;
      }
    }
  }
}

// tweet page
.gt2-page-tweet {
  // sticky header with back button
  .gt2-search-overflow-hider {
    display: block;
  }
  div[data-testid=primaryColumn] {
    border-top-width: 0 !important;
    & > div > div {
      &:nth-child(1) {
        top: 56px;
        position: sticky;
        @include separatorTop;
      }
      &:nth-child(2) {
        top: 0;
        position: relative;
      }
    }
  }
}

// tweet analytics
body[data-promote-url^="/i/tfb/v1/quick_promote"] {
  background-color: var(--color-elem) !important;

  .QuoteTweet {
    border-color: var(--color-gray);
  }

  // buttons
  .ep-ViewAllEngagementsButton,
  .ep-InlineSignupButton {
    color: white !important;
    background-color: #55acee !important;
  }

  // separators
  .ep-Campaign,
  .ep-DetailedEngagementsSection {
    border-color: var(--color-gray-dark);
  }

  // text
  .ProfileTweet-originalAuthor b,
  .QuoteTweet-text,
  .QuoteTweet-text b,
  .QuoteTweet-text s,
  .QuoteTweet-text span,
  .ep-MetricName,
  .ep-MetricValue span,
  .ep-SectionTitle {
    color: var(--color-text) !important;
  }
}

// signup for tweet promoting
body[data-payment-endpoint-path] {
  background-color: var(--color-elem) !important;

  .as-Label,
  .as-SelectContainer {
    color: var(--color-text);

    option {
      background-color: var(--color-elem);
    }
  }
}



// ########################
// #      GT2 options     #
// ########################

// old profile layout
.gt2-opt-legacy-profile.gt2-page-profile {
  main {
    margin-top: calc((100vw - var(--scrollbar-width)) / 3 + 47px + 60px + 10px) !important;
    min-height: 880px;

    & > div {
      transition: margin-top .25s ease-in-out;
    }

    div[data-testid=primaryColumn] > div {
      // @include separatorTop;

      & > div > div > div > div:nth-child(1) {
        position: absolute;
        top: 0;
        left: -9999999px;
      }
      & > div:nth-child(1) {
        border-top-width: 0 !important;
      }
    }
  }

  &.gt2-profile-not-found {
    main > div {
      margin-top: unset !important;
    }
    .gt2-legacy-profile-nav a,
    .gt2-legacy-profile-info a {
      pointer-events: none;
    }

    &.gt2-scrolled-down-banner .gt2-legacy-profile-info {
      display: none;
    }
  }

  .gt2-legacy-profile-banner,
  .gt2-legacy-profile-nav {
    z-index: 1;
  }

  .gt2-legacy-profile-banner {
    background-color: var(--color-gray-dark);
    width: 100%;
    height: calc((100vw - var(--scrollbar-width)) / 3);
    margin-top: 47px;
    display: flex;
    align-items: center;
    overflow: hidden;
    img {
      width: inherit;
    }
  }

  .gt2-legacy-profile-nav {
    height: 60px;
    width: 100%;
    background-color: var(--color-navbar);
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    @include standardLink;

    & > div {
      position: absolute;
      height: inherit;
      display: flex;
    }

    .gt2-legacy-profile-nav-left {
      align-items: center;
      width: 0;
      // avatar
      .gt2-legacy-profile-nav-avatar img {
        border-radius: 9999px;
        transition: 0.25s filter;
        &:hover {
          filter: brightness(.85);
          cursor: pointer;
        }
      }
      & > div {
        display: flex;
        flex-direction: column;
        margin-left: 10px;

        .gt2-legacy-profile-name span {
          text-overflow: ellipsis;
        }
        .gt2-legacy-profile-name,
        .gt2-legacy-profile-screen-name-wrap {
          span {
            white-space: nowrap;
            overflow: hidden;
          }
        }
      }
    }

    .gt2-legacy-profile-nav-center {
      a {
        text-decoration-line: none !important;
        padding: 10px 15px;
        text-align: center;
        div {
          color: var(--color-gray-light) !important;
          font-weight: bold;

          &:nth-child(1) {
            font-size: incr(12px);
          }
          &:nth-child(2) {
            font-size: incr(18px);
          }
        }
        &:hover {
          border-bottom: 3px solid var(--color-user);
          div:nth-child(2) {
            color: var(--color-user) !important;
          }
        }
      }
    }

    .gt2-legacy-profile-nav-right {
      right: 0;
      align-items: center;

      [role=button],
      div[data-testid=placementTracking] > div,
      [href="/settings/profile"] {
        margin-bottom: 0;
      }
    }
  }

  .gt2-legacy-profile-name {
    font-size: incr(18px);
    font-weight: bold;
    color: var(--color-text) !important;
    font-weight: 800;
  }

  .gt2-legacy-profile-screen-name-wrap {
    display: flex;
  }

  .gt2-legacy-profile-screen-name {
    font-size: incr(14px);
    color: var(--color-gray-light);
  }

  .gt2-legacy-profile-info {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    @include standardLink;

    border: unset;
    background-color: unset;

    .gt2-legacy-profile-screen-name {
      color: var(--color-gray-light) !important;
    }

    .gt2-legacy-profile-description:not(:empty) {
      color: var(--color-text);
      [data-testid=UserDescription] {
        color: var(--color-text);
        & + div {
          width: max-content;
          &:hover {
            text-decoration-line: underline;
          }
        }
      }
    }

    .gt2-legacy-profile-screen-name-wrap,
    .gt2-legacy-profile-description:not(:empty),
    .gt2-legacy-profile-automated {
      margin-bottom: 12px !important;
    }

    .gt2-legacy-profile-automated {
      margin: unset;
    }

    .gt2-legacy-profile-items > *:not(:last-child) {
      display: block;
      margin-bottom: 4px;
    }

    .gt2-legacy-profile-name,
    .gt2-legacy-profile-items > *:not(:last-child) {
      width: fit-content;
      width: -moz-fit-content;
      width: -webkit-fit-content;
    }
    .gt2-legacy-profile-items {
      span, svg {
        color: var(--color-gray-light);
      }
      a:hover {
        text-decoration-color: var(--color-gray-light);
      }
    }

    .gt2-legacy-profile-fyk:not(:empty) {
      span, div {
        color: var(--color-gray-light);
      }
      margin-top: 12px;
      padding-right: 10px;
      &:hover {
        a {
          text-decoration-color: var(--color-gray-light);
        }
      }
    }


    // blocked profile
    .gt2-legacy-profile-item {
      .gt2-blocked-profile-location,
      .gt2-blocked-profile-url,
      .gt2-blocked-profile-birthday,
      .gt2-blocked-profile-joined-at {
        display: inline-flex;
        svg {
          height: 1.25em;
          margin-right: 5px;
        }
        &:not(.gt2-blocked-profile-url) {
          color: var(--color-gray-light);
        }
      }
    }
    .gt2-legacy-profile-fyk .gt2-blocked-profile-followers-you-know span {
      color: var(--color-gray-light);
    }
  }

  // normal view with big banner
  &:not(.gt2-scrolled-down-banner)  {
    .gt2-legacy-profile-banner,
    .gt2-legacy-profile-nav {
      position: absolute;
    }

    .gt2-legacy-profile-nav {
      margin-top: calc((100vw - var(--scrollbar-width)) / 3 + 47px);

      .gt2-legacy-profile-nav-left {
        // avatar
        .gt2-legacy-profile-nav-avatar {
          filter: dropborder(2.5px, var(--color-navbar));
          img {
            width: 200px;
            height: 200px;
          }
          margin-bottom: 100px;
        }
        .gt2-legacy-profile-name,
        .gt2-legacy-profile-screen-name-wrap {
          display: none;
        }
      }
    }

    .gt2-legacy-profile-info {
      padding-top: 30px;
    }
  }

  // view when scrolled down
  &.gt2-scrolled-down-banner {
    main > div {
      margin-top: 50px;
    }

    .gt2-legacy-profile-banner,
    .gt2-legacy-profile-nav {
      position: fixed;
    }

    .gt2-legacy-profile-banner {
      height: 15px !important;
      img {
        transform: unset !important;
      }
    }

    .gt2-legacy-profile-nav {
      margin-top: calc(47px + 15px);

      .gt2-legacy-profile-nav-left .gt2-legacy-profile-nav-avatar img {
        width: 36px;
        height: 36px;
      }
    }
    .gt2-legacy-profile-info {
      .gt2-legacy-profile-name,
      .gt2-legacy-profile-screen-name-wrap {
        display: none;
      }
    }
  }
}
body {
  #{$notLegacyProfile} {
    main {
      margin-top: 56px;
    }
    .gt2-legacy-profile-banner,
    .gt2-legacy-profile-nav,
    .gt2-legacy-profile-info {
      display: none;
    }
  }
}

// sticky sidebars
.gt2-opt-sticky-sidebars {
  #{$notLegacyProfile} {
    div[data-testid=sidebarColumn] > div > div:nth-child(2) {
      position: fixed;
      top: 56px !important;
      height: calc(100vh - 47px);
    }
  }
  &.gt2-page-profile.gt2-opt-legacy-profile {
    &:not(.gt2-scrolled-down-banner) {
      .gt2-left-sidebar,
      div[data-testid=sidebarColumn] > div > div:nth-child(2) {
        position: absolute;
        top: 0 !important;
      }
    }
    &.gt2-scrolled-down-banner {
      .gt2-left-sidebar,
      div[data-testid=sidebarColumn] > div > div:nth-child(2) {
        position: fixed;
        top: calc(47px + 15px + 60px + 10px) !important;
      }

      div[data-testid=sidebarColumn] > div > div:nth-child(2) {
        height: calc(100vh - (47px + 15px + 60px));
      }
      .gt2-left-sidebar {
        height: calc(100vh - (47px + 15px + 60px + 10px));
      }
    }
  }

  // indepentently scrollable right sidebar
  div[data-testid=sidebarColumn] > div {

    & > div:nth-child(1) {
      margin-top: 0 !important;
    }

    > div:nth-child(2) {
      bottom: unset !important;
      padding-top: 10px;
      margin-top: -10px;
      overflow-x: hidden;
      overflow-y: scroll;
      -ms-overflow-style: none;
      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }
    }
  }

  // bigger native navbar
  &.gt2-not-logged-in {
    div[data-testid=sidebarColumn] > div > div:nth-child(2) {
      height: calc(100vh - 64px);
      top: 64px !important;
    }
  }
}
body:not(.gt2-opt-sticky-sidebars) {
  min-height: unset !important;
  div[data-testid=sidebarColumn] > div {
    & > div:nth-child(1) {
      margin-top: 0 !important;
    }
    & > div:nth-child(2) {
      top: 0 !important;
      bottom: unset !important;
      position: absolute;
    }
  }
}

// small sidebars
.gt2-opt-small-sidebars {
  .gt2-left-sidebar,
  div[data-testid=sidebarColumn],
  div[data-testid=sidebarColumn] > div > div:nth-child(2),
  div[data-testid=sidebarColumn] > div > div:nth-child(2) > div > div {
    width: 290px;
  }
  .gt2-toggle-acc-switcher-dropdown {
    bottom: 82px !important;
  }

  .gt2-legacy-profile-nav-left > div:not(.gt2-legacy-profile-nav-avatar) {
    width: calc(300px - 46px);
  }
  .gt2-legacy-profile-nav-center {
    padding-left: 300px;
  }

  @include smallDashboardProfile;
}
body:not(.gt2-opt-small-sidebars) {
  .gt2-legacy-profile-nav-left > div:not(.gt2-legacy-profile-nav-avatar) {
    width: calc(360px - 56px);
  }
  .gt2-legacy-profile-nav-center {
    padding-left: 360px;
  }
}

// show 5 trends
.gt2-opt-show-5-trends {
  .gt2-trends-handled > div > div > div:nth-child(n+8):nth-child(-n+12) {
    display: none !important;
  }
}

// square avatars
.gt2-opt-square-avatars {
  [data-testid*=UserAvatar-Container] > div > div > div {
    & > div,
    & > div > * > div:not(:nth-child(1)) {
      border-width: 0;
      border-radius: var(--square-avatars-border-radius) !important;
    }
    & > div > * > div:nth-child(1) {
      border-radius: calc(var(--square-avatars-border-radius) * 1.15) !important;
    }
  }

  // enlarge profile picture
  &.gt2-page-profile[data-gt2-path$="/photo"] {
    #layers [data-testid=swipe-to-dismiss] > div > div > div {
      border-radius: var(--square-avatars-border-radius) !important;
    }
  }

  // dashboard profile
  .gt2-dashboard-profile .gt2-avatar {
    border-radius: calc(var(--square-avatars-border-radius) * 1.15);
    img {
      border-radius: var(--square-avatars-border-radius);
    }
  }

  // legacy profile layout
  &.gt2-opt-legacy-profile.gt2-page-profile .gt2-legacy-profile-nav .gt2-legacy-profile-nav-left .gt2-legacy-profile-nav-avatar img {
    border-radius: var(--square-avatars-border-radius);
  }
}

// disable hexagonal avatars OFF
body:not(.gt2-opt-disable-hexagon-avatars) {
  .gt2-legacy-profile-nav-avatar.gt2-avatar-hex img {
    clip-path: url("#hex-hw-shapeclip-clipconfig");
  }
}

// font global override
.gt2-opt-font-override {
  &,
  .r-1qd0xha,
  .r-1tl8opc,
  .r-37j5jr {
    font-family: var(--font-override), var(--font-default) !important;
  }
}
body:not(.gt2-opt-font-override) {
  &,
  .r-1qd0xha,
  .r-1tl8opc,
  .r-37j5jr {
    font-family: var(--font-default) !important;
  }
}

// color global override TODO
.gt2-opt-color-override {
  --color-raw-user: var(--color-override);
  --color-user: rgb(var(--color-override));
  // normal color
  *:not(#placeholder) {
    // blue         yellow         red             purple          orange          green
    & > .r-13gxpu9, & > .r-61mi1v, & > .r-daml9f,  & > .r-xfsgu1,  & > .r-1qkqhnw, & > .r-nw8l94,  // normal
    & > .r-xyrcl7,  & > .r-iogyil, & > .r-dyo1pg,  & > .r-1u5vp33, & > .r-ucruu0,  & > .r-58mm23, // white hc
    & > .r-6743kw,  & > .r-mjbqy8, & > .r-1e0i1xg, & > .r-2o3veo,  & > .r-pxzkq4,  & > .r-mhzhfq, // dim/lo hc
    & > .r-1n1174f // blue (link?)
    {
      &:not([data-gt2-color-override-ignore]):not([href="/i/keyboard_shortcuts"]) {
        color: var(--color-user) !important;
      }
    }
  }

  // border
  // blue     yellow      red         purple      orange      green
  .r-p1n3y5,  .r-v6khid,  .r-1iofnty, .r-11mmphe, .r-1xl5njo, .r-5ctkeg,  // normal
  .r-yness5,  .r-9h97i0,  .r-1y0ydr9, .r-1v3952k, .r-57jueo,  .r-2a99tl,  // white hc
  .r-141ztgp, .r-dbkiaw,  .r-161anm9, .r-1mqg5jq, .r-15zavzp, .r-16uoikt, // dim/lo hc
  // border-right-color
  .r-4rwt92,  .r-o1b8s3,  .r-l7fug5,  .r-ukm9ly,  .r-as53oi,  .r-1oux8jo, // normal
  .r-d5u5q4,  .r-19xls35, .r-1kbil5v, .r-s9itga,  .r-bym8x3,  .r-1yd53u3, // white hc
  .r-1d28s8i, .r-in38py,  .r-vq7458,  .r-sl5e8k,  .r-6yb0ro,  .r-n7vpbo,  // dim/lo hc
  [role^=radio] > [style*=border-color]:not([style*="196, 207, 214"]):not([style*="61, 84, 102"]):not([style*="105, 121, 135"]) {
    &:not([data-gt2-color-override-ignore]) {
      border-color: var(--color-user) !important;
    }
  }

  // background-color
  // blue     yellow      red         purple      orange      green
  .r-urgr8i,  .r-1vkxrha, .r-1dgebii, .r-1qqlz1x, .r-18z3xeu, .r-b5skir,  // normal
  .r-uc097p,  .r-xw9v2f,  .r-evx7rm,  .r-1dbsxl1, .r-1hmhqf0, .r-1glhoi6, // white hc
  .r-ehp08b,  .r-b6cyrz,  .r-1smv0ti, .r-1y0hbxw, .r-1vm9sjz, .r-akbbt1   // dim/lo hc
  {
    &:not([data-gt2-color-override-ignore]) {
      background-color: var(--color-user) !important;
    }
  }
  // blue     yellow      red         purple      orange      green
  .r-zv2cs0,  .r-75i7r9,  .r-wcu338,  .r-va2hk5,  .r-1vxd3ld, .r-1up5ays, // normal
  .r-1bek5y6, .r-1ho5ue4, .r-vrom3q,  .r-ri3bjg,  .r-bnzbsy,  .r-1q8d70v, // white hc
  .r-1398f9q, .r-10uxyot, .r-4fqi4g,  .r-1q8gm4o, .r-dvf0r7,  .r-j9ra1a   // dim/lo hc
  {
    &:not([data-gt2-color-override-ignore]) {
      background-color: rgba(var(--color-raw-user), 0.1) !important;
    }
  }
  // blue     yellow      red         purple      orange      green
  .r-1q3imqu, .r-1kplyi6, .r-1ucxkr8, .r-njt2r9,  .r-l779s2,  .r-zx61xx, // normal
  .r-1urml5z, .r-1qhlxry, .r-1vitrf9, .r-pg0o0i,  .r-z5urpw,  .r-xsbikc, // white hc
  .r-88ljsu,  .r-1wgs45s, .r-1op4b40, .r-1ljv63d, .r-1g95jii, .r-1q8eqjg // dim/lo hc
  {
    &:not([data-gt2-color-override-ignore]):not([data-testid=confirmationSheetConfirm]) {
      background-color: rgba(var(--color-raw-user), 0.7) !important;
    }
  }

  // box-shadow
  // blue     yellow      red         purple      orange      green
  .r-1bih22f, .r-cdj8wb,  .r-jd07pc,  .r-hy56xe,  .r-b8m25f,  .r-1cqwhho, // normal
  .r-yab67o,  .r-1wzm90r, .r-1cstf6x, .r-13g0htx, .r-fne7zz,  .r-nlrx61,  // white hc
  .r-4m1y5e,  .r-6q7mtj,  .r-n0hhbi,  .r-jlh3ao,  .r-1pfvgl4, .r-1v12qsz  // dim/lo hc
  {
    &:not([data-gt2-color-override-ignore]) {
      box-shadow: var(--color-user) 0px 0px 0px 1px !important;
    }
  }

  // compose tweet length indicator
  [data-testid=toolBar] [role=progressbar] svg circle:nth-child(2) {
    stroke: var(--color-user) !important;
  }
}
body:not(.gt2-opt-color-override) {
  --color-raw-user: var(--color-normal);
  --color-user: rgb(var(--color-normal));
}

// bigger image previews
.gt2-opt-bigger-previews {
  [data-testid=tweet] [aria-labelledby] > div:not([data-testid]) > div {
    width: 100%;
    > div > div {
      align-self: unset !important;
      > div > div {
        width: 100%;
      }
      a[href^="/"][href*="/photo/"] > div {
        height: 100% !important;
        width: 100% !important;
        & > div:nth-child(1) {
          padding-bottom: 0 !important;
        }
        & > div:nth-child(2) {
          position: relative;

          & > div {
            display: contents;
            position: relative;
            & > div {
              display: none;
            }
            & > img {
              position: relative;
              opacity: 1;
            }
          }
        }
      }
    }
  }
}

// showMediaWithContentWarnings
.gt2-opt-show-media-with-content-warnings {
  *:not([data-testid=placementTracking]) > * > [data-testid=tweet][data-gt2-show-media],
  &.gt2-opt-show-media-with-content-warnings-sel-7 *:not([data-testid=placementTracking]) > * > [data-testid=tweet] {
    [aria-labelledby] > div:not([data-testid]) > div:not([data-testid]):not([role]) > div:not([role]) > div:not([role]) {
      &:nth-child(1) {
        filter: unset;
      }

      &:nth-child(2) {
        display: none;
      }
    }
  }
}

// hide follow suggestions (divider line)
[data-testid=cellInnerDiv].gt2-hidden + div > div > div:empty {
  height: 0;
  margin: 0;
}

// hide translated tweets
.gt2-opt-hide-translate-tweet-button {
  [data-testid=tweet] div[lang] + div[role=button] {
    display: none;
  }
}

// hide promote tweet button
.gt2-opt-hide-promote-tweet-button {
  [data-testid=tweet] a[href*="/quick_promote_web/"] {
    display: none;
  }
}

// hide message box (bottom right)
.gt2-opt-hide-message-box {
  div[data-testid=DMDrawer] {
    height: 0;
    z-index: -1;
    border-width: 0;
    box-shadow: unset;
  }
}

// bunch up tweet interactions
.gt2-opt-tweet-icons-pull-left {
  [data-testid=primaryColumn] [data-testid=tweet] > div > div > div > div:nth-child(2) > div:nth-child(2) > div:last-child > div:last-child > div[role=group] {
    justify-content: unset;
    & > *:not(:last-child) {
      max-width: 80px;
      margin-right: 20px;
    }
  }
}

.gt2-opt-bird-icon {
  #placeholder,
  .gt2-nav-center a {
    svg {
      background-color: var(--color-twitter-blue);
      mask-image: var(--bird-svg);
      mask-repeat: no-repeat;
      -webkit-mask-image: var(--bird-svg);
      -webkit-mask-repeat: no-repeat;

      g {
        display: none;
      }
    }
  }
}

// rosetta/edge icons TODO
@mixin iconReplace($font, $glyph, $size, $pad) {
  // small: 34.75
  // big:   38.5
  > div {
    &:nth-child(1) {
      position: relative;
      &:before {
        font-family: $font;
        content: unquote("\"\\#{$glyph}\"");
        font-size: $size;
        padding: $pad;
      }
    }
    &:not(:nth-child(1)) {
      display: none;
    }
  }
  > svg {
    display: none;
  }
}
@mixin rosetta($glyph, $size, $pad) {
  @include iconReplace(Rosetta, $glyph, $size, $pad);
}
@mixin edge($glyph, $size, $pad) {
  @include iconReplace(Edge, $glyph, $size, $pad);
}

// replace likes with favorites
.gt2-opt-favorite-likes {
  [data-testid=tweet] [data-testid$=like] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f147', 19px, 7px 8.82px 7.75px); }
  [data-testid=tweet] + div,
  [aria-modal] > div > div:nth-child(1) {
     [data-testid$=like] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f147', 25px, 8.5px 8px 10px); }
  }
  [data-testid$=like]:hover > div:nth-child(1) > div:nth-child(1) > div {
    background-color: rgba(var(--color-raw-yellow), 0.1) !important;
  }
  [data-testid=like]:hover > div:nth-child(1) {
    color: var(--color-yellow) !important;
  }
  [data-testid=unlike] > div:nth-child(1) {
    color: var(--color-yellow) !important;
  }
}

// use rosetta icons
.gt2-opt-rosetta-icons {
  // like, reply, retweet
  &:not(.gt2-opt-favorite-likes) {
    [data-testid=tweet] [data-testid$=like] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f148', 19px, 7px 9.18px 7.75px); }
    [data-testid=tweet] + div,
    [aria-modal] > div > div:nth-child(1) {
      [data-testid$=like] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f148', 24px, 8.5px 8.9px 10px); }
    }
  }
  [data-testid=tweet] [data-testid=reply] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f151', 16.5px, 7px 9.16px 7.75px); }
  [data-testid=tweet] + div,
  [aria-modal] > div > div:nth-child(1) {
    [data-testid=reply] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f151', 20px, 8.5px 9.3px 10px); }
  }
  [data-testid=tweet] [data-testid$=retweet] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f152', 16.5px, 7px 7.12px 7.75px); }
  [data-testid=tweet] + div,
  [aria-modal] > div > div:nth-child(1) {
    [data-testid$=retweet] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f152', 20px, 8.5px 6.8px 10px); }
  }

  [data-testid$=caret] > div:nth-child(1) > div:nth-child(1) { @include rosetta('f196', 16.5px, 7px 9.7px 7.75px); }
}

// quick block buttons
.gt2-opt-enable-quick-block {
  [data-testid$="-follow"] {
    &[data-gt2-qb-state=offer] {
      border-color: var(--color-red) !important;
      background-color: rgba(var(--color-raw-red), 0.1) !important;
      & > div > span > span {
        color: var(--color-red);
        &:not(.gt2-qb-block) {
          display: none;
        }
      }
    }
    &[data-gt2-qb-state=blocked] {
      border-color: var(--color-red) !important;
      background-color: var(--color-red) !important;
      & > div > span > span {
        color: white;
      }
      &:hover {
        border-color: var(--color-red-dark) !important;
        background-color: var(--color-red-dark) !important;
        & > div > span > span:not(.gt2-qb-unblock) {
          display: none;
        }
      }
      &:not(:hover) > div > span > span:not(.gt2-qb-blocked) {
        display: none;
      }
    }
  }
  [data-testid$="-unfollow"] {
    [class^=gt2-qb] {
      display: none;
    }
  }

  [data-testid=confirmationSheetConfirm] {
    background-color: var(--color-user) !important;
    & > * {
      color: var(--color-text-2) !important;
    }
    &:hover {
      filter: brightness(0.9);
    }
  }
}



// ########################
// #      recoloring      #
// ########################

// colorized buttons for image modals
div[aria-labelledby=modal-header] > div > div > div:nth-child(1) > div:nth-child(2) > div > div {
  // comments
  div[data-testid=reply]:hover,
  div[role=button]:not([data-testid]):hover {
    & > div > div > div {
      background-color: rgba(var(--color-raw-blue), 0.1);
    }
    & > div {
      color: var(--color-blue);
    }
  }
  // retweets
  div[data-testid=retweet]:hover,
  div[data-testid=unretweet]:hover {
    & > div > div > div {
      background-color: rgba(var(--color-raw-green), 0.1);
    }
  }
  div[data-testid=retweet]:hover,
  div[data-testid=unretweet] {
    & > div {
      color: var(--color-green);
    }
  }

  // likes
  div[data-testid=like]:hover,
  div[data-testid=unlike]:hover {
    & > div > div > div {
      background-color: rgba(var(--color-raw-red), 0.1);
    }
  }
  div[data-testid=like]:hover,
  div[data-testid=unlike] {
    & > div {
      color: var(--color-red);
    }
  }
}

// color carets with the user color
// make carets look like carets again (instead of 3 dots)
body:not(.gt2-opt-rosetta-icons):not(.gt2-opt-edge-icons) {
  div[data-testid=caret] {
    & > div > div > div {
      transition: all .2s ease-in-out;
      background-color: var(--color-user);
      opacity: 0;
      &:hover {
        opacity: .1;
        & + svg {
          background-color: var(--color-user);
        }
      }
    }
    svg {
      background-color: var(--color-gray-light);
      pointer-events: none;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath d='M20.207 8.147c-.39-.39-1.023-.39-1.414 0L12 14.94 5.207 8.147c-.39-.39-1.023-.39-1.414 0-.39.39-.39 1.023 0 1.414l7.5 7.5c.195.196.45.294.707.294s.512-.098.707-.293l7.5-7.5c.39-.39.39-1.022 0-1.413z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath d='M20.207 8.147c-.39-.39-1.023-.39-1.414 0L12 14.94 5.207 8.147c-.39-.39-1.023-.39-1.414 0-.39.39-.39 1.023 0 1.414l7.5 7.5c.195.196.45.294.707.294s.512-.098.707-.293l7.5-7.5c.39-.39.39-1.022 0-1.413z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
      g {
        display: none;
      }
    }
  }
}


// color several ui elements with the user color
// 2021-03-19 introduced for some users
// 2021-05-12 reverted again
// 2021-08-11 readded with ChirpUpdate
//
// follow/other buttons
div[data-testid=userActions],
div[data-testid=sendDMFromProfile],
div[data-testid=userActions] ~ div:not([class]) > div:not([data-gt2-bell-full-color]),
div[data-testid$=-cancel],
div[data-testid$=-follow],
a[href="/settings/profile"],
div[id^=topic-follow-button]:not(.r-1ucxkr8),
div[data-testid=listCell] div[role=button],
body[data-gt2-path*="/lists/"] [data-testid=primaryColumn] section > h1 + div > div > div:nth-child(1) a ~ div div[role=button]:not(.r-14lw9ot):not(.r-1ucxkr8) {
  border-color: var(--color-user) !important;
  background-color: transparent !important;
  span {
    line-height: unset !important;
  }
  & > *,
  // all but notifications bell turned on
  svg g > *:not([d^="M23.61.15c-.375"]) {
    color: var(--color-user) !important;
  }
  &:hover {
    background-color: rgba(var(--color-raw-user), .1) !important;
  }
}

// unfollow button
div[data-testid$=-unfollow],
body[data-gt2-path*="/lists/"] [data-testid=primaryColumn] section > h1 + div > div > div:nth-child(1) a ~ div div[role=button].r-14lw9ot {
  transition-property: border-color, background-color, box-shadow;
  span {
    line-height: unset !important;
  }
  &:not(:hover),
  &:hover[data-gt2-just-clicked-follow] {
    border-color: var(--color-user) !important;
    background-color: var(--color-user) !important;
    & > * {
      color: var(--color-text-2) !important;
    }
  }
  &:hover:not([data-gt2-just-clicked-follow]) {
    border-color: var(--color-red-dark) !important;
    background-color: var(--color-red-dark) !important;
    & > * {
      color: var(--color-text-2) !important;
    }
  }
}

// notification bell
[data-gt2-bell-full-color] {
  border-color: var(--color-user) !important;
  background-color: var(--color-user) !important;
  &:hover {
    background-color: rgba(var(--color-raw-user), .1) !important;
  }
}


// ChirpUpdate: icon recolors
// spark icon
div[data-testid=primaryColumn] > div > div:nth-child(1) > div:nth-child(1) > div > div > div > div > div:nth-child(2) div[aria-haspopup],
// various cogs
body:not([data-gt2-path^="settings/"]) a[href*="/settings/trends"],
body:not([data-gt2-path^="settings/"]) a[href*="/settings/explore"],
body:not([data-gt2-path^="settings/"]) a[href*="/settings/notifications"],
// messages
a[href*="/messages/settings"],
a[href*="/messages/compose"],
a[href^="/messages/"][href*="/info"],
body:not([data-gt2-path^="settings/"]) a[href*="/settings/direct_messages"],
// generic back button
[data-testid="app-bar-back"],
// generic close button
[data-testid="app-bar-close"],
// /search dot button
[data-testid="searchBoxOverflowButton"] {
  svg {
    color: var(--color-user) !important;
  }
  &:hover {
    background-color: rgba(var(--color-raw-user), 0.1) !important;
  }
}



// ########################
// #    GT2 functional    #
// ########################

// hide search when added to navbar
.gt2-search-added {
  div[data-testid=sidebarColumn] > div > div:nth-child(2) > div > div > div > div:nth-child(1) {
    display: none;
  }
}

// acc switcher dropdown
.gt2-acc-switcher-active {
  #layers > div:nth-child(2) > div > div > div:nth-child(2) {
    bottom: unset !important;
    right: unset !important;

    & > div > div:nth-child(2) > div > div > div {
      & > svg {
        position: absolute;
        fill: var(--color-elem);
        filter: drop-shadow(var(--color-shadow) 0.25px -2px 1px);
        transform: unset !important;
        bottom: unset !important;
        top: -11px !important;
        right: 5px !important;
        left: unset !important;
      }
      & > div > div {
        padding: 0;
      }
    }
  }
}

// stuff to do on modal
html[style*="overflow: hidden"],
html[style*="overflow-y: hidden"] {
  .gt2-nav-center {
    margin-right: calc(var(--scrollbar-width) / 2);
  }
  .gt2-nav-right,
  .gt2-legacy-profile-nav-right {
    padding-right: var(--scrollbar-width);
  }
  .gt2-legacy-profile-banner img {
    padding-right: var(--scrollbar-width);
  }
}
html[style*=margin-right] {
  margin-right: unset !important;
  main {
    margin-right: var(--scrollbar-width);
  }
}

.gt2-search-overflow-hider {
  position: fixed;
  width: calc(600px + var(--scrollbar-width));
  height: 9px;
  top: 47px;
  background-color: var(--color-bg);
  z-index: 1;
  display: none;
}

// /search overflow, let search box stay on top
body[data-gt2-path="search"],
body[data-gt2-path="explore"] {
  .gt2-search-overflow-hider {
    display: block;
  }
  div[data-testid=primaryColumn] {
    border-top-width: 0 !important;
    & > div > div:nth-child(1) {
      position: sticky;
      top: 56px;
      @include separatorTop;
      transition: top .2s ease-in-out;
      background-color: var(--color-elem);
    }
  }
}
body[data-gt2-path="search"].gt2-scrolled-down div[data-testid=primaryColumn] > div > div:nth-child(1) {
  top: calc(56px - 107px);
}
body[data-gt2-path="explore"].gt2-scrolled-down div[data-testid=primaryColumn] > div > div:nth-child(1) {
  top: calc(56px - 54px);
}

// make line under selected tab full width
nav [role=tablist] [role=tab] {
  & > div {
    font-weight: 700;
  }
  &[aria-selected=true] {
    span {
      color: var(--color-user);
    }
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      background-color: var(--color-user);
      height: 4px;
      width: 100%;
    }
  }
}

// embed card links
[data-testid="card.layoutSmall.media"] + a {
  display: flex;
  justify-content: center;
  width: 100%;
  &,
  &:link,
  &:visited {
    color: var(--color-user);
    text-decoration-line: none;
  }
}



// ########################
// #    GT2 components    #
// ########################

// custom icons
.gt2-svg {
  fill: var(--color-gray-light);
}

// element is hidden
.gt2-hidden {
  display: none !important;
}

// emoji styling
.gt2-emoji {
  height: 1.2em;
  width: 1.2em;
  margin: 0 0.075em -4px;
}

// link stuff
.gt2-dashboard-profile a,
a.gt2-trend {
  text-decoration: none;
  &:visited {
    color: unset;
  }
  &:link {
    color: unset;
  }
}

// trends
.gt2-trends-handled,
.gt2-trends section {
  & > div > div {
    & > div {
      // smaller padding next to the trends cog
      &:nth-child(1) {
        padding-right: 5px;
      }

      &[role=button] {
        border-radius: unset;
      }
    }

    // ChirpUpdate: readd vertical dividers
    & > div:nth-child(n+3) {
      @include separatorTop;
    }
  }
}

// navbar dropdown
#{$navbarDropdown} {
  top: 54px;

  & > div > div > div {
    display: flex;
    // existing elements
    & > div {
      min-width: unset;
      // topics / twitter circle
      > div > a > div {
        padding: incr(14px);
        svg {
          margin-right: 10px;
          height: 1.25em;
        }
        svg ~ * {
          font-size: incr(15px);
          font-weight: 400;
          line-height: normal;
        }
      }

      [aria-expanded] {
        display: none;
      }

      section a {
        padding: incr(14px);
        svg {
          margin-right: 10px;
          height: 1.25em;
          width: 1.75em;
        }
        > :nth-child(2) {
          font-size: incr(15px);
          font-weight: 400;
          line-height: normal;
        }
      }
    }

    // inserted elements
    & > a {
      padding: 0;
      & > div {
        padding: incr(14px);
        & > div:nth-child(2) {
          display: none;
        }
      }

      &.gt2-toggle-logout {
        padding: incr(14px);
        color: var(--color-text);
        text-decoration-line: none;
        &:link,
        &:visited {
          color: var(--color-text);
        }
      }

      span {
        font-size: incr(15px);
        font-weight: 400;
        margin-left: 0;
        color: var(--color-text);
      }
      svg {
        // color: var(--color-gray-light);
        margin-right: 10px;
        height: 1.25em;
      }
    }

    // color changes on hover
    // & > div > a:hover,
    & > a:hover {
      background-color: rgb(30, 39, 50);
      // svg,
      // span {
      //   color: white;
      // }
    }
  }
}

.gt2-nav-center a svg {
  width: 24px;
  height: 24px;
}

#placeholder svg {
  width: 48px;
  height: 48px;
}

// navbar
.gt2-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  height: 46px;
  position: fixed;
  width: 100%;
  background-color: var(--color-navbar);
  z-index: 1;
  display: flex;

  .gt2-nav-left {

    & > a {
      padding: 0;
      width: fit-content;
      width: -moz-fit-content;
      width: -webkit-fit-content;
      display: inline-flex;
      height: 100%;
      transition: all .15s ease-in-out;

      & > div {
        background-color: unset !important;
        margin-top: calc(var(--font-increment) * -1.25);
        padding: 10px 15px;

        & > div:nth-child(1) > div {
          background-color: var(--color-user);
          border-color: var(--color-elem);
          color: var(--color-text-2);
          font-size: calc(11px + var(--font-increment) * 0.75);
        }
        & > div:not(:first-child):not(.gt2-nav-header) {
          display: none;
        }
        .gt2-nav-header {
          color: var(--color-gray);
          font-size: incr(13px);
          margin-left: incr(3px);
          margin-right: 3px;
          font-weight: bold;
        }
      }
    }

    & > a.active,
    & > a:hover {
      border-bottom: .2em solid var(--color-user);
      .gt2-nav-header {
        color: var(--color-user);
      }
    }

    & > a svg {
      color: var(--color-gray-light);
      width: incr(23px);
    }

    & > a.active > div > div:nth-child(2),
    & > a.active svg,
    & > a:hover > div > div:nth-child(2),
    & > a:hover svg {
      color: var(--color-user);
    }
  }

  // twitter logo
  .gt2-nav-center {
    position: absolute;
    right: calc(50% - 12px);
    width: incr(24px);
    margin-top: calc(12px - var(--font-increment));
  }

  // nav right
  .gt2-nav-right {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0px;
    height: 100%;

    .gt2-search > div {
      height: auto;
      width: 300px;
      right: 10px;
      background: unset;
      position: relative;
      margin-bottom: 0;
      border: 1px solid var(--color-gray-dark);
      border-radius: 21px;
      transition: all .2s ease-in-out;
      & input {
        font-size: 14px;
        padding: 8px;
        height: 32px;
        color: var(--color-text);
      }
      &:focus-within {
        border: 2px solid var(--color-user);
      }

      form > div:nth-child(1) > div {
        border: none;
        background-color: var(--color-elem);
      }
    }

    .gt2-toggle-navbar-dropdown {
      margin-left: 5px;
      margin-right: 15px;
      height: 34px;
      width: 34px;

      img {
        border-radius: 9999px;
        height: 100%;
        width: 100%;
        @include grayscaleHover;
      }

      &:hover {
        cursor: pointer;
      }
    }

    .gt2-compose {
      display: inline-flex;
      align-items: center;
      font-size: var(--global-font-size);
      font-weight: 700;
      min-height: 34px;
      background-color: var(--color-user);
      color: var(--color-text-2);
      padding: 0 16px;
      border-radius: 9999px;

      &:hover {
        cursor: pointer;
      }
    }
  }
}

// left sidebar
.gt2-left-sidebar {
  margin-top: -10px;
  padding-top: 10px;
  width: 350px;
  overflow-x: hidden;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  & > div {
    margin-bottom: 11px;
    position: relative;
  }

  &:empty {
    display: none;
  }

  // moved trends
  .gt2-trends,
  .gt2-profile-media {
    border: solid 1px var(--color-gray-dark);
    border-radius: 0;
    background-color: var(--color-elem);
  }
}

// dashboard profile
.gt2-dashboard-profile {
  z-index: 1;
  right: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-dark);
  background-color: var(--color-elem);
  box-sizing: border-box;

  a:not([href]) {
    cursor: default;
  }

  .gt2-banner {
    background-size: 100%;
    height: 116px;
    background-position: 0 50%;
    background-color: var(--color-gray);
    width: 100%;
  }
  & > div {

    .gt2-avatar {
      display: flex;
      width: 82px;
      height: 82px;
      margin: -30px 0 0 8px;
      background-color: var(--color-elem);
      border-radius: 9999px;
      align-items: center;
      justify-content: center;

      img {
        border-radius: inherit;
        width: 90%;
        height: 90%;
        @include grayscaleHover;
      }
    }

    .gt2-user {
      color: var(--color-text);
      position: absolute;
      top: calc(125px - var(--font-increment) * 2);
      left: 100px;
      width: 185px;
      height: fit-content;
      height: -moz-fit-content;
      height: -webkit-fit-content;
      display: flex;
      flex-direction: column;

      .gt2-name {
        width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: incr(18px);
        font-weight: 700;
        &:hover {
          text-decoration: underline;
        }
      }
      .gt2-screenname {
        font-size: incr(14px);
        color: var(--color-gray-light);
        &:hover span {
          text-decoration: underline;
        }
      }
    }

    .gt2-toggle-acc-switcher-dropdown,
    .gt2-toggle-lo-nightmode {
      right: 14px;
      bottom: calc(89px + (var(--font-increment) + 2px) / 2);
      @include hoverableSvg;

      div {
        width: 34.75px;
        height: 34.75px;
      }
      svg {
        fill: var(--color-gray-light);
        width: 18.75px;
        height: 18.75px;
      }
    }

    .gt2-stats {
      padding: 16px;
      margin-top: calc(var(--font-increment) * -2);

      ul {
        display: table;
        margin: 0;
        padding: 0;
        width: 100%;

        li {
          display: table-cell;
          list-style: none;
          width: 1%;
          a {
            display: flex;
            flex-direction: column;

            span:nth-child(1) {
              font-size: incr(13px);
              font-weight: bold;
              transition: color .15s ease-in-out;
              color: var(--color-gray);
            }
            span:nth-child(2) {
              font-size: incr(19px);
              font-weight: bold;
              line-height: 1;
              padding-top: 3px;
              color: var(--color-user);
            }
          }

          a:hover span:nth-child(1) {
            color: var(--color-user);
          }
        }
      }
    }
  }
}
div[data-testid=sidebarColumn] .gt2-dashboard-profile {
  position: relative;
  margin: 0;
  width: 100%;
}

// gt2 sidebar notice
.gt2-sidebar-notice {
  background-color: var(--color-elem);
  color: var(--color-text);
  border: 1px solid var(--color-gray-dark);

  @include standardLink;

  .gt2-sidebar-notice-header {
    @include separatorBottom;

    font-size: incr(19px);
    font-weight: 800;
    position: relative;
    .gt2-sidebar-notice-close {
      right: 10px;
      top: 10px;
      @include hoverableSvg;
    }
  }
  .gt2-sidebar-notice-content {
    text-align: center;
  }
  & > div {
    padding: 10px 15px;
  }

  &.gt2-update-notice {
    .gt2-sidebar-notice-content svg {
      fill: white;
      border-radius: 9999px;
      border: 3.5px solid green;
      background-color: green;
      height: 12px;
      margin-right: 5px;
      vertical-align: bottom;
    }
  }
}

// translate tweet
.gt2-translate-tweet,
.gt2-translated-tweet-info {
  width: max-content;
  margin-top: 5px;
  color: var(--color-user);
  font-size: incr(13px);

  &:hover {
    text-decoration-line: underline;
    cursor: pointer;
  }

  svg {
    height: 1.25em;
    fill: var(--color-text);
    vertical-align: middle;
    margin-left: 1px;
  }
}
.gt2-translated-tweet {
  color: var(--color-text);
  font-size: incr(15px);
  white-space: pre-line;

  @include standardLink;
}

.gt2-tweet-source {
  color: var(--color-user);
  @include standardLink;
  &::before {
    color: var(--color-gray-light);
    content: '\00B7';
    padding: 0 5px;
  }
}

#layers [data-testid=Dropdown] {
  [role=menuitem][href$="/topics"] {
    span,
    ~ * span {
      font-weight: normal;
    }
  }
}
