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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d6d9de; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c2c6cd; }
::-webkit-scrollbar-track { background: transparent; }


#app { display: flex; height: 100vh; overflow: hidden; }

#main { flex: 1; min-width: 0; overflow: hidden; position: relative; background: #ffffff; }


.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: #f5f6f7;
  border-right: 1px solid #e7e9ee;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: width .18s ease;
}

.sidebar.collapsed {
  width: 0;
  border-right: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 12px 14px;
  overflow: hidden;
}


.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 4px 14px;
}
.side-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  letter-spacing: .2px;
}
.side-toggle { color: #6b7280; flex-shrink: 0; }
.side-tools { display: flex; align-items: center; gap: 8px; }


.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, color .12s;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); color: #111827; }


.btn-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.btn-new:hover { background: #fafbfc; border-color: #c9cdd4; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.btn-new:active { background: #f0f1f3; }


.history-block { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
}
.history-label { font-size: 13px; font-weight: 600; color: #4b5563; }

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #d9dce1;
  border-radius: 12px;
  color: #9ca3af;
}
.search-box:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #111827;
}
.search-box input::placeholder { color: #b6bcc6; }


.session-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 2px;
}
.session-item {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .12s;
}
.session-item:hover { background: #eceef0; }
.session-item.active { background: #dbeafe; border-color: #93c5fd; }
.session-item.active .session-name { color: #1e40af; }
.session-item.active .session-time { color: #1e40af; opacity: .75; }

.session-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 9px 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.session-name {
  font-size: 13.5px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-time { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.session-del { opacity: 0; margin-right: 4px; width: 26px; height: 26px; }
.session-item:hover .session-del { opacity: 1; }
.session-del:hover { color: #dc2626; background: rgba(220, 38, 38, .08); }

.session-empty {
  padding: 16px 10px;
  font-size: 12.5px;
  color: #9ca3af;
  text-align: center;
}


.side-footer { padding-top: 12px; border-top: 1px solid #e7e9ee; }

.btn-login {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-login:hover { background: #1d4ed8; }

.user-box { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: #2563eb; color: #fff; font-size: 15px; font-weight: 600;
}
.user-name {
  flex: 1;
  min-width: 0;
  font-size: 14px; font-weight: 600; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-logout { color: #9ca3af; }
.user-logout:hover { color: #dc2626; background: rgba(220, 38, 38, .08); }


.sidebar.collapsed .brand-name,
.sidebar.collapsed .history-block,
.sidebar.collapsed .side-footer { display: none; }
.sidebar.collapsed .side-header { justify-content: center; padding: 4px 0 14px; }
.sidebar.collapsed .side-toggle { display: none; }
.sidebar.collapsed .btn-new { padding: 0; }
.sidebar.collapsed .btn-new span { display: none; }

.side-float-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 46px;
  border: 1px solid #e7e9ee;
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  box-shadow: 2px 0 6px rgba(0, 0, 0, .05);
  z-index: 5;
}
.side-float-toggle:hover { color: #2563eb; }
.sidebar.collapsed .side-float-toggle { display: flex; align-items: center; justify-content: center; }


.home-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.home-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px; 
  margin-bottom: 42px; 
}
.home-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.home-name { font-size: 28px; font-weight: 700; color: #111827; letter-spacing: .5px; }
.home-composer-wrap { width: 100%; max-width: 820px; }


.composer {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  padding: 10px 14px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.composer-input {
  width: 100%;
  min-height: 64px;
  max-height: 200px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 2px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  color: #111827;
  overflow-y: auto;
}
.composer-input::placeholder { color: #9ca3af; }

.composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.composer-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
}
.composer-send:hover { background: #1d4ed8; }
.composer-send:active { transform: scale(.95); }
.composer-send.disabled { opacity: .45; cursor: not-allowed; }
.composer-send.disabled:hover { background: #2563eb; }


.chat-view { height: 100%; display: flex; flex-direction: column; }

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 8px;
}
.chat-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 12px;
}
.chat-composer-wrap {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px 18px;
}

.chat-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 46px 0;
}


.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.msg-ai { justify-content: flex-start; }

.user-bubble {
  max-width: 85%;
  background: #e8f1ff;
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #111827;
  word-break: break-word;
}

.ai-body {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.75;
  color: #111827;
  word-break: break-word;
}


.ai-body p { margin: 0 0 10px; }
.ai-body p:last-child { margin-bottom: 0; }
.ai-body h1, .ai-body h2, .ai-body h3,
.ai-body h4, .ai-body h5, .ai-body h6 {
  margin: 16px 0 8px;
  line-height: 1.4;
  color: #111827;
}
.ai-body h1 { font-size: 20px; }
.ai-body h2 { font-size: 18px; }
.ai-body h3 { font-size: 16px; }
.ai-body ul, .ai-body ol { margin: 6px 0 10px; padding-left: 22px; }
.ai-body li { margin: 3px 0; }
.ai-body blockquote {
  margin: 8px 0;
  padding: 8px 14px;
  border-left: 3px solid #d1d5db;
  background: #f9fafb;
  border-radius: 0 8px 8px 0;
  color: #4b5563;
}
.ai-body hr { border: none; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.ai-body a { color: #2563eb; text-decoration: none; }
.ai-body a:hover { text-decoration: underline; }
.ai-body code.md-inline {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.ai-body table { border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 14px; }
.ai-body th, .ai-body td { border: 1px solid #e5e7eb; padding: 7px 12px; text-align: left; }
.ai-body th { background: #f9fafb; font-weight: 600; }

.md-code {
  margin: 10px 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fb;
}
.md-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #f1f3f6;
  border-bottom: 1px solid #e5e7eb;
}
.md-code-lang {
  font-size: 12px;
  color: #6b7280;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.md-copy {
  border: 1px solid #d9dce1;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  border-radius: 7px;
  padding: 3px 12px;
  cursor: pointer;
  transition: background .12s;
}
.md-copy:hover { background: #f3f4f6; }
.md-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.md-code code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2937;
  white-space: pre;
}


.typing { display: flex; align-items: center; gap: 5px; padding: 8px 2px; }
.typing .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: blink 1.2s infinite;
}
.typing .dot:nth-child(2) { animation-delay: .2s; }
.typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.typing-text { font-size: 13px; color: #9ca3af; margin-left: 8px; }


.ai-error { color: #dc2626; font-size: 14px; margin-bottom: 8px; }
.ai-retry {
  border: 1px solid #d9dce1;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  border-radius: 12px;
  padding: 5px 18px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.ai-retry:hover { background: #eff6ff; border-color: #93c5fd; }

.not-found {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6b7280;
  font-size: 14px;
}
.not-found a { color: #2563eb; text-decoration: none; }


.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-card {
  width: 360px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}
.modal-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
}
.modal-title { font-size: 18px; font-weight: 700; color: #111827; }
.modal-desc { font-size: 13.5px; color: #6b7280; line-height: 1.7; margin: 10px 0 18px; }
.modal-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background .15s;
}
.modal-btn:hover { background: #1d4ed8; }
.modal-btn.ghost {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d9dce1;
  font-weight: 500;
}
.modal-btn.ghost:hover { background: #f9fafb; }


.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .92);
  color: #ffffff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  z-index: 200;
  max-width: 80vw;
  text-align: center;
  transition: opacity .2s;
}
.toast.hidden { opacity: 0; pointer-events: none; }


.mask { display: none; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 60;
    width: 264px;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .08);
  }
  .sidebar.collapsed { width: 0; }
  .sidebar.collapsed .side-float-toggle {
    display: flex;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 10px 10px 0;
  }
  .mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .4);
    z-index: 55;
  }
  #app.mask-visible .mask { display: block; }
}


.backend-warn {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #92400e;
  font-size: 13px;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.6;
}
.backend-warn-inner { max-width: 860px; margin: 0 auto; word-break: break-word; }
.backend-warn strong { font-weight: 700; }


.side-toolbar {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-toolbar.hidden { display: none; }

.tb-logo {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.tb-logo:hover img { opacity: .85; }

.tb-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  padding: 4px;
}
.tb-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #111111; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s, transform .1s;
}
.tb-btn:hover { background: #f1f2f4; }
.tb-btn:active { transform: scale(.94); }

@media (max-width: 900px) {
  .side-toolbar { left: 12px; }
}


.search-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  z-index: 300;
  display: flex;
  justify-content: center;
  padding: 80px 16px 16px;
}
.search-modal {
  width: 640px;
  max-width: 100%;
  height: fit-content;
  max-height: 70vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.search-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f2;
  color: #6b7280;
}
.search-modal-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111827;
  background: transparent;
}
.search-modal-input::placeholder { color: #9ca3af; }
.search-modal-body {
  overflow-y: auto;
  padding: 8px;
  max-height: 50vh;
}
.search-empty {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.search-hit {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.search-hit:hover { background: #f3f4f6; }
.search-hit-name { font-size: 14px; font-weight: 600; color: #111827; }
.search-hit-preview {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-item { position: relative; }
.sess-menu { opacity: 0; margin-right: 4px; width: 28px; height: 28px; }
.session-item:hover .sess-menu { opacity: 1; }
.sess-menu:hover { background: rgba(0, 0, 0, .07); color: #111827; }

.sess-actions {
  position: fixed;
  min-width: 128px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  padding: 6px;
  z-index: 400;
}
.sess-action {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #111827;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.sess-action:hover { background: #f3f4f6; }
.sess-action.danger { color: #dc2626; }

.session-rename {
  flex: 1;
  min-width: 0;
  border: 1px solid #2563eb;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
}

.confirm-del {
  width: 400px;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  padding: 24px 24px 20px;
}
.cd-title { font-size: 16px; font-weight: 700; color: #111827; }
.cd-desc { font-size: 13.5px; color: #374151; margin-top: 18px; }
.cd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.cd-btn {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.cd-btn.ghost { background: #ffffff; border-color: #d9dce1; color: #111827; }
.cd-btn.ghost:hover { background: #f5f6f7; }
.cd-btn.primary { background: #2563eb; color: #ffffff; }
.cd-btn.primary:hover { background: #1d4ed8; }
.cd-btn.danger { background: #dc2626; color: #ffffff; }
.cd-btn.danger:hover { background: #b91c1c; }

.sel-box { display: inline-flex; align-items: center; margin-right: 10px; }
.sel-box input { width: 18px; height: 18px; accent-color: #2563eb; cursor: pointer; }

.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  padding: 8px 10px 8px 16px;
}
.share-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #111827; cursor: pointer; }
.share-all input { width: 18px; height: 18px; accent-color: #2563eb; cursor: pointer; }
.share-count { flex: 1; min-width: 0; font-size: 13px; color: #6b7280; }
.share-actions { display: flex; align-items: center; gap: 8px; }

.share-view { height: 100%; display: flex; flex-direction: column; }
.share-head { padding: 16px 18px 8px; }
.share-title { font-size: 13px; color: #6b7280; }
.share-name { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 14px; }
.share-foot { max-width: 820px; width: 100%; margin: 0 auto; padding: 10px 16px 18px; display: flex; justify-content: flex-end; }

.share-modal {
  width: 460px;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  padding: 24px 24px 20px;
}
.share-modal-title { font-size: 16px; font-weight: 700; color: #111827; }
.share-modal-desc { font-size: 13px; color: #6b7280; margin-top: 6px; }
.share-modal-url {
  margin-top: 14px;
  background: #f5f6f7;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #2563eb;
  word-break: break-all;
  user-select: all;
}
.share-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.chat-top { display: flex; align-items: center; padding: 12px 18px 0; }
.chat-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.chat-title:hover { border-color: #d9dce1; background: #ffffff; }
.chat-title-input {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  border: 1px solid #2563eb;
  border-radius: 999px;
  padding: 5px 14px;
  outline: none;
  max-width: 360px;
  width: 100%;
}
.chat-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  padding: 6px 0 2px;
}

.session-link { padding: 8px 10px; }
.session-name { font-size: 13px; line-height: 1.4; }

.tb-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
