body.theme-sidebar {
  background: #eef2f7;
}

.sidebar-layout-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar-column {
  padding: 1rem;
}

.sidebar-shell {
  position: sticky;
  top: 1rem;
  min-height: calc(100vh - 2rem);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #fff;
}

.sidebar-shell .brand {
  color: #fff;
}

.sidebar-shell p {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav {
  margin-top: var(--space-xl);
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-nav a {
  color: rgba(255, 255, 255, 0.74);
}

.sidebar-nav a.is-active,
.sidebar-nav a:hover {
  color: #fff;
}

.sidebar-main {
  padding: 0 1rem 2rem 0;
}

.cases-stack {
  display: grid;
  gap: var(--space-xl);
}

.case-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.case-panel img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (max-width: 1080px) {
  .sidebar-layout-shell,
  .case-panel {
    grid-template-columns: 1fr;
  }

  .sidebar-main {
    padding: 0 1rem 2rem 1rem;
  }

  .sidebar-shell {
    min-height: auto;
    position: static;
  }
}

@media (max-width: 640px) {
  .sidebar-column,
  .sidebar-main {
    padding: 0.625rem;
  }

  .sidebar-shell {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }

  .case-panel {
    padding: var(--space-md);
  }

  .case-panel img {
    min-height: 240px;
  }
}
