.inbox-page {
  color: #fff;
}

.inbox-shell,
.editor-shell {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(78, 166, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(124, 196, 255, 0.1), transparent 22%),
    linear-gradient(145deg, var(--page-bg), var(--page-bg-2));
}

.inbox-shell > .container-fluid,
.editor-shell > .container-fluid {
  height: 100%;
  box-sizing: border-box;
}

.inbox-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.24;
  pointer-events: none;
}

.inbox-glow-left {
  top: -7rem;
  left: -6rem;
  background: rgba(78, 166, 255, 0.24);
}

.inbox-glow-right {
  right: -5rem;
  bottom: -8rem;
  background: rgba(124, 196, 255, 0.14);
}

.inbox-layout {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
}

.inbox-sidebar,
.inbox-content,
.editor-content {
  background: rgba(8, 18, 34, 0.68);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.inbox-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding-block: 1.35rem;
  overflow: hidden;
}

.inbox-sidebar-scroll,
.table-shell-scroll,
.editor-tab-scroll,
.editor-workspace-scroll,
.upload-queue-list {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.inbox-sidebar-scroll {
  overflow: auto;
}

.inbox-sidebar-scroll-inner {
  min-height: 100%;
  padding-top: 0.15rem;
  padding-inline: 1.15rem;
}

.inbox-sidebar-scroll::-webkit-scrollbar,
.table-shell-scroll::-webkit-scrollbar,
.editor-tab-scroll::-webkit-scrollbar,
.editor-workspace-scroll::-webkit-scrollbar,
.upload-queue-list::-webkit-scrollbar,
.results-strip::-webkit-scrollbar,
.pdf-thumbnail-strip::-webkit-scrollbar,
.pdf-render-shell::-webkit-scrollbar {
  width: 0.7rem;
  height: 0.7rem;
}

.inbox-sidebar-scroll::-webkit-scrollbar-track,
.table-shell-scroll::-webkit-scrollbar-track,
.editor-tab-scroll::-webkit-scrollbar-track,
.editor-workspace-scroll::-webkit-scrollbar-track,
.upload-queue-list::-webkit-scrollbar-track,
.results-strip::-webkit-scrollbar-track,
.pdf-thumbnail-strip::-webkit-scrollbar-track,
.pdf-render-shell::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.inbox-sidebar-scroll::-webkit-scrollbar-thumb,
.table-shell-scroll::-webkit-scrollbar-thumb,
.editor-tab-scroll::-webkit-scrollbar-thumb,
.editor-workspace-scroll::-webkit-scrollbar-thumb,
.upload-queue-list::-webkit-scrollbar-thumb,
.results-strip::-webkit-scrollbar-thumb,
.pdf-thumbnail-strip::-webkit-scrollbar-thumb,
.pdf-render-shell::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  border: 0;
  background-clip: padding-box;
}

.inbox-sidebar-scroll::-webkit-scrollbar-thumb:hover,
.table-shell-scroll::-webkit-scrollbar-thumb:hover,
.editor-tab-scroll::-webkit-scrollbar-thumb:hover,
.editor-workspace-scroll::-webkit-scrollbar-thumb:hover,
.upload-queue-list::-webkit-scrollbar-thumb:hover,
.results-strip::-webkit-scrollbar-thumb:hover,
.pdf-thumbnail-strip::-webkit-scrollbar-thumb:hover,
.pdf-render-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.46);
}

.sidebar-nav {
  margin-bottom: 1.25rem;
}

.inbox-page .sidebar-nav,
.editor-page .sidebar-nav {
  margin-top: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 0.95rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 196, 255, 0.16);
}

.sidebar-link span,
.folder-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
}

.editor-page .sidebar-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  white-space: normal;
}

.editor-page .sidebar-link span {
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  text-overflow: clip;
  white-space: normal;
}

.editor-page .sidebar-link span:last-child {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8rem;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0 1.25rem;
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.46);
}

.folder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.1rem;
  color: rgba(255, 255, 255, 0.82);
  min-width: 0;
}

.editor-page .folder-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 0.1rem;
}

.editor-page .folder-row span {
  width: 100%;
  color: rgba(255, 255, 255, 0.82);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.editor-page .folder-row span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.46);
}

.editor-page .folder-row span:last-child {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
  word-break: break-word;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.15rem 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
