:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-raise: #eceff4;
  --line: #e2e6ec;
  --text: #1a1d21;
  --muted: #737c8c;
  --accent: #4d6bfe;
  --accent-soft: #e9edff;
  --user: #eef2ff;
  --danger: #d93a3a;
  --bubble-user: #eef2ff;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --bg-soft: #161a21;
  --bg-raise: #1d232c;
  --line: #262d38;
  --text: #e8eaee;
  --muted: #8b93a1;
  --accent: #6c85ff;
  --accent-soft: #26325e;
  --user: #22314f;
  --danger: #ff6b6b;
  --bubble-user: #22314f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body { overflow: hidden; }

.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 820px;
  margin: 0 auto;
  padding-top: var(--safe-top);
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 3;
}

.titles { flex: 1; min-width: 0; }

.titles h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub { margin: 1px 0 0; font-size: 11px; color: var(--muted); }

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:active { background: var(--bg-raise); }

/* ---------- 消息区 ---------- */

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

.messages:empty { display: none; }

.msg { display: flex; flex-direction: column; max-width: 100%; }

.msg.user { align-items: flex-end; }
.msg.assistant { align-items: flex-start; }

.bubble {
  border-radius: var(--radius);
  padding: 10px 14px;
  max-width: 92%;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.msg.user .bubble { background: var(--user); border-bottom-right-radius: 6px; }
.msg.assistant .bubble { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }

.msg-meta { font-size: 11px; color: var(--muted); margin: 4px 6px 0; }

.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h3, .bubble h4, .bubble h5, .bubble h6 { margin: 12px 0 6px; font-size: 15px; }
.bubble ul, .bubble ol { margin: 6px 0; padding-left: 20px; }
.bubble li { margin: 2px 0; }
.bubble a { color: var(--accent); text-decoration: none; }
.bubble code {
  background: var(--bg-raise);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.bubble blockquote {
  margin: 8px 0;
  padding: 4px 10px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.bubble hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

.code {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.code-head .copy {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.code pre { margin: 0; padding: 10px; overflow-x: auto; }
.code pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.5; }

/* ---------- 思考 / 搜索 / 文件 ---------- */

.thinking {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.thinking summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.thinking .thinking-body { white-space: pre-wrap; margin-top: 8px; }

.card {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 13px;
}

.card-title { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.card ul { margin: 4px 0 0; padding-left: 16px; }
.card li { margin: 3px 0; }
.card a { color: var(--accent); text-decoration: none; }

.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
}

.file-chip img { width: 100%; max-width: 220px; border-radius: 8px; display: block; }

.attachment-image { margin-top: 8px; }
.attachment-image img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.notice { color: var(--danger); font-size: 12px; margin-top: 6px; }

/* ---------- 输入区 ---------- */

.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 8px 12px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.composer textarea {
  flex: 1;
  resize: none;
  max-height: 40vh;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.composer textarea:focus { border-color: var(--accent); }

.send {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.send:disabled { opacity: 0.45; }
.send.stop { background: var(--danger); }

/* ---------- 空状态 ---------- */

.welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.welcome[hidden] { display: none; }

.welcome-inner { max-width: 420px; text-align: center; }
.welcome .logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4d6bfe, #7c4dff);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.welcome h2 { margin: 0 0 8px; font-size: 19px; }
.welcome p { margin: 0 0 18px; font-size: 14px; }
.welcome-actions { display: flex; flex-direction: column; gap: 10px; }

.primary, .ghost {
  padding: 12px 16px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
}

.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ghost { background: transparent; color: var(--text); }
.primary:disabled { opacity: 0.45; }

.hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 抽屉 ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 8;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  z-index: 9;
  display: flex;
  flex-direction: column;
  padding: calc(10px + var(--safe-top)) 10px calc(10px + var(--safe-bottom));
}

.drawer[hidden] { display: none; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.drawer-head strong { font-size: 14px; }

.new-chat {
  margin: 4px 4px 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.ghost-row { border-style: solid; color: var(--muted); font-size: 13px; }

.conversation-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0 2px; }

.conversation-list li {
  position: relative;
  padding: 10px 34px 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-more {
  position: absolute;
  top: 6px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.row-more:active { background: var(--bg-raise); }

.conversation-list li:active { background: var(--bg-raise); }
.conversation-list li.active { background: var(--accent-soft); }

.conversation-list .row-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-list .row-sub { font-size: 11px; color: var(--muted); display: flex; gap: 8px; }

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 2px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--muted);
}

.link { background: none; border: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }

/* ---------- 面板 ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 0;
}

.sheet[hidden] { display: none; }

.sheet-card {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(18px + var(--safe-bottom));
}

.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field > span { font-size: 13px; color: var(--muted); }

.field input,
.field textarea {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field textarea { resize: vertical; min-height: 76px; }

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions button { flex: 1; }

.dropzone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  margin: 12px 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
}

.dropzone.active { border-color: var(--accent); background: var(--accent-soft); }

.progress { height: 6px; border-radius: 999px; background: var(--bg-raise); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }

.import-result { font-size: 13px; color: var(--muted); margin-top: 12px; }
.import-result strong { color: var(--text); }
.import-result ul { padding-left: 18px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  transform: translateX(-50%);
  max-width: 86vw;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  z-index: 20;
  text-align: center;
}

.toast[hidden] { display: none; }

.typing::after {
  content: "▍";
  animation: blink 1s steps(1) infinite;
  color: var(--muted);
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- 工具栏 ---------- */

.toolbar {
  display: flex;
  gap: 8px;
  padding: 6px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.toolbar::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip.disabled { opacity: 0.5; }
.chip .caret { color: var(--muted); font-size: 10px; }

.attachment-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
  overflow-x: auto;
}

.attachment-bar[hidden] { display: none; }

.attachment-chip {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.attachment-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.attachment-chip button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.card .site { color: var(--muted); font-size: 11px; }

/* ---------- 模型列表 / 设置字段 ---------- */

.model-list { list-style: none; margin: 4px 0 0; padding: 0; }

.model-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.model-list li.active { border-color: var(--accent); background: var(--accent-soft); }
.model-list .model-name { font-size: 14px; font-weight: 600; }
.model-list .model-note { font-size: 12px; color: var(--muted); }

.field select {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field.row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.field.row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

/* ---------- 加号与附件 ---------- */

.plus {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.plus:active { background: var(--bg-raise); }

.attach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 4px;
}

.attach-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.attach-option:active { background: var(--bg-raise); }
.attach-icon { font-size: 24px; line-height: 1; }

.attachment-chip.document {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  height: 64px;
  padding: 8px 26px 8px 10px;
  background: var(--bg-soft);
}

.attachment-icon { font-size: 16px; }
.attachment-name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.attachment-state { font-size: 10px; color: var(--muted); }

/* ---------- 会话操作 ---------- */

.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.action-item {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.action-item:active { background: var(--bg-raise); }
.action-item.danger { color: var(--danger); }

.sheet-divider {
  border-top: 1px solid var(--line);
  margin: 16px 0 4px;
}

.ghost.danger {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.35);
}

.pin-mark { font-size: 11px; }

/* ---------- 搜索 ---------- */

.search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 8px;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.search-icon { font-size: 13px; opacity: 0.7; }

.search-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search-row input::-webkit-search-cancel-button { display: none; }

.search-clear {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 4px;
  cursor: pointer;
}

.search-empty {
  padding: 14px 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.match-snippet { color: var(--muted); font-size: 11px; }

.hit-count {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10.5px;
}

.msg.flash .bubble {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bubble mark {
  background: #f2c94c;
  color: #1a1a1a;
  border-radius: 4px;
  padding: 0 1px;
}

.bubble mark.active {
  background: #ffd166;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-nav {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 14;
  font-size: 12px;
  color: var(--text);
}

.search-nav[hidden] { display: none; }

.search-nav button {
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.search-nav button:active { background: var(--bg-raise); }
.search-nav button:disabled { opacity: 0.35; }
.search-nav span { min-width: 42px; text-align: center; color: var(--muted); }

@media (min-width: 720px) {
  .messages { padding: 20px 24px 8px; }
  .bubble { max-width: 78%; }
}

/* ---------- 分组标题 ---------- */

.group-title {
  padding: 12px 10px 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  list-style: none;
}

/* ---------- 圆形发送按钮 ---------- */

.send {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.send svg { width: 20px; height: 20px; display: block; }
.send.stop svg { width: 14px; height: 14px; }
.send:disabled { opacity: 0.4; }
/* ---------- 线性图标 / 多选 ---------- */

.line-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.multi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px;
  margin: 6px 2px;
  border-radius: 12px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.multi-bar[hidden] { display: none; }

.multi-count { font-size: 12px; color: var(--muted); }

.multi-actions { display: flex; gap: 12px; }

.link.danger { color: var(--danger); }

.conversation-list li.selecting { padding-left: 34px; }

.row-check {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
}

.conversation-list li.selected .row-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.conversation-list li.selected { background: var(--accent-soft); }
/* ---------- 输入区（对齐官方 App） ---------- */

.composer {
  border-top: none;
  padding: 6px 12px calc(10px + var(--safe-bottom));
}

.composer-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  padding: 10px 10px 8px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.composer textarea {
  width: 100%;
  min-height: 24px;
  max-height: 38vh;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-size: 15.5px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.composer-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.composer-chips::-webkit-scrollbar { display: none; }

.composer-chips .chip {
  padding: 5px 10px;
  font-size: 12.5px;
  gap: 5px;
  background: transparent;
}

.chip-icon { width: 14px; height: 14px; flex: 0 0 auto; }

.composer-actions { display: flex; align-items: center; gap: 8px; }

.plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.send {
  width: 36px;
  height: 36px;
}

.send svg { width: 18px; height: 18px; }

/* ---------- 紧凑输入区 + 单按钮切换 ---------- */

.composer { padding: 4px 10px calc(8px + var(--safe-bottom)); }

.composer-box {
  padding: 8px 8px 6px 12px;
  border-radius: 20px;
}

.composer textarea {
  font-size: 15px;
  min-height: 22px;
  max-height: 34vh;
}

.composer-row { margin-top: 4px; gap: 6px; }
.composer-chips { gap: 5px; }
.composer-chips .chip { padding: 4px 9px; font-size: 12px; gap: 4px; }
.chip-icon { width: 13px; height: 13px; }

.composer-actions { gap: 6px; }
.plus { width: 30px; height: 30px; font-size: 18px; }
.send { width: 32px; height: 32px; }
.send svg { width: 16px; height: 16px; }

.send .icon-stop { display: none; }
.send.streaming .icon-send { display: none; }
.send.streaming .icon-stop { display: block; }
.send[hidden] { display: none; }


/* ---------- 首页：大鲸鱼 + 问候 ---------- */

.welcome-inner { text-align: center; }

.welcome-whale {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.welcome h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

/* 输入卡片更接近 App：更大圆角、更松 */

.composer-box {
  border-radius: 26px;
  padding: 12px 12px 10px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.chip { height: 34px; }

.composer-chips .chip { padding: 0 12px; font-size: 13px; }
.chip-icon { width: 15px; height: 15px; }

.plus { width: 34px; height: 34px; font-size: 19px; }
.send { width: 34px; height: 34px; }
