/* ── Toolbar ──────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}

.toolbar-logo {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  margin-right: 8px;
  user-select: none;
}

/* Tabs */
.toolbar-tabs {
  display: flex;
  gap: 0;
  height: 100%;
}

.toolbar-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color 0.15s, border-color 0.15s;
}

.toolbar-tab:hover { color: var(--text); }
.toolbar-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.toolbar-tab .icon { font-size: 18px; }

/* Depth controls */
.depth-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.depth-controls.hidden { display: none; }

.depth-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.depth-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  min-width: 16px;
  text-align: center;
}

/* Icon button (shared) */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0;
}

.icon-btn:hover { color: var(--text); background: var(--accent-bg); }
.icon-btn .icon { font-size: 18px; }

/* Toolbar spacer */
.toolbar-spacer { flex: 1; }

/* ── Main area ────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* View container */
.view-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-recessed);
}

.view { display: none; width: 100%; height: 100%; }
.view.active { display: block; }

/* ── Detail panel (push sidebar) ──────────────── */
.detail-panel {
  width: 0;
  overflow: hidden;
  background: var(--surface-elevated);
  border-left: 1px solid var(--border);
  flex-shrink: 0;
  transition: width 0.2s ease;
  display: flex;
  flex-direction: column;
}

.detail-panel.open { width: 300px; }

.detail-panel-inner {
  width: 300px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Bottom bar ───────────────────────────────── */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.bottom-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.bottom-stats strong {
  color: var(--text);
  font-family: 'Roboto Mono', monospace;
}

.bottom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
