body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f0f0f0;
  padding: 16px;
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 300px;
}

.panel {
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.panel-title {
  padding: 8px 12px;
  font-weight: bold;
  background: #eee;
  border-bottom: 1px solid #ccc;
}

.panel-text {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 16px;
}

button {
  padding: 6px 18px;
  border: none;
  cursor: pointer;
}

#btn-start {
  background: #2d6a4f;
  color: #fff;
}

#btn-stop {
  background: #c1121f;
  color: #fff;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 12px;
}

#status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#status-dot.idle {
  background: #bbb;
}

#status-dot.connecting {
  background: #f0a500;
}

#status-dot.connected {
  background: #2d6a4f;
}

#status-dot.error {
  background: #c1121f;
}
