/* tazai 对话页：移动优先，浅色底、中性气泡，绿色只用于主操作 */
:root {
  --surface: #F7F7F8;
  --surface-muted: #EFEFF2;
  --text: #171717;
  --text-muted: #52525B;
  --border: rgba(23, 23, 23, 0.12);
  --brand: #0FDC78;
  --brand-soft: #E5FFF2;
  --brand-on: #004D26;
  --radius: 8px;
  --radius-card: 12px;
  --radius-full: 999px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--surface);
  color: var(--text);
  font: 400 14px/20px "SF Pro Text", "PingFang SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.pet-chevron { color: var(--text-muted); font-size: 12px; }
.bar-hint { color: var(--text-muted); font-size: 12px; line-height: 18px; }

.thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.msg {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: var(--radius-card);
}

.msg.ai {
  align-self: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.msg.me {
  align-self: flex-end;
  background: var(--brand-soft);
  color: var(--brand-on);
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.composer input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface-muted);
}

.composer input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.icon-btn, .send {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: 500 12px/18px inherit;
  cursor: pointer;
}

.send {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-on);
}
