* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #0f1419;
  color: #e7ecf3;
}
header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #243044;
}
header h1 { margin: 0; font-size: 1.4rem; }
header p { margin: 0.25rem 0 0; opacity: 0.75; font-size: 0.9rem; }
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
}
.panel {
  background: #1a2332;
  border-radius: 8px;
  padding: 1rem;
}
textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  background: #0f1419;
  color: #e7ecf3;
  border: 1px solid #243044;
  border-radius: 6px;
  padding: 0.5rem;
}
button {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: #3d7a6a;
  color: #fff;
  cursor: pointer;
}
button:hover { background: #4a9480; }
#messages {
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.msg { margin-bottom: 0.75rem; padding: 0.5rem 0.65rem; border-radius: 6px; }
.msg.user { background: #243044; }
.msg.assistant { background: #1e2d3d; white-space: pre-wrap; }
#chat-form { display: flex; gap: 0.5rem; }
#user-input { flex: 1; padding: 0.5rem; border-radius: 6px; border: 1px solid #243044; background: #0f1419; color: #e7ecf3; }
.plan {
  grid-column: 1 / -1;
  background: #1a2332;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}
