* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #222;
}

/* ====================================================== */
/* === Login / Register (炫酷动画版) === */
/* ====================================================== */

body.login-body {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #ec4899 50%, #06b6d4 100%);
  background-size: 400% 400%;
  animation: bgShift 14s ease infinite;
  color: #fff;
  overflow: hidden;
  position: relative;
}
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.login-body .shape {
  position: absolute;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.45;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}
body.login-body .shape.s1  { top: 5%;  left: 8%;   width: 220px; height: 220px; background: #fde68a; animation-delay: 0s;   animation-duration: 14s; }
body.login-body .shape.s2  { top: 60%; left: 12%;  width: 320px; height: 320px; background: #a78bfa; animation-delay: -3s;  animation-duration: 18s; }
body.login-body .shape.s3  { top: 15%; right: 10%; width: 280px; height: 280px; background: #f9a8d4; animation-delay: -6s;  animation-duration: 16s; }
body.login-body .shape.s4  { bottom: 8%; right: 18%; width: 200px; height: 200px; background: #67e8f9; animation-delay: -2s;  animation-duration: 12s; }
body.login-body .shape.s5  { bottom: 18%; left: 38%; width: 160px; height: 160px; background: #fbcfe8; animation-delay: -8s;  animation-duration: 20s; }
body.login-body .shape.s6  { top: 35%; left: 50%;  width: 240px; height: 240px; background: #c4b5fd; animation-delay: -4s;  animation-duration: 22s; }
body.login-body .shape.tri {
  border-radius: 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: blur(18px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite, spin 24s linear infinite;
}
body.login-body .shape.tri.s7 { top: 70%; right: 38%; width: 180px; height: 180px; background: #fcd34d; animation-delay: -5s; }
body.login-body .shape.tri.s8 { top: 8%;  left: 45%;  width: 140px; height: 140px; background: #93c5fd; animation-delay: -10s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

body.login-body .auth-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
body.login-body .auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  padding: 36px 32px 28px;
  color: #fff;
  animation: cardIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
body.login-body .auth-card.success-out {
  animation: cardOut 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes cardOut {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.96); }
}

body.login-body .auth-card h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.login-body .auth-card .sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-bottom: 26px;
}

body.login-body .tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
}
body.login-body .tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: color 0.25s;
}
body.login-body .tabs button.active { color: #fff; }
body.login-body .tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, #fde68a, #f9a8d4);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}
body.login-body .tabs[data-mode="register"] .tab-indicator { transform: translateX(100%); }

body.login-body .field {
  position: relative;
  margin-bottom: 18px;
}
body.login-body .field input {
  width: 100%;
  padding: 16px 14px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
}
body.login-body .field input::placeholder { color: transparent; }
body.login-body .field label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 4px;
}
body.login-body .field input:focus,
body.login-body .field input:not(:placeholder-shown) {
  border-color: rgba(253, 230, 138, 0.7);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.15);
}
body.login-body .field input:focus + label,
body.login-body .field input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 11px;
  color: #fde68a;
  background: rgba(99, 102, 241, 0.7);
  border-radius: 4px;
}

body.login-body .strength {
  display: flex;
  gap: 4px;
  margin: -10px 4px 12px;
  height: 4px;
}
body.login-body .strength span {
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  transition: background-color 0.3s, box-shadow 0.3s;
}
body.login-body .strength[data-level="1"] span:nth-child(-n+1) { background: #f87171; }
body.login-body .strength[data-level="2"] span:nth-child(-n+2) { background: #fb923c; }
body.login-body .strength[data-level="3"] span:nth-child(-n+3) { background: #facc15; }
body.login-body .strength[data-level="4"] span,
body.login-body .strength[data-level="5"] span {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}
body.login-body .strength-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: -8px 4px 12px;
  min-height: 14px;
  transition: color 0.3s;
}
body.login-body .strength[data-level="1"] ~ .strength-hint { color: #fca5a5; }
body.login-body .strength[data-level="2"] ~ .strength-hint { color: #fdba74; }
body.login-body .strength[data-level="3"] ~ .strength-hint { color: #fde68a; }
body.login-body .strength[data-level="4"] ~ .strength-hint,
body.login-body .strength[data-level="5"] ~ .strength-hint { color: #86efac; }

body.login-body .submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
body.login-body .submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  opacity: 0;
  transition: opacity 0.3s;
}
body.login-body .submit > * { position: relative; z-index: 1; }
body.login-body .submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}
body.login-body .submit:hover:not(:disabled)::before { opacity: 1; }
body.login-body .submit:active:not(:disabled) { transform: translateY(0); }
body.login-body .submit:disabled { opacity: 0.65; cursor: not-allowed; }
body.login-body .submit.success {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

body.login-body .err {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
  border: 1px solid rgba(248, 113, 113, 0.3);
  animation: errShake 0.4s;
}
body.login-body .err.show { display: block; }
@keyframes errShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

body.login-body .hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  line-height: 1.6;
  text-align: center;
}

/* === Admin 页面通用 === */
body.admin-body {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  background-size: 200% 200%;
  animation: bgShift 18s ease infinite;
  color: #e5e7eb;
  min-height: 100vh;
}
body.admin-body main { display: block; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-header h1 {
  margin: 0;
  font-size: 22px;
  background: linear-gradient(90deg, #fde68a, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-header .back {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  margin-left: auto;
}
.admin-header .back:hover { color: #fff; }

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.admin-toolbar input[type="search"] {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  flex: 1 1 240px;
  min-width: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-toolbar input[type="search"]:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}
.admin-toolbar .chip {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-toolbar .chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.admin-toolbar .chip.active {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
}
.admin-toolbar .reg-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.admin-toolbar .switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: rgba(255,255,255,0.18);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s;
}
.admin-toolbar .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.admin-toolbar .switch.on { background: linear-gradient(90deg, #10b981, #059669); }
.admin-toolbar .switch.on::after { transform: translateX(16px); }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.admin-table thead th {
  background: rgba(255,255,255,0.08);
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-table tbody td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .name-cell { font-weight: 500; }
.admin-table .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.admin-table .badge.admin { background: linear-gradient(90deg, #6366f1, #8b5cf6); color: #fff; }
.admin-table .badge.vip   { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #fff; }
.admin-table .badge.disabled { background: rgba(248,113,113,0.25); color: #fca5a5; }
.admin-table .badge.normal { background: rgba(74,222,128,0.2); color: #86efac; }
.admin-table .tokens { font-family: ui-monospace, monospace; font-size: 12px; }
.admin-table .tokens .in  { color: #93c5fd; }
.admin-table .tokens .out { color: #86efac; }
.admin-table .actions { white-space: nowrap; text-align: right; }
.admin-table .act {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s;
}
.admin-table .act:hover { background: rgba(255,255,255,0.16); color: #fff; }
.admin-table .act.danger:hover { background: rgba(248,113,113,0.25); border-color: rgba(248,113,113,0.4); }
.admin-table .act.active { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #fff; border-color: transparent; }
.admin-table .act.active-admin { background: linear-gradient(90deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.admin-table .empty { text-align: center; color: rgba(255,255,255,0.5); padding: 40px; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: maskIn 0.2s;
}
.modal-mask.show { display: flex; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 24px 28px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 { margin: 0 0 12px; font-size: 16px; }
.modal p  { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.modal .pw-display {
  font-family: ui-monospace, monospace;
  font-size: 18px;
  background: rgba(0,0,0,0.3);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
  word-break: break-all;
  margin-bottom: 8px;
  user-select: all;
}
.modal .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.modal button {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal button:hover { background: rgba(255,255,255,0.16); }
.modal button.primary {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-color: transparent;
  font-weight: 600;
}
.modal button.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99,102,241,0.4); }
.modal button.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  border-color: transparent;
}
.admin-loading { text-align: center; padding: 60px; color: rgba(255,255,255,0.5); }

/* === Chat header extras (VIP badge / admin link / token chip) === */
.user-extras { display: inline-flex; align-items: center; gap: 8px; }
.vip-badge {
  display: inline-block;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.35);
}
.admin-link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 12px;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 4px;
  transition: all 0.2s;
}
.admin-link:hover { background: rgba(147, 197, 253, 0.15); color: #fff; }
.token-chip {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  white-space: nowrap;
}
.token-chip .in  { color: #93c5fd; }
.token-chip .out { color: #86efac; }
#app { display: flex; flex-direction: column; height: 100vh; }
header {
  background: #1f1f23;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}
header h1 { margin: 0; font-size: 16px; font-weight: 600; }
header a { color: #ddd; margin-left: auto; text-decoration: none; font-size: 13px; }
header a:hover { color: #fff; }
header .hdr-btn { background: transparent; color: #ddd; border: 1px solid #555; border-radius: 3px; padding: 3px 10px; font-size: 12px; cursor: pointer; margin-left: auto; }
header .hdr-btn + .hdr-btn { margin-left: 6px; }
header .hdr-btn:hover { background: #333; color: #fff; border-color: #777; }
.dot { font-size: 12px; }
.dot::before {
  content: "●";
  margin-right: 4px;
}
.dot.connected { color: #4ade80; }
.dot.connecting { color: #fbbf24; }
.dot.disconnected { color: #f87171; }
main { flex: 1; display: flex; min-height: 0; }
#sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  padding: 15px;
  overflow-y: auto;
}
#sidebar section { margin-bottom: 24px; }
#sidebar h2 {
  font-size: 12px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#sidebar h2 button {
  font-size: 11px;
  padding: 2px 8px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  color: #333;
}
#sidebar h2 button:hover { background: #e5e5e5; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
  padding: 6px 8px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.file-list li.empty { color: #999; font-style: italic; padding: 10px 8px; }
.file-list .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.file-list .name a { color: #2563eb; text-decoration: none; }
.file-list .name a:hover { text-decoration: underline; }
.file-list .meta { color: #999; font-size: 11px; white-space: nowrap; }
.file-list .action { background: none; border: none; cursor: pointer; color: #666; padding: 2px 4px; }
.file-list .action:hover { color: #2563eb; }
#chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#messages { flex: 1; overflow-y: auto; padding: 20px; }
.msg { margin-bottom: 12px; }
.msg .role { font-size: 11px; color: #888; margin-bottom: 2px; }
.msg.user .role { color: #2563eb; }
.msg.assistant .role { color: #16a34a; }
.msg.cli .role { color: #9333ea; }
.msg.system .role { color: #f59e0b; }
.msg.error .role { color: #dc2626; }
.msg .content {
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.55;
}
.msg.user .content { background: #dbeafe; }
.msg.error .content { background: #fee2e2; }
.msg.system .content { background: #fef3c7; }
.msg.status .content {
  background: #f3f4f6;
  color: #555;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.msg.status .elapsed { color: #999; font-size: 12px; font-style: normal; }
.msg.status .status-text { flex: 0 1 auto; }
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ddd;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Thinking block (Claude Code 思考过程) === */
.msg.assistant .thinking-block {
  background: #faf5ff;
  border-left: 3px solid #a78bfa;
  margin: 8px 0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #6b21a8;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.msg.assistant .thinking-block summary {
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  outline: none;
  list-style: none;
  font-style: normal;
  color: #7c3aed;
}
.msg.assistant .thinking-block summary::-webkit-details-marker { display: none; }
.msg.assistant .thinking-block summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.2s;
  color: #a78bfa;
}
.msg.assistant .thinking-block[open] summary::before { transform: rotate(90deg); }
.msg.assistant .thinking-block .thinking-text {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #ddd;
  white-space: pre-wrap;
  font-style: italic;
  line-height: 1.55;
  color: #4a5568;
}

#composer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}
#input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 44px;
  max-height: 200px;
  font-family: inherit;
  font-size: 14px;
}
#input:focus { outline: none; border-color: #2563eb; }
#sendBtn {
  padding: 0 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
#sendBtn:hover { background: #1d4ed8; }
#sendBtn:disabled { background: #9ca3af; cursor: not-allowed; }
.empty-state {
  text-align: center;
  color: #999;
  margin-top: 80px;
  font-size: 14px;
}