/* Moved out of the stored template "partials/scripts" (style 8)
 * by migration 1029. Byte-identical to the block it replaces; the file
 * name is a hash of that code, so it is cacheable forever and identical
 * copies across styles collapse onto one file. */
  #rbtSidebarToggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    color: #f8fafc;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.32),
      inset 0 1px rgba(255, 255, 255, 0.06);

    font: inherit;
    cursor: pointer;
    opacity: 0.94;

    transition:
      width 180ms ease,
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease,
      opacity 180ms ease;
  }

  #rbtSidebarToggle:hover,
  #rbtSidebarToggle:focus-visible {
    width: 142px;
    color: #ffffff;
    background: #ea580c;
    border-color: #f97316;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    opacity: 1;
    transform: translateY(-2px);
  }

  #rbtSidebarToggle:active {
    transform: translateY(0) scale(0.97);
  }

  #rbtSidebarToggle:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.3);
    outline-offset: 3px;
  }

  #rbtSidebarToggle[hidden] {
    display: none !important;
  }

  #rbtSidebarToggle .rbt-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
  }

  #rbtSidebarToggle .rbt-toggle-text {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    color: inherit;
    opacity: 0;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    pointer-events: none;

    transition:
      max-width 180ms ease,
      margin-left 180ms ease,
      opacity 140ms ease;
  }

  #rbtSidebarToggle:hover .rbt-toggle-text,
  #rbtSidebarToggle:focus-visible .rbt-toggle-text {
    max-width: 92px;
    margin-left: 7px;
    opacity: 1;
  }

  /* Sidebar kapalıyken ana forum alanını genişletir. */
  html.rbt-sidebar-closed .rbt-content-shell.rb-with-sidebar {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.rbt-sidebar-closed
    .rbt-content-shell.rb-with-sidebar
    > .rbt-widget-sidebar.widget-sidebar,
  html.rbt-sidebar-closed .rbt-widget-sidebar.widget-sidebar {
    display: none !important;
  }

  html.rbt-sidebar-closed
    .rbt-content-shell.rb-with-sidebar
    > .rbt-content,
  html.rbt-sidebar-closed .rbt-content {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
  }

  /* Mobil görünümde temanın mevcut sidebar davranışına dokunmaz. */
  @media (max-width: 767px) {
    #rbtSidebarToggle {
      display: none !important;
    }

    html.rbt-sidebar-closed
      .rbt-content-shell.rb-with-sidebar
      > .rbt-widget-sidebar.widget-sidebar,
    html.rbt-sidebar-closed .rbt-widget-sidebar.widget-sidebar {
      display: revert !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #rbtSidebarToggle,
    #rbtSidebarToggle .rbt-toggle-text {
      transition: none;
    }
  }
