@media (min-width: 769px) {
  /* 1. Drawer Header */
  .drawer-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
  }
  body.dark-theme .drawer-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.6);
  }
  .drawer-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .drawer-header-icon {
    font-size: 1.15rem;
    line-height: 1;
  }
  .drawer-header-title {
    font-family: var(--font-firago);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
  }
  body.dark-theme .drawer-header-title {
    color: #f8fafc;
  }
  .drawer-header-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .drawer-header-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }
  body.dark-theme .drawer-header-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
  }
  body.dark-theme .drawer-header-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }

}

@media (min-width: 769px) {
/* Hover label for icon-only rail, positioned outside the scrolling rail. */
#rail-collapsed-tooltip {
  position: fixed;
  z-index: 20050;
  display: none;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #858b91;
  color: #fff;
  box-sizing: border-box;
  font: 500 13px/20px var(--font-firago);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(25, 38, 48, .16);
}
#rail-collapsed-tooltip.visible { display: block; }
#rail-collapsed-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #858b91;
}
@media (max-width: 768px) { #rail-collapsed-tooltip { display: none !important; } }

}
