.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.logs-title {
  color: var(--app-text);
}

.logs-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.logs-filter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logs-filter-item span {
  font-size: 0.78rem;
  color: var(--app-muted);
}

.logs-filter-item-search {
  grid-column: span 1;
}

.logs-table-wrap {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  overflow: auto;
  max-height: none;
  min-height: 300px;
  flex: 1 1 auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.logs-table th,
.logs-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.8rem;
}

.logs-table thead th {
  position: sticky;
  top: 0;
  background: #15243f;
  color: #d9e8ff;
  z-index: 1;
}

.logs-details {
  color: #d6e4f8;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

.logs-empty {
  text-align: center;
  color: var(--app-muted);
  padding: 14px;
}

.logs-surface {
  min-height: 0;
  flex: 1 1 auto;
}

.logs-live-root,
#logs-container {
  min-height: calc(100vh - 180px);
}

.logs-live-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.logs-live-card {
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.logs-live-pre {
  min-height: 280px;
  max-height: 52vh;
  flex: 1 1 auto;
}

@media (max-width: 1200px) {
  .logs-filter-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 980px) {
  .logs-filter-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .logs-filter-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
