:root {
  --bg: #0b0d12;
  --bg-soft: #0f1219;
  --panel: #12161f;
  --panel-2: #171c27;
  --panel-3: #1c2230;
  --line: #232a38;
  --line-soft: #1b2130;
  --text: #e8ecf4;
  --text-soft: #b6bfd0;
  --muted: #7f899c;
  --faint: #5c6577;
  --accent: #6b8cff;
  --accent-soft: rgba(107, 140, 255, 0.14);
  --user-bubble: #1e2942;
  --danger: #e0736a;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 18% -10%, rgba(107, 140, 255, 0.10), transparent 60%),
    radial-gradient(700px 420px at 92% 110%, rgba(143, 107, 255, 0.07), transparent 62%);
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.hidden { display: none !important; }

::selection { background: rgba(107, 140, 255, 0.32); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, p { margin: 0; }

/* ---------------- Shell ---------------- */

.chat-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.site-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #27324a, #171d2a);
  border: 1px solid rgba(107, 140, 255, 0.35);
  color: #dfe6ff;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-mark.large { width: 44px; height: 44px; border-radius: 12px; font-size: 21px; }

.brand-text h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-text p {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

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

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--text-soft);
  background: rgba(18, 22, 31, 0.7);
  white-space: nowrap;
}

.model-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58c48b;
  box-shadow: 0 0 0 3px rgba(88, 196, 139, 0.12);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12.5px;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.ghost-btn:hover { color: var(--text); border-color: #34405a; background: var(--panel); }
.ghost-btn svg { width: 14px; height: 14px; }

/* ---------------- Chat area ---------------- */

.chat-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2a3244 transparent;
}

.chat-main::-webkit-scrollbar { width: 10px; }
.chat-main::-webkit-scrollbar-thumb {
  background: #232b3b;
  border-radius: 999px;
  border: 3px solid var(--bg);
}

.chat-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 30px 24px 40px;
}

.message {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  animation: fade-up 0.24s ease both;
}

.message.user { flex-direction: row-reverse; }

.avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #cfd9ff;
  background: linear-gradient(150deg, #232e46, #161b27);
  border: 1px solid #2b3550;
  user-select: none;
}

.message.user .avatar {
  color: #9fb0d6;
  background: #161b25;
  border-color: #262f42;
  font-size: 13px;
}

.msg-body {
  min-width: 0;
  max-width: calc(100% - 46px);
  flex: 1 1 auto;
}

.message.user .msg-body {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  min-height: 18px;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.message.user .msg-head { justify-content: flex-end; }

.msg-head .thinking-label {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.msg-head.is-thinking .thinking-label { display: inline-flex; }
.msg-head .thinking-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: dot 1.1s infinite;
}
.msg-head .thinking-label i:nth-child(2) { animation-delay: 0.15s; }
.msg-head .thinking-label i:nth-child(3) { animation-delay: 0.3s; }

.message.user .content {
  background: var(--user-bubble);
  border: 1px solid #283653;
  border-radius: 16px 16px 5px 16px;
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #e9eefb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.assistant .content {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: anywhere;
}

.message.assistant .content.streaming { white-space: pre-wrap; }
.message.assistant .content.streaming::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.message:hover .msg-actions,
.message:focus-within .msg-actions { opacity: 1; }

.msg-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.msg-actions button:hover { color: var(--text-soft); background: var(--panel); }
.msg-actions svg { width: 13px; height: 13px; }

.msg-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.message.user .msg-meta { text-align: right; }

.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.message.user .msg-attachments { justify-content: flex-end; }

.att-image {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #2b3550;
  background: #0d1119;
}

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

.att-file {
  border: 1px solid #283653;
  background: rgba(18, 22, 31, 0.72);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-soft);
  max-width: 300px;
}

.att-file summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.att-file summary::-webkit-details-marker { display: none; }
.att-file summary svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); }

.att-file .att-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.att-file .att-chars {
  color: var(--faint);
  white-space: nowrap;
  font-size: 10.5px;
}

.att-file pre {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

.msg-error {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(224, 115, 106, 0.3);
  background: rgba(224, 115, 106, 0.08);
  border-radius: 9px;
  color: #f0a49e;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------- Markdown ---------------- */

.content > *:first-child { margin-top: 0; }
.content > *:last-child { margin-bottom: 0; }

.content p { margin: 0 0 0.85em; }
.content h1, .content h2, .content h3, .content h4 {
  margin: 1.3em 0 0.55em;
  line-height: 1.4;
  font-weight: 600;
}
.content h1 { font-size: 1.32em; }
.content h2 { font-size: 1.2em; }
.content h3 { font-size: 1.08em; }
.content h4 { font-size: 1em; color: var(--text-soft); }

.content ul, .content ol { margin: 0 0 0.9em; padding-left: 1.4em; }
.content li { margin: 0.28em 0; }
.content li > ul, .content li > ol { margin: 0.25em 0; }

.content strong { color: #f2f5fc; font-weight: 600; }
.content em { color: var(--text-soft); }

.content code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: #1b2230;
  border: 1px solid #252e3f;
  color: #c9d6ff;
}

.content pre {
  margin: 0.4em 0 1em;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0d1119;
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ccd6ea;
  font-size: 12.8px;
  line-height: 1.7;
  white-space: pre;
}

.content blockquote {
  margin: 0.4em 0 1em;
  padding: 0.15em 0 0.15em 0.9em;
  border-left: 2px solid #34405a;
  color: var(--text-soft);
}

.content a { color: #8aa5ff; text-decoration: none; border-bottom: 1px solid rgba(138, 165, 255, 0.35); }
.content a:hover { border-bottom-color: #8aa5ff; }

.content hr {
  margin: 1.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------------- Empty state ---------------- */

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  text-align: center;
  overflow-y: auto;
}

.empty-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #222c43, #141924);
  border: 1px solid #2c3752;
  color: #d9e2ff;
  font-family: Georgia, serif;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.empty-state h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.empty-state > p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: min(540px, 100%);
  margin-top: 26px;
}

.suggestions button {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(18, 22, 31, 0.72);
  color: var(--text-soft);
  font-size: 12.5px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.suggestions button:hover {
  color: var(--text);
  border-color: #34405a;
  background: var(--panel-2);
  transform: translateY(-1px);
}

/* ---------------- Composer ---------------- */

.composer-area {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 10px 24px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(11, 13, 18, 0.86));
}

.composer {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 9px 9px 9px 8px;
  border: 1px solid #2a3346;
  border-radius: 17px;
  background: var(--panel-2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.composer:focus-within {
  border-color: rgba(107, 140, 255, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(107, 140, 255, 0.08);
}

.attach-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--faint);
  transition: color 0.16s ease, background 0.16s ease;
}

.attach-btn:hover:not(:disabled) { color: var(--text-soft); background: #222a3a; }
.attach-btn:disabled { opacity: 0.35; }
.attach-btn svg { width: 19px; height: 19px; }

.pending {
  width: min(860px, 100%);
  margin: 0 auto 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.att-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 250px;
  padding: 5px 27px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 11.5px;
  animation: fade-up 0.18s ease both;
}

.att-chip.is-uploading { opacity: 0.72; }
.att-chip.is-error { border-color: rgba(224, 115, 106, 0.5); color: #f0a49e; }

.att-thumb {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  background: #0d1119;
  display: block;
}

.att-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #1b2230;
  border: 1px solid #252e3f;
  color: #a9b8d6;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.att-chip-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.att-chip .att-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.att-chip .att-size { color: var(--faint); font-size: 10px; white-space: nowrap; }

.att-remove {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a3244;
  color: #cbd4e4;
  font-size: 12px;
  line-height: 1;
}

.att-remove:hover { background: #3a455c; }

.att-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 14, 0.74);
  backdrop-filter: blur(3px);
}

.drop-card {
  width: min(430px, 100%);
  padding: 34px 28px;
  border: 1.5px dashed rgba(107, 140, 255, 0.62);
  border-radius: 18px;
  background: rgba(18, 22, 31, 0.94);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.drop-card svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.drop-card p { font-size: 15px; font-weight: 600; }
.drop-card span { display: block; margin-top: 7px; font-size: 11.5px; color: var(--muted); }

#input {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 168px;
  padding: 8px 0 9px;
  border: 0;
  background: transparent;
  resize: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  outline: none;
  scrollbar-width: thin;
}

#input::placeholder { color: var(--faint); }

.send-btn, .stop-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.send-btn {
  background: var(--accent);
  color: #0c1020;
}

.send-btn:hover:not(:disabled) { background: #7d9aff; }
.send-btn:active:not(:disabled) { transform: scale(0.96); }
.send-btn:disabled { opacity: 0.28; }

.stop-btn {
  background: #2a3244;
  color: #e7ecf6;
}

.stop-btn:hover { background: #343e54; }

.send-btn svg, .stop-btn svg { width: 18px; height: 18px; }

.composer-hint {
  width: min(860px, 100%);
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.2px;
  color: var(--faint);
}

.session-usage { font-variant-numeric: tabular-nums; }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 30;
  transform: translate(-50%, 10px);
  max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(28, 34, 48, 0.97);
  border: 1px solid #333e55;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(60, 28, 28, 0.97); border-color: #6d3838; }

.copy-helper {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------------- Login ---------------- */

.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  position: relative;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 40px 36px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(107, 140, 255, 0.10), transparent 65%),
    var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.login-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 5px;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--muted);
}

.login-head h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.login-sub {
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--text-soft);
}

.password-row {
  display: flex;
  gap: 8px;
}

.password-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.password-row input:focus {
  border-color: rgba(107, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.1);
}

.password-row input::placeholder { color: var(--faint); }

.primary-btn {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #0c1020;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.16s ease;
}

.primary-btn:hover:not(:disabled) { background: #7d9aff; }
.primary-btn:disabled { opacity: 0.55; }

.form-error {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
}

.login-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.3px;
}

/* ---------------- Animations ---------------- */

@keyframes blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-2px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 760px) {
  .site-header { height: 56px; padding: 0 14px; }
  .brand-text h1 { font-size: 14px; }
  .brand-text p { font-size: 9px; }
  .model-pill { display: none; }
  .ghost-btn { padding: 6px 9px; font-size: 12px; }
  .ghost-btn span { display: none; }
  .ghost-btn svg { width: 15px; height: 15px; }
  .chat-inner { padding: 22px 15px 30px; }
  .message { gap: 10px; margin-bottom: 24px; }
  .avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 11.5px; }
  .msg-body { max-width: calc(100% - 38px); }
  .message.assistant .content { font-size: 15px; line-height: 1.8; }
  .message.user .content { font-size: 14.5px; }
  .att-image { width: 124px; height: 124px; }
  .att-chip { max-width: 220px; }
  .att-chip .att-name { max-width: 132px; }
  .composer-area { padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
  .composer { padding-left: 6px; border-radius: 15px; }
  .attach-btn { width: 36px; height: 36px; }
  #input { font-size: 16px; }
  .composer-hint span:first-child { display: none; }
  .composer-hint { justify-content: flex-end; }
  .empty-state h2 { font-size: 22px; }
  .suggestions { grid-template-columns: 1fr; width: min(420px, 100%); }
  .toast { bottom: 96px; }
}

@media (max-width: 400px) {
  .empty-state { padding: 20px 16px 32px; }
  .empty-mark { width: 46px; height: 46px; font-size: 22px; margin-bottom: 14px; }
  .login-card { padding: 32px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
