* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #111116;
  color: #f5f5f7;
  font-family:
    Inter,
    system-ui,
    sans-serif;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 24px auto;
}

.card {
  background: #1a1a22;
  border: 1px solid #2b2b36;
  border-radius: 18px;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.subtext {
  margin: 0;
  color: #b8b8c4;
}

.status {
  color: #9fd7a7;
  font-size: 14px;
  white-space: nowrap;
}

.messages {
  min-height: 420px;
  max-height: 60vh;
  overflow: auto;
  background: #121219;
  border: 1px solid #272733;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.message {
  background: #1d1d28;
  border: 1px solid #2c2c39;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.message-role {
  font-size: 13px;
  font-weight: 700;
  color: #90a5ff;
  margin-bottom: 6px;
}

.message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.message-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.message-images a {
  color: #8cbcff;
  text-decoration: none;
}

.composer {
  display: grid;
  gap: 12px;
}

.attachments-row {
  display: grid;
  gap: 10px;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment {
  background: #282837;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.chat-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #303042;
  background: #15151d;
  color: #f5f5f7;
  padding: 12px;
  font: inherit;
}

.send-button {
  width: 160px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #6a63ff;
  color: white;
  font: inherit;
  cursor: pointer;
}

.send-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}