.mob-menu-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--rule, #dde3ef);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--muted, #4b5563);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.mob-menu-btn:hover { color: var(--text, #111827); border-color: var(--rule-bright, #b8c8dc); }

.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 250;
  cursor: pointer;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem 0.5rem auto;
  margin: 0.5rem 0.75rem 0 auto;
  line-height: 1;
}
.sidebar-close-btn:hover { color: #cbd5e1; }

@media (max-width: 768px) {
  .mob-menu-btn { display: inline-flex; }
  .sidebar-close-btn { display: block; }

  .mob-overlay.open { display: block; }

  body.sidebar-open .sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh;
    z-index: 300;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
  }

  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
