.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.content {
  min-width: 0;
  padding: 24px clamp(20px, 5vw, 72px) 64px;
}

.mobile-only,
.mobile-scrim {
  display: none;
}

.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(760px, 100vw);
  height: 100vh;
  transform: translateX(100%);
  transition: transform 180ms ease;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.right-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 860px) {
  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .mobile-scrim {
    display: block;
  }
}

