* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #111;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

#topbar h1 {
  font-size: 14px;
  letter-spacing: 2px;
  color: #888;
  margin-right: 20px;
  font-weight: normal;
}

.btn {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn:hover { background: #3a3a3a; }
.btn.active { background: #2a4a3a; border-color: #4a8a5a; color: #7f7; }

#swap-dir {
  color: #666;
  font-size: 13px;
  min-width: 80px;
  text-align: center;
}

#container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #333;
  min-width: 0;
}
.panel:last-child { border-right: none; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.panel-header span {
  flex-shrink: 0;
}

.script-select {
  background: #2a2a2a;
  color: #aaa;
  border: 1px solid #444;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
}
.script-select:hover { border-color: #666; }
.script-select option { background: #1a1a1a; color: #ccc; }

.output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  line-height: 1.6;
  font-size: 13px;
}

.line-user { color: #7ec8e3; }
.line-eliza { color: #c8c8c8; }
.line-system { color: #555; font-style: italic; }
.line-fed { color: #e3a87e; }

.input-row {
  display: flex;
  border-top: 1px solid #333;
  background: #161616;
  flex-shrink: 0;
}

.prompt {
  padding: 10px 6px;
  color: #555;
  font-size: 13px;
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: #7ec8e3;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  padding: 10px 10px 10px 0;
}

.output::-webkit-scrollbar { width: 5px; }
.output::-webkit-scrollbar-track { background: transparent; }
.output::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
