.preset-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
.preset-btn:hover { background: #f1f5f9; }
.preset-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

#live-indicator.flex { display: inline-flex; }

.log-row {
  display: grid;
  grid-template-columns: 180px 70px 240px 1fr;
  gap: 8px;
  padding: 4px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  align-items: start;
}
.log-row:hover { background: #f8fafc; }
.log-row .level-badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  min-width: 50px;
}
.level-ERROR { background: #fecaca; color: #991b1b; }
.level-WARN  { background: #fde68a; color: #92400e; }
.level-INFO  { background: #bfdbfe; color: #1e3a8a; }
.level-DEBUG { background: #e5e7eb; color: #374151; }
.level-TRACE { background: #e5e7eb; color: #6b7280; }

.log-row .message {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 4.5em;
  overflow: hidden;
}
.log-row.expanded .message { max-height: none; }
.log-row .group-short {
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-row .ts {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

#banner.banner-error { background: #fee2e2; color: #991b1b; }
#banner.banner-warn  { background: #fef3c7; color: #92400e; }
