/* Log Panel — bottom panel within chat column */
.log-panel {
  display: flex;
  flex-direction: column;
  height: 200px;
  min-height: 100px;
  max-height: 80vh;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  transition: height 0.2s ease, min-height 0.2s ease, opacity 0.2s ease, border-top-width 0.2s ease;
}

.log-panel-resizer {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
  z-index: 10;
}

.log-panel-resizer:hover,
.log-panel-resizer.active {
  background: var(--accent);
  opacity: 0.5;
}

.log-panel.t-hidden {
  height: 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: none;
  pointer-events: none;
}

.log-panel-header {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  height: 32px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}

.log-panel-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-panel-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}

.log-panel-icon-btn:hover {
  background: var(--bg-lighter);
  color: var(--text);
}

.log-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  user-select: text;
}

.log-panel-content::-webkit-scrollbar {
  width: 8px;
}

.log-panel-content::-webkit-scrollbar-track {
  background: var(--bg);
}

.log-panel-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.log-panel-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

#log-btn.active {
  background: var(--accent);
  color: white;
}
