/* ==========================================================================
   Shell & Layout Estrutural (Sidebar + Main + Workspace + InfoPane)
   ========================================================================== */

.shell {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: var(--ground);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--ground);
  position: relative;
}

.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 1.5rem 4rem;
  position: relative;
  background: var(--surface);
  border-top-left-radius: var(--r-lg);
  border: 1px solid var(--line);
  border-bottom: none;
  border-right: none;
  margin-right: 0;
  transition: margin-right 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-infopane="open"] .content {
  border-top-right-radius: 0;
}
