body {
  font-family: system-ui, sans-serif;
  max-width: 600px;
  margin: 40px auto;
  background: #f5f5f7;
  color: #222;
}

#app {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

h1 {
  font-size: 20px;
  margin-top: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 4px;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#chatLog {
  margin-top: 20px;
  min-height: 150px;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px;
  background: #fafafa;
}

.msg {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.msg.user {
  background: #dbeafe;
  text-align: right;
}

.msg.assistant {
  background: #e5e7eb;
}

.msg.error {
  background: #fee2e2;
  color: #991b1b;
}

#inputRow {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#inputRow input {
  flex: 1;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

#status {
  font-size: 12px;
  color: #666;
  min-height: 16px;
}
