:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1f2329;
  --muted: #5f6f86;
  --line: #e6e8eb;
  --accent: #056de8;
  --accent-soft: #e8f3ff;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 8px 24px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
  transition: color 140ms ease, background-color 140ms ease,
    border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease,
    opacity 140ms ease;
}

button:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
}

button:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(5, 109, 232, 0.65);
  outline-offset: 2px;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9e7f6;
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  background: #f5faff;
  color: var(--accent);
  cursor: pointer;
}

.account-avatar {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.account-button.connected { border-color: #b8d8f5; background: #edf7ff; }
.account-button.connected::after { content: ""; width: 6px; height: 6px; margin-left: 1px; border-radius: 50%; background: #2aa76b; box-shadow: 0 0 0 2px #dff5e9; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.model-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* 历史人物对话的品牌层：用蓝白纸张与印章感区分普通问答产品 */
.history-banner {
  padding: 12px 20px 0;
  background: var(--panel);
}
.history-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 16px;
  border: 1px solid #cfe2f8;
  border-radius: 10px;
  background: linear-gradient(100deg, #edf7ff 0%, #fafdff 64%, #f0f7ff 100%);
}
.history-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #80b6eb;
  border-radius: 8px;
  color: #116cca;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #e5f3ff;
}
.history-banner-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-eyebrow { color: #4a8dd1; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.history-banner-copy strong { color: #173b69; font-family: var(--serif); font-size: 15px; }
.history-banner-copy > span:last-child { color: #5f7898; font-size: 11px; }
.history-route { margin-left: auto; color: #6f8eaf; font-size: 11px; white-space: nowrap; }
.history-route span { color: var(--accent); font-weight: 700; }
.history-route i { margin: 0 5px; color: #8ab6e6; font-style: normal; }
.persona-heading { display: flex; align-items: baseline; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 14px 20px 3px; background: var(--panel); color: #294c76; font-family: var(--serif); font-size: 15px; font-weight: 700; }
.persona-heading small { color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 400; }

.topbar-actions {
  display: flex;
  gap: 8px;
  position: relative;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.focus-button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 1px solid #c7def4; border-radius: 9px; background: #f4f9ff; color: var(--accent); cursor: pointer; font-size: 12px; }
.focus-button:hover, .focus-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.focus-button svg { width: 16px; height: 16px; }

.focus-toolbar { display: flex; align-items: center; gap: 10px; max-width: 1040px; margin: 8px auto 0; padding: 8px 12px; border: 1px solid #c9e0f6; border-radius: 12px; background: #f5faff; }
.focus-toolbar[hidden] { display: none; }
.focus-persona { display: inline-flex; align-items: center; gap: 7px; color: #173b69; font-family: var(--serif); font-size: 15px; font-weight: 700; }
.focus-persona-avatar { width: 28px; height: 28px; border-radius: 50%; background-position: center; background-size: cover; }
.focus-hint { color: #7892ac; font-size: 11px; }
.focus-toolbar-actions { display: flex; gap: 6px; margin-left: auto; }
.focus-toolbar-actions button { padding: 5px 8px; border: 1px solid #c8def3; border-radius: 7px; background: #fff; color: var(--accent); cursor: pointer; font-size: 11px; }

body.focus-mode .history-banner,
body.focus-mode .persona-heading,
body.focus-mode .persona-bar,
body.focus-mode .journey-strip,
body.focus-mode .hero-intro,
body.focus-mode .side-column { display: none; }
body.focus-mode .focus-toolbar { display: flex; }
body.focus-mode .home { grid-template-columns: minmax(0, 1fr); max-width: 1100px; height: calc(100vh - 72px); padding-top: 10px; }
body.focus-mode .content-column { height: 100%; }
body.focus-mode .chat-scroll { order: 1; flex: 1; min-height: 0; padding: 18px 10px 20px; }
body.focus-mode .question-composer { order: 2; flex: 0 0 auto; }
body.focus-mode .status-row { order: 3; }
body.focus-mode .chat-scroll:empty::before { font-size: 20px; }
body.focus-mode .chat-scroll:empty::before { margin: 32px auto 0; }

.icon-button:hover:not(.active) {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.icon-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.debate-picker {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-float);
  transform-origin: top right;
  animation: picker-in 160ms ease-out both;
}

.debate-picker.show {
  display: flex;
}

@keyframes picker-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.debate-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.debate-option:hover {
  background: var(--accent-soft);
  padding-left: 10px;
}

.debate-option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.debate-option span {
  font-size: 13px;
}

.persona-bar {
  display: flex;
  gap: 10px;
  padding: 10px 20px 9px;
  overflow-x: auto;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 96px;
  padding: 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.persona-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.persona-card.debating {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.persona-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.persona-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.persona-card:hover img {
  transform: translateY(-1px) scale(1.04);
}

.persona-card.debating img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.persona-name {
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.persona-title {
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.persona-method {
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 2px;
  background: var(--panel);
  color: #9aaabd;
  font-size: 11px;
}
.journey-step { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.journey-step b { color: #a8bad0; font-size: 10px; }
.journey-step.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.journey-step.active b { color: var(--accent); }
.journey-strip > i { color: #b7c9dc; font-style: normal; }

.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-rows: minmax(0, 1fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.content-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.side-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 28px;
}

.account-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-modal[hidden] { display: none; }
.account-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.account-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 39, 68, .34); backdrop-filter: blur(4px); animation: account-fade-in 160ms ease-out both; }
.account-modal .account-panel { position: relative; z-index: 1; width: min(440px, 100%); margin: 0; padding: 22px; border: 1px solid #c6def5; border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 22px 70px rgba(13,48,86,.25); animation: account-pop-in 180ms ease-out both; }
.account-modal .account-panel { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.account-modal-open { overflow: hidden; }
.account-eyebrow { display: block; margin-bottom: 3px; color: #4d91d0; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.account-panel-head strong { display: block; color: #173b69; font-family: var(--serif); font-size: 21px; }
.account-panel-head > button { flex-shrink: 0; }
.account-actions { margin-top: 14px; }
.account-actions .account-primary { flex: 1; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 7px 16px rgba(5,109,232,.23); }
.account-actions .account-primary:hover { background: #0560cb; transform: translateY(-1px); }
.account-privacy { margin: 16px 0 0; color: #8aa1b8; font-size: 11px; line-height: 1.6; }
@keyframes account-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes account-pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.insight-panel {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: linear-gradient(145deg, #f6fbff, #fff);
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #245d96;
  font-size: 13px;
  font-weight: 700;
}

.insight-title svg { width: 15px; height: 15px; color: #2b91de; }

.insight-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.insight-steps span {
  display: grid;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 8px;
  background: #edf6ff;
  color: #54799f;
  font-size: 10px;
  text-align: center;
}

.insight-steps b { color: var(--accent); font-size: 11px; }
.insight-panel p { margin: 9px 0 0; color: #7890a8; font-size: 11px; line-height: 1.55; }

.account-panel-head,
.account-actions,
.account-data > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-panel button,
.account-data button {
  border: 1px solid #d7e6f5;
  border-radius: 8px;
  padding: 6px 9px;
  background: #f7fbff;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}

.account-summary {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.account-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

#account-data-list {
  grid-column: 1 / -1;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 7px;
  margin-top: 4px;
}

.account-item {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #f7fbff;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-item small { white-space: pre-wrap; line-height: 1.6; }
.account-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 5px; }
.account-item a { color: var(--accent); text-underline-offset: 3px; }
.account-data > button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
#account-data-list > button { justify-self: start; }
#account-data-list > strong { overflow-wrap: anywhere; }

.account-item small,
.account-empty {
  color: var(--muted);
  font-size: 11px;
}

.question-composer {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 13px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-intro {
  margin-bottom: 12px;
  padding: 18px 18px 16px;
  border: 1px solid #cfe2f8;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 70%);
  box-shadow: 0 5px 18px rgba(5, 109, 232, 0.07);
}

.hero-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-kicker-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #37a4e8; box-shadow: 0 0 0 4px #e0f2ff; vertical-align: 1px; }

.hero-intro h2 {
  margin: 6px 0 4px;
  color: #173b69;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
}
.hero-intro h2 em { color: var(--accent); font-style: normal; }
.hero-proof { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 9px; border-radius: 999px; background: #e9f5ff; color: #3474ad; font-size: 11px; }
.hero-proof span { color: #2b91de; }

.hero-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.example-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.example-prompt {
  padding: 7px 10px;
  border: 1px solid #b9d5f4;
  border-radius: 999px;
  background: #fff;
  color: #225b99;
  cursor: pointer;
  font-size: 12px;
}

.example-prompt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.question-composer:focus-within {
  border-color: rgba(5, 109, 232, 0.65);
  box-shadow: 0 0 0 3px rgba(5, 109, 232, 0.08);
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.composer-persona {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.composer-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--line);
  background-position: center;
  background-size: cover;
}

#composer-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.composer-title {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-source {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
}

.composer-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

#question-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 9px 4px;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

#question-input::placeholder {
  color: #b1b7c3;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.send-button,
.stop-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.send-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 7px rgba(5, 109, 232, 0.28);
}

.send-button:hover {
  background: #0560cb;
  box-shadow: 0 5px 14px rgba(5, 109, 232, 0.32);
  transform: translateY(-1px);
}

.send-button:disabled {
  background: #a9cdf5;
  box-shadow: none;
  opacity: 0.78;
  cursor: not-allowed;
}

.stop-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.stop-button.active {
  display: grid;
  animation: stop-in 160ms ease-out both;
}

.stop-button:hover {
  background: var(--accent-soft);
}

@keyframes stop-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hot-section {
  width: 100%;
  margin-top: 0;
}

.hot-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.hot-heading small { margin-left: auto; color: #8aa1ba; font-size: 10px; font-weight: 400; }

.hot-heading svg {
  width: 18px;
  height: 18px;
  color: #f0523d;
}

.hot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 4px 10px 8px;
}

.hot-empty {
  grid-column: 1 / -1;
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hot-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 7px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.hot-item:hover {
  background: #f7f9fc;
  color: var(--accent);
  padding-left: 10px;
}

.hot-item.hot-picked {
  background: var(--accent-soft);
  color: var(--accent);
}

.hot-rank {
  width: 20px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.hot-item.rank-top .hot-rank {
  color: #f0523d;
  font-weight: 700;
}

.hot-title {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: 100%;
  max-width: none;
  min-height: 18px;
  margin-top: 9px;
}

.duo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9fc;
  animation: duo-in 180ms ease-out both;
}

.duo-status:not([hidden]) {
  display: flex;
}

.duo-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.duo-avatars img {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.duo-avatars img + img {
  margin-left: -8px;
}

.duo-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.duo-names {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duo-state {
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duo-end-button {
  flex-shrink: 0;
  margin-left: 2px;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: #eef0f2;
  color: #59616e;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.duo-end-button:hover {
  background: #e3e7ed;
  color: var(--ink);
}

@keyframes duo-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stream-status,
.runtime-status,
.plan-line {
  color: var(--muted);
  font-size: 12px;
}

.runtime-status {
  white-space: nowrap;
}

.chat-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  gap: 18px;
  overflow-y: auto;
  padding: 16px 8px 28px;
  scroll-behavior: smooth;
}

.question-message {
  align-self: stretch;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.question-role {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.question-target {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.answer-message {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 760px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.answer-content {
  min-width: 0;
  flex: 1;
}

.answer-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: card-in 220ms ease-out both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer-message:hover .answer-card {
  border-color: #d4dbe4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.answer-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.answer-avatar-mini {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.answer-identity {
  min-width: 0;
}

.answer-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.answer-role {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.host-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf7f2;
  color: #2d8b6a;
  font-size: 11px;
  font-weight: 700;
}

.answer-card .message-body {
  color: #262b31;
  font-size: 15px;
  line-height: 1.85;
}

.answer-card .message-body.answer-locked {
  max-height: 72px;
  overflow: hidden;
  opacity: 0.08;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, filter 180ms ease, max-height 180ms ease;
}

.stream-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  border-radius: 999px;
  background: var(--accent);
  animation: caret-blink 760ms steps(2, jump-none) infinite;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c4cc;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes caret-blink {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  45% {
    opacity: 0.4;
    transform: scaleY(0.72);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.answer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #f0f2f5;
  color: var(--muted);
  font-size: 12px;
}

.answer-actions span {
  cursor: default;
  user-select: none;
}

.modern-note {
  padding: 9px 11px;
  border-left: 3px solid var(--accent);
  background: #f7f9fc;
  color: #5b6370;
  font-size: 12px;
  line-height: 1.65;
}

.modern-panel {
  margin-top: 9px;
  padding: 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.modern-panel summary {
  display: flex;
  align-items: center;
  margin-top: 9px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.modern-panel summary::-webkit-details-marker {
  display: none;
}

.modern-panel summary::before {
  content: "▸";
  margin-right: 5px;
}

.modern-panel[open] summary::before {
  content: "▾";
}

.modern-summary-text {
  font-weight: 700;
}

.source-panel {
  margin-top: 10px;
  padding: 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.source-panel summary {
  display: flex;
  align-items: center;
  margin-top: 9px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.source-panel summary::-webkit-details-marker {
  display: none;
}

.source-panel summary::before {
  content: "▸";
  margin-right: 5px;
}

.source-panel[open] summary::before {
  content: "▾";
}

.source-summary-text {
  font-weight: 700;
}

.source-list {
  display: flex;
  flex-direction: column;
  margin-top: 9px;
}

.source-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.source-item:last-child {
  border-bottom: 0;
}

.source-type {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.source-zhihu {
  background: var(--accent-soft);
  color: var(--accent);
}

.source-web {
  background: #eef0f2;
  color: #5b6370;
}

.source-main {
  min-width: 0;
}

.source-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-title:hover {
  color: var(--accent);
}

.source-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.source-excerpt {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #59616e;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.evidence-panel,
.stance-panel {
  margin-top: 10px;
  padding: 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.evidence-panel summary,
.stance-panel summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.evidence-panel summary::-webkit-details-marker,
.stance-panel summary::-webkit-details-marker {
  display: none;
}

.evidence-panel summary::before,
.stance-panel summary::before {
  content: "▸";
  margin-right: 1px;
}

.evidence-panel[open] summary::before,
.stance-panel[open] summary::before {
  content: "▾";
}

.evidence-status {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.evidence-status-verified {
  background: #e8f5ee;
  color: #267354;
}

.evidence-status-unverified {
  background: #fff2df;
  color: #9a5b13;
}

.evidence-list,
.stance-list {
  display: flex;
  flex-direction: column;
  margin-top: 9px;
}

.evidence-group + .evidence-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.evidence-group-title {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.evidence-claim {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-claim:last-child {
  border-bottom: 0;
}

.evidence-claim-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.evidence-claim-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.evidence-kind {
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef0f2;
  color: #59616e;
  font-size: 10px;
}

.evidence-kind-sourced {
  background: var(--accent-soft);
  color: var(--accent);
}

.evidence-kind-persona_inference {
  background: #f6edf8;
  color: #7b4d88;
}

.evidence-support {
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
}

.evidence-source-details {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.evidence-source-card {
  border-left: 2px solid var(--line, #d8d8d8);
  padding: 0.35rem 0.65rem;
  background: var(--surface-subtle, rgba(0, 0, 0, 0.025));
}

.evidence-source-card-meta {
  color: var(--muted, #6b7280);
  font-size: 0.75rem;
}

.evidence-source-card-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}

.evidence-source-card-excerpt {
  color: var(--muted, #6b7280);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.2rem 0 0;
}

.citation-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.citation-link:hover {
  text-decoration: underline;
}

.evidence-empty,
.learning-empty {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.stance-row {
  display: grid;
  gap: 5px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.stance-row:last-child {
  border-bottom: 0;
}

.stance-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
}

.stance-action {
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef0f2;
  color: #59616e;
  font-size: 10px;
}

.stance-action-challenge,
.stance-action-concede {
  background: #fff2df;
  color: #9a5b13;
}

.stance-claim {
  margin: 0;
  color: #38404a;
  line-height: 1.6;
}

.stance-meta {
  color: var(--muted);
  font-size: 11px;
}

.stance-summary {
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffaf2;
}

.stance-summary h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.9rem;
}

.stance-summary-group + .stance-summary-group {
  margin-top: 7px;
}

.stance-summary-group strong {
  color: #8a5a18;
  font-size: 0.75rem;
}

.stance-summary-group ul {
  margin: 3px 0 0;
  padding-left: 18px;
}

.stance-summary-group li {
  color: #4a4240;
  font-size: 0.8rem;
  line-height: 1.5;
}

.learning-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.answer-locked {
  position: relative;
  filter: blur(4px);
  user-select: none;
}

.answer-locked::after {
  content: "先完成学前自测，解锁人物回答";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90%;
  padding: 8px 12px;
  border: 1px solid #b9d5f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #225b99;
  filter: blur(0);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.learning-head,
.learning-result,
.learning-report {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-head {
  justify-content: space-between;
}

.learning-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.learning-progress,
.learning-result span,
.learning-report span,
.learning-report p {
  color: var(--muted);
  font-size: 12px;
}

.learning-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.learning-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.learning-question legend {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.learning-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 5px;
  color: #4c5561;
  line-height: 1.5;
  cursor: pointer;
}

.learning-option input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.learning-submit,
.learning-next {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.learning-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.learning-next {
  background: #eef0f2;
  color: var(--ink);
}

.learning-next:hover {
  background: #e3e7ed;
}

.learning-result {
  margin-top: 10px;
}

.learning-result strong {
  color: var(--accent);
  font-size: 18px;
}

.learning-report {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.learning-report p {
  flex-basis: 100%;
  margin: 0;
  line-height: 1.6;
}

.learning-delta-up {
  color: #267354;
}

.learning-delta-down {
  color: #b04b3f;
}

.message {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.75;
  font-size: 14px;
}

.message.user {
  align-self: flex-end;
  border: 0;
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.message.assistant {
  display: flex;
  align-self: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.message-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.message-content {
  min-width: 0;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-meta {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.message.user .message-meta {
  color: rgba(255, 255, 255, 0.82);
}

.host-aside {
  --aside-accent: #2d8b6a;
}

.host-aside .message-content {
  max-width: min(680px, calc(100% - 18px));
  padding: 8px 12px;
  border: 1px solid #d9eee7;
  border-radius: 8px;
  background: #eef8f5;
}

.host-aside .message-meta {
  color: var(--aside-accent);
  font-size: 12px;
}

.host-aside .message-body {
  color: #244a3d;
  font-size: 13px;
  line-height: 1.65;
}

.interrupt-badge {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.app-footer {
  padding: 7px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 640px) {
   .app { height: auto; min-height: 100vh; }
   .history-banner { padding: 8px 12px 0; }
   .history-banner-inner { align-items: flex-start; padding: 10px 11px; }
   .history-seal { width: 32px; height: 32px; font-size: 19px; }
   .history-eyebrow { font-size: 8px; letter-spacing: .08em; }
   .history-banner-copy strong { font-size: 13px; }
   .history-banner-copy > span:last-child { font-size: 10px; line-height: 1.4; }
   .history-route { display: none; }
   .persona-heading { padding: 11px 12px 2px; font-size: 14px; }
   .persona-heading small { font-size: 10px; }
   button {
     -webkit-tap-highlight-color: transparent;
   }
}

/* ── 对话优先布局：让提问、回答和证据成为首屏主路径 ── */
@media (min-width: 861px) {
  .history-banner { padding: 8px 20px 0; }
  .history-banner-inner { max-width: 1160px; padding: 8px 14px; }
  .history-seal { width: 32px; height: 32px; font-size: 19px; }
  .persona-heading { padding-top: 8px; }
  .persona-bar { justify-content: center; padding: 7px 20px; }
  .persona-card { width: 112px; padding: 7px 6px 6px; }
  .persona-card img { width: 38px; height: 38px; }
  .persona-name { margin-top: 5px; }
  .persona-title { display: none; }
  .persona-method { margin-top: 3px; }
  .journey-strip { padding-top: 6px; }
  .home { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; padding-top: 10px; }
  .content-column { display: flex; }
  .hero-intro { order: 0; margin-bottom: 8px; padding: 10px 14px; border-radius: 10px; }
  .hero-intro h2 { margin: 3px 0; font-size: 21px; }
  .hero-intro p { font-size: 12px; }
  .hero-proof { margin-top: 6px; padding: 3px 7px; }
  .example-prompts { margin-top: 7px; }
  .example-prompt { padding: 5px 9px; font-size: 11px; }
  .chat-scroll { order: 1; min-height: 220px; padding: 12px 8px 18px; }
  .question-composer { order: 2; position: sticky; bottom: 8px; z-index: 5; margin-top: 4px; border-color: #b9d7f5; border-radius: 14px; box-shadow: 0 8px 24px rgba(38, 93, 146, .12); }
  .status-row { order: 3; margin-top: 6px; }
  .side-column { padding-top: 2px; }
  .hot-section { padding: 4px 0 8px; border: 1px solid #e1ebf5; border-radius: 14px; background: rgba(255,255,255,.78); }
  .hot-heading { padding: 10px 12px 8px; }
  .hot-list { padding: 4px 8px 8px; }
  .hot-item { padding: 6px 5px; }
}

.chat-scroll:empty::before {
  content: "从一个问题开始，和历史人物展开对话";
  display: block;
  margin: auto;
  padding: 18px 22px;
  border: 1px dashed #b9d7f5;
  border-radius: 14px;
  background: #f7fbff;
  color: #6d88a5;
  font-family: var(--serif);
  font-size: 17px;
  text-align: center;
}

.question-composer::after {
  content: "回答将结合知乎讨论与可追溯来源";
  margin-top: 5px;
  color: #8aa4bd;
  font-size: 10px;
}

.evidence-panel {
  border-color: #c8def3;
  background: linear-gradient(180deg, #f5faff, #fff);
  box-shadow: 0 4px 16px rgba(48, 110, 168, .08);
}

.learning-panel {
  border-color: #d1e2f4;
  background: #fbfdff;
}

@media (max-width: 860px) {
  .history-banner-inner { border-radius: 10px; }
  .persona-bar { padding-top: 7px; padding-bottom: 7px; }
  .persona-card { width: 88px; padding: 8px 5px 7px; }
  .persona-card img { width: 40px; height: 40px; }
  .hero-intro { padding: 14px; }
  .chat-scroll { order: 1; }
  .question-composer { order: 2; position: sticky; bottom: 8px; z-index: 5; border-color: #b9d7f5; border-radius: 14px; box-shadow: 0 7px 20px rgba(38, 93, 146, .12); }
  .status-row { order: 3; }
  .side-column { order: 4; }
}

@media (max-width: 640px) {
   .topbar {
     padding: 10px 12px;
   }

   .persona-bar {
     padding: 9px 12px 8px;
   }

   .persona-card {
     width: 96px;
   }

   .persona-method { font-size: 9px; }
   .journey-strip { justify-content: flex-start; gap: 3px; overflow-x: auto; padding: 7px 12px 2px; }
   .journey-strip > i { flex: 0 0 auto; }

   .home {
     display: flex;
     flex-direction: column;
     height: auto;
     min-height: calc(100vh - 210px);
     padding: 12px 12px 0;
     overflow: visible;
   }

   .content-column {
     flex: 0 0 auto;
     min-height: 0;
   }

   .chat-scroll {
     min-height: 120px;
     max-height: 55vh;
     overflow-y: auto;
   }

   .side-column {
     display: flex;
     flex: 0 0 auto;
     min-height: 0;
     max-height: 38vh;
     overflow-y: auto;
     margin-top: 12px;
     padding-top: 10px;
     padding-bottom: 8px;
     border-top: 1px solid var(--line);
   }

   .composer-title {
     display: none;
   }

   .composer-source {
     display: none;
   }

   .hot-list {
     grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .status-row {
     gap: 6px 10px;
   }

   .duo-status {
     width: 100%;
   }

   .duo-end-button {
     margin-left: auto;
   }

   .chat-scroll {
     padding: 14px 4px 22px;
   }

   .question-body {
     font-size: 22px;
   }

   .answer-message {
     gap: 0;
   }

   .answer-card {
     padding: 13px 13px;
   }

   .learning-panel {
     padding: 10px;
   }

   .runtime-status {
     display: none;
   }
   .account-modal { padding: 14px; place-items: end center; }
   .account-modal .account-panel { width: 100%; padding: 18px; border-radius: 18px 18px 14px 14px; }
 }

 /* ── Skeleton loading ── */

 .skeleton {
   background: linear-gradient(90deg, var(--line) 25%, #f0f1f3 50%, var(--line) 75%);
   background-size: 200% 100%;
   animation: shimmer 1.5s infinite;
   border-radius: 4px;
 }

 @keyframes shimmer {
   0% {
     background-position: 200% 0;
   }
   100% {
     background-position: -200% 0;
   }
 }

 .skeleton-chip {
   display: flex;
   flex-direction: column;
   align-items: center;
   flex-shrink: 0;
   gap: 8px;
   width: 96px;
   padding: 10px;
   border: 1px solid var(--line);
   border-radius: 8px;
   background: var(--panel);
 }

 .skeleton-chip .skeleton-avatar {
   width: 44px;
   height: 44px;
   border-radius: 50%;
 }

 .skeleton-chip .skeleton-text {
   width: 56px;
   height: 12px;
 }

 .skeleton-hot-item {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 7px 2px;
 }

 .skeleton-hot-item .skeleton-rank {
   width: 20px;
   height: 13px;
 }

.skeleton-hot-item .skeleton-title {
   flex: 1;
   height: 13px;
 }

/* 手机端收紧顶部导航，保证知乎登录入口始终单行可见 */
@media (max-width: 640px) {
  .topbar { min-height: 58px; padding: 8px 10px; gap: 8px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 31px; height: 31px; flex: 0 0 31px; }
  .brand h1 { font-size: 16px; }
  .model-note { max-width: 145px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 4px; }
  .account-button { min-width: 0; gap: 4px; padding: 4px 7px 4px 4px; font-size: 12px; white-space: nowrap; }
  .account-button .account-avatar { width: 25px; height: 25px; flex: 0 0 25px; }
  .account-button.connected::after { display: none; }
  .icon-button { width: 31px; height: 31px; }
  .history-banner { padding: 7px 10px 0; }
  .history-banner-inner { align-items: center; gap: 9px; padding: 8px 9px; }
  .history-banner-copy strong { font-size: 12px; }
  .history-banner-copy > span:last-child { overflow: hidden; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .persona-heading { padding: 9px 12px 2px; }
  .persona-bar { padding: 7px 10px; }
  .persona-card { width: 84px; padding: 7px 4px 6px; }
  .persona-card img { width: 38px; height: 38px; }
  .persona-name { margin-top: 4px; font-size: 12px; }
  .persona-title { font-size: 10px; }
  .home { min-height: calc(100vh - 170px); padding: 10px 10px 0; }
  .hero-intro { margin-bottom: 8px; padding: 12px; }
  .hero-intro h2 { font-size: 23px; line-height: 1.25; }
  .hero-intro p { font-size: 12px; line-height: 1.5; }
  .hero-proof { margin-top: 8px; }
  .example-prompts { margin-top: 8px; }
  .example-prompt { max-width: 100%; overflow: hidden; padding: 6px 9px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .chat-scroll { min-height: 90px; max-height: 46vh; }
  .question-composer { margin-top: 4px; }
  .account-modal { padding: 14px; place-items: end center; }
  .account-modal .account-panel { width: 100%; padding: 18px; border-radius: 18px 18px 14px 14px; }
  .focus-button { min-height: 31px; padding: 0 7px; font-size: 11px; }
  .focus-button span { display: none; }
  .focus-toolbar { margin: 5px 10px 0; padding: 7px 8px; gap: 6px; }
  .focus-persona { font-size: 13px; }
  .focus-persona-avatar { width: 24px; height: 24px; }
  .focus-hint { display: none; }
  .focus-toolbar-actions button { padding: 5px 6px; font-size: 10px; }
  body.focus-mode .topbar { position: sticky; top: 0; z-index: 10; }
  body.focus-mode .home { height: calc(100dvh - 112px); min-height: 0; padding: 6px 10px 0; }
  body.focus-mode .content-column { flex: 1; min-height: 0; }
  body.focus-mode .chat-scroll { min-height: 0; max-height: none; padding: 10px 2px 14px; }
  body.focus-mode .question-composer { position: sticky; bottom: env(safe-area-inset-bottom, 0px); }
  body.focus-mode .app { height: 100dvh; min-height: 100dvh; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
