.shell {
  --inspector-inline-padding: 18px;
  --inspector-bottom-padding: 22px;

  display: flex;
  position: relative;
  z-index: 6;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  pointer-events: none;
  contain: layout paint style;
}

.open {
  pointer-events: auto;
}

.collapsed {
  border-left-color: transparent;
}

.tabs {
  display: flex;
  flex: 0 0 var(--titlebar-height);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 var(--inspector-inline-padding);
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  height: var(--titlebar-height);
  overflow-x: auto;
  border-bottom: 1px solid transparent;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 30px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.tabs button:hover {
  background: var(--selection);
  color: var(--text-primary);
}

.tabs button.activeTab {
  background: var(--selection-strong);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.tabs span {
  white-space: nowrap;
}

.content {
  display: grid;
  flex: 1 1 auto;
  gap: var(--space-md);
  min-width: 0;
  min-height: 0;
  padding-bottom: var(--inspector-bottom-padding);
  overflow: auto;
}

.fixture {
  height: auto;
  min-height: 280px;
  padding-bottom: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

@media (prefers-reduced-motion: reduce) {
  .tabs button {
    transition: none;
  }
}
