/* ============================================================
   问贤 · 智能体对话工作室 — style.css
   纯 CSS，无外部依赖。浅色为宣纸暖调，深色为墨色。
   ============================================================ */

:root {
  --bg: #f4f1ea;
  --panel: #ffffff;
  --panel-2: #faf8f2;
  --border: #e6e0d3;
  --border-strong: #d6cdba;
  --text: #2a2620;
  --muted: #8b8478;
  --accent: #b94430;
  --accent-hover: #a23a28;
  --accent-weak: #f6e9e5;
  --user-bubble: #b94430;
  --user-text: #fff8f5;
  --danger: #c0392b;
  --ok: #2e7d51;
  --warn-bg: #fdf3df;
  --warn-border: #eed9ac;
  --warn-text: #8f5e08;
  --code-bg: #2b2721;
  --code-text: #f3eee4;
  --shadow: 0 1px 2px rgba(42, 38, 32, .05), 0 8px 24px rgba(42, 38, 32, .07);
  --shadow-lg: 0 24px 64px rgba(20, 16, 10, .28);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Songti SC", "Noto Serif SC", STSong, SimSun, serif;
}

[data-theme="dark"] {
  --bg: #141519;
  --panel: #1d1f25;
  --panel-2: #22242c;
  --border: #2d3038;
  --border-strong: #3c404b;
  --text: #e9e6df;
  --muted: #98958c;
  --accent: #cf6a52;
  --accent-hover: #e07e66;
  --accent-weak: #35261f;
  --user-bubble: #8c4634;
  --user-text: #fff3ee;
  --danger: #e06552;
  --ok: #58b98b;
  --warn-bg: #33291a;
  --warn-border: #544423;
  --warn-text: #d9a94e;
  --code-bg: #101115;
  --code-text: #e6e1d6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
#app { display: flex; height: 100dvh; }

#main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- 侧栏 ---------- */
#sidebar {
  width: 292px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border-right: 1px solid var(--border);
  z-index: 40;
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #4a1c12));
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), var(--shadow);
  user-select: none;
}

.logo-text h1 { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-top: 1px; }

.side-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 8px;
}
.conv-head { border-top: 1px dashed var(--border); margin-top: 14px; padding-top: 16px; }

.section-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  padding: 4px 9px;
  border-radius: 8px;
  transition: background .15s;
}
.mini-btn:hover { background: var(--accent-weak); }

.link-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  transition: color .15s, border-color .15s;
}
.link-btn:hover { color: var(--accent); border-color: var(--accent); }

.persona-list, .conv-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.persona-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.persona-item:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.persona-item.active {
  background: var(--panel);
  box-shadow: var(--shadow);
}
.persona-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.persona-item .p-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.persona-item .p-tag {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  user-select: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
}
.avatar.lg { width: 76px; height: 76px; font-size: 38px; border-radius: 20px; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.conv-item:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.conv-item.active { background: var(--panel); box-shadow: var(--shadow); }
.conv-item .c-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-item .c-time { font-size: 11px; color: var(--muted); flex: none; }
.conv-item .c-del {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s, color .15s, background .15s;
}
.conv-item:hover .c-del, .conv-item .c-del:focus-visible { opacity: 1; }
.conv-item .c-del:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.conv-empty { font-size: 12.5px; color: var(--muted); padding: 10px 12px; }

.side-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.privacy-note { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- 顶栏 ---------- */
#topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}
#menuBtn { display: none; }

.persona-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.persona-meta { min-width: 0; }
.conv-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
}
.conv-title svg { color: var(--muted); opacity: 0; transition: opacity .15s; flex: none; }
.conv-title:hover svg { opacity: 1; }
.persona-tagline {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-warn {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: .04em;
}

.topbar-actions { display: flex; gap: 6px; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
  user-select: none;
}
.btn:hover { border-color: var(--border-strong); background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); border-color: var(--border); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.w-full { width: 100%; }

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  transition: background .15s, color .15s;
  flex: none;
}
.icon-btn:hover { background: color-mix(in srgb, var(--panel) 65%, transparent); color: var(--text); }

/* ---------- 聊天区 ---------- */
#chatScroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

.chat-col {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msg { display: flex; gap: 12px; align-items: flex-start; animation: msg-in .22s ease both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg.user { flex-direction: row-reverse; }

.msg .bubble {
  max-width: min(78%, 620px);
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.75;
  font-size: 14.5px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.msg.user .bubble {
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 6px;
  box-shadow: var(--shadow);
}
.msg.assistant .bubble {
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}
.msg.error .bubble {
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
  border-radius: 6px 16px 16px 16px;
}

.msg-time {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 5px;
  padding: 0 4px;
}
.msg.user .msg-time { text-align: right; }

.bubble-meta { margin-top: 10px; display: flex; }
.bubble-meta .btn { padding: 4px 10px; font-size: 12px; border-radius: 8px; background: transparent; }

.stream-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -2px;
  animation: cursor-blink .9s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.typing-dots { display: inline-flex; gap: 5px; padding: 4px 0; }
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-jump 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-jump {
  0%, 60%, 100% { transform: none; opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Markdown 元素（气泡内） ---------- */
.md > :first-child { margin-top: 0 !important; }
.md > :last-child { margin-bottom: 0 !important; }
.md p { margin: .45em 0; }
.md h3, .md h4, .md h5 { margin: .8em 0 .35em; line-height: 1.4; }
.md h3 { font-size: 1.15em; } .md h4 { font-size: 1.05em; } .md h5 { font-size: 1em; }
.md ul, .md ol { margin: .45em 0; padding-left: 1.5em; }
.md li { margin: .18em 0; }
.md blockquote {
  margin: .5em 0;
  padding: .1em .9em;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--muted);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 0 8px 8px 0;
}
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.md hr { border: none; border-top: 1px dashed var(--border-strong); margin: .8em 0; }
.md code {
  font-family: var(--mono);
  font-size: .88em;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  padding: 2px 6px;
  border-radius: 6px;
}
.md pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
  margin: .55em 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.md pre code { background: none; padding: 0; font-size: inherit; }

/* ---------- 空状态 ---------- */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 7vh 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.empty-state .es-name { font-size: 22px; font-weight: 700; margin-top: 14px; font-family: var(--serif); letter-spacing: .04em; }
.empty-state .es-tagline { color: var(--muted); font-size: 13.5px; }
.empty-state .es-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 999px;
  padding: 5px 14px;
}
.empty-state .es-chips { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; width: 100%; max-width: 420px; }
.chip {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  font-size: 13.5px;
  text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
  box-shadow: var(--shadow);
}
.chip:hover { border-color: var(--accent); background: var(--accent-weak); }
.chip:active { transform: scale(.985); }

/* ---------- 输入区 ---------- */
#composer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 55%, var(--bg));
  padding: 14px 20px 12px;
}
.composer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
#input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  padding: 11px 15px;
  line-height: 1.6;
  max-height: 168px;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
#input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.send-btn { height: 42px; width: 46px; padding: 0; border-radius: 12px; }

.composer-hint { max-width: 800px; margin: 7px auto 0; text-align: center; }
.link-like { font-size: 11.5px; color: var(--muted); cursor: pointer; transition: color .15s; }
.link-like:hover { color: var(--accent); }

/* ---------- 弹窗 ---------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 15, 10, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fade-in .18s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(600px, 100%);
  max-height: min(88dvh, 780px);
  overflow-y: auto;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease both;
}
.modal-sm { width: min(420px, 100%); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 4px;
}
.modal-head h3 { font-size: 16.5px; font-weight: 700; }
.modal-body { padding: 14px 22px 6px; }
.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 20px;
}
.spacer { flex: 1; }

.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field.grow { flex: 1; min-width: 180px; }

.field input[type="text"], .field input[type="password"], .field input[type="url"], .prompt-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-2);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .prompt-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-2);
  font-size: 13.5px;
  line-height: 1.7;
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.hint b { color: color-mix(in srgb, var(--warn-text) 90%, var(--text)); }

.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; }
.key-row .icon-btn { border: 1px solid var(--border); height: 40px; width: 40px; background: var(--panel-2); }
.key-row .ico-eye-off { display: none; }
.key-row.showing .ico-eye { display: none; }
.key-row.showing .ico-eye-off { display: block; }

.temp-val { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }

.switch { position: relative; display: inline-block; width: 44px; height: 25px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background .18s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(19px); }

.test-row { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.test-result { font-size: 12.5px; line-height: 1.5; }
.test-result.ok { color: var(--ok); }
.test-result.fail { color: var(--danger); }

.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid transparent;
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px color-mix(in srgb, var(--text) 25%, transparent); }

.confirm-text { font-size: 14px; line-height: 1.7; color: var(--text); }
.prompt-input { font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(16px);
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
  max-width: min(86vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#scrim { display: none; }

/* ---------- 主题图标切换 ---------- */
[data-theme="light"] .ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: block; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  #menuBtn { display: grid; }
  #sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-105%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 60px rgba(0, 0, 0, .25);
  }
  body.side-open #sidebar { transform: none; }
  #scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(10, 8, 5, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  body.side-open #scrim { opacity: 1; pointer-events: auto; }
  #topbar { padding: 10px 14px; }
  .chat-col { padding: 20px 14px 12px; }
  .msg .bubble { max-width: 86%; }
  #composer { padding: 12px 14px 10px; }
}

@media (max-width: 600px) {
  .btn .btn-label { display: none; }
  .btn.sm { padding: 7px 9px; }
  .topbar-actions { gap: 2px; }
  .badge-warn { font-size: 10px; padding: 3px 7px; }
  .persona-tagline { display: none; }
  .conv-title { font-size: 14px; }
  .logo-text h1 { font-size: 16px; }
  .field-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
