.log-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
  cursor: pointer;
}

.live-dot.is-paused {
  animation-play-state: paused;
  opacity: 0.35;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63,185,80,0.6); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(63,185,80,0); }
}

.live-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.2px;
  cursor: pointer;
}

.live-label.is-paused {
  color: var(--text-muted);
}

.toolbar-sep { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }

.time-range-select {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 28px 5px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text-secondary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236e7681' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
}

.time-range-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.log-op-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.log-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
}

.log-status.ok   { color: var(--green); }
.log-status.err  { color: var(--red); }
.log-status.warn { color: var(--amber); }

.log-entry-expanded {
  padding: 10px 20px 16px calc(20px + 152px + 12px + 58px + 12px);
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: none;
}

.log-entry-expanded.open { display: block; }

.log-detail-block {
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #c9d1d9;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 12px;
}

.log-detail-label:first-child { margin-top: 0; }

.refresh-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
}

.refresh-btn:hover { color: var(--text-secondary); background: var(--bg-muted); }
