.sh-sticky-user-controls {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .sh-notifications {
    position: relative;
  }
  
  .sh-notifications-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #f0f6fc;
    font-size: 17px;
    cursor: pointer;
  }
  
  .sh-notifications-toggle:hover,
  .sh-notifications-toggle[aria-expanded="true"] {
    background: #18212b;
  }
  
  .sh-notifications-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 12px;
    background: #a31d29;
    color: white;
    font: 700 10px/14px system-ui, sans-serif;
    text-align: center;
  }
  
  .sh-notifications-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10001;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: min(440px, 70vh);
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid #414141;
    border-radius: 6px;
    background: #0e0e0e;
    color: #f0f6fc;
    font: 14px/1.45 system-ui, sans-serif;
    box-shadow: 0 6px 20px #000a;
  }
  
  .sh-sticky-user-controls .sh-notifications-panel {
    right: -36px;
    top: calc(100% + 15px);
  }
  
  .sh-notifications [hidden] {
    display: none !important;
  }
  
  .sh-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #343434;
  }
  
  .sh-notifications-read-all {
    padding: 4px;
    border: 0;
    background: transparent;
    color: #ffabb1;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
  }
  
  .sh-notifications-read-all:disabled {
    opacity: .45;
    cursor: default;
  }
  
  .sh-notifications-status {
    margin: 0;
  }
  
  .sh-notifications-status:not(:empty) {
    padding: 12px;
  }
  
  .sh-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .sh-notifications-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #303030;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  
  .sh-notifications-item[data-unread="true"] {
    box-shadow: inset 3px 0 #d84c57;
    background: #25191b;
  }
  
  a.sh-notifications-item:hover {
    background: #292929;
  }
  
  .sh-notifications-item time {
    display: block;
    margin-top: 3px;
    color: #c4c4c4;
    font-size: 12px;
  }
  
  #blog-comments,
  #blog-comments [id^="sh-comment-"] {
    scroll-margin-top: 85px;
  }
  
  #blog-comments [id^="sh-comment-"]:target {
    outline: 1px solid #d84c57;
    outline-offset: 3px;
  }

  @media (max-width: 768px) {
    /* Let the logo shrink to fit between the hamburger and the icons. */
    #sticky-navbar .logo-container {
      flex: 1 1 0;
      min-width: 0;
      padding-inline: 4px;
    }
  
    #sticky-navbar .sticky-logo {
      width: 100%;
      max-width: 200px;
      margin: 0;
    }
  
    #sticky-navbar .sticky-logo a {
      display: block;
    }
  
    #sticky-navbar .sticky-logo img {
      display: block;
      width: 100% !important;
      height: auto;
    }
  
    /* Give search, notifications, and profile the same tap area. */
    #sticky-navbar > .search-nav-icon,
    #sticky-navbar .sh-notifications-toggle,
    #sticky-navbar .login-nav-icon {
      display: grid;
      place-items: center;
      flex: 0 0 44px;
      width: 44px;
      height: 44px;
      padding: 0;
      box-sizing: border-box;
    }
  
    #sticky-navbar > .search-nav-icon,
    #sticky-navbar .login-nav-icon {
      font-size: 25px;
    }
  
    #sticky-navbar .sh-notifications-toggle {
      font-size: 21px;
    }
  
    #sticky-navbar .sh-sticky-user-controls {
      flex: 0 0 auto;
      gap: 0;
      margin-right: 6px;
    }
  
    #sticky-navbar .sh-notifications-badge {
      top: 3px;
      right: 2px;
    }
  
    /* Open just below the 65px nav without spilling offscreen. */
    #sticky-navbar .sh-notifications-panel {
      position: fixed;
      top: 65px;
      right: 8px;
      width: min(320px, calc(100vw - 16px));
      max-width: none;
    }
  }