.panel {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-elevated);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height var(--transition-normal);
}

.panelCollapsed {
  height: 36px;
}

.panelExpanded {
  height: 320px;
}

.panelFullView {
  flex: 1;
  height: 100%;
  min-height: 0;
  border-top: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.header:hover {
  background-color: var(--color-bg-hover);
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.headerTitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.collapseIcon {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.collapseIconOpen {
  transform: rotate(180deg);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  overflow-x: auto;
}

.tab {
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-family);
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--color-text-primary);
  background-color: var(--color-bg-hover);
}

.tabActive {
  color: var(--color-accent-700);
  border-bottom-color: var(--color-accent-500);
}

.content {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

.viewContainer {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.gridLayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background-color: var(--color-border);
  flex: 1;
  overflow: hidden;
}

.gridCell {
  background-color: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.emptyState {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.fullViewToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.layoutToggle {
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-family: var(--font-family);
}

.layoutToggle:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-text-primary);
}
