/* ============================================================
   AI 助手 · Coze 风格对话界面
   ============================================================ */
:root {
  --bg:        #f4f5f7;
  --panel:     #ffffff;
  --line:      #e7e9ee;
  --line-soft: #f0f2f5;
  --text:      #1c2129;
  --text-2:    #5b6270;
  --text-3:    #9aa2b0;
  --accent:    #3370ff;
  --accent-2:  #2a5bd7;
  --accent-weak: #eaf1ff;
  --danger:    #f04438;
  --ok:        #1fbf8f;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.05);
  --shadow-pop: 0 8px 30px rgba(16,24,40,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
select { font-family: inherit; }
textarea { font-family: inherit; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
       stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* ==================== 侧栏 ==================== */
.sidebar {
  width: 276px; flex: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px 12px 12px;
  z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; flex: none;
              box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; }

.btn-new {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff;
  height: 40px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: background .15s, transform .05s;
}
.btn-new:hover { background: var(--accent-2); }
.btn-new:active { transform: scale(.99); }
.btn-new.small { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }

.side-label { font-size: 12px; color: var(--text-3); padding: 18px 8px 8px; }

.session-list { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.session-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 9px; margin-bottom: 2px;
  color: var(--text-2); font-size: 14px; cursor: pointer; position: relative;
  transition: background .12s;
}
.session-item:hover { background: var(--line-soft); }
.session-item.active { background: var(--accent-weak); color: var(--accent-2); }
.session-item .s-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-item .s-time { font-size: 11px; color: var(--text-3); flex: none; }
.session-item .s-del {
  display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; color: var(--text-3); flex: none;
}
.session-item:hover .s-del { display: flex; }
.session-item .s-del:hover { background: rgba(240,68,56,.12); color: var(--danger); }

.side-foot { padding: 8px 8px 0; font-size: 12px; color: var(--text-3); }

.scrim {
  display: none; position: fixed; inset: 0; background: rgba(15,20,30,.4);
  z-index: 25; opacity: 0; transition: opacity .2s;
}
.menu-btn { display: none; }

/* ==================== 顶栏 ==================== */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 62px; flex: none;
  background: rgba(244,245,247,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bot-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.avatar.lg { width: 58px; height: 58px; font-size: 22px; border-radius: 18px; }
.bot-text { min-width: 0; }
.bot-name { font-size: 16px; font-weight: 700; }
.bot-bio { font-size: 12.5px; color: var(--text-3); margin-top: 1px;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.model-pick { display: flex; align-items: center; gap: 6px; }
.model-pick-label { font-size: 12px; color: var(--text-3); }
.model-select {
  appearance: none; -webkit-appearance: none;
  height: 34px; padding: 0 28px 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa2b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;
  font-size: 13px; color: var(--text); cursor: pointer; max-width: 200px;
  outline: none;
}
.model-select:focus { border-color: var(--accent); }

.think-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 9px; flex: none;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.think-toggle .ic { width: 14px; height: 14px; }
.think-toggle:hover { border-color: var(--accent); color: var(--accent); }
.think-toggle.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); flex: none;
}
.icon-btn:hover { background: var(--line-soft); color: var(--text); }

/* 演示提示条 */
.demo-notice {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 20px 0; padding: 8px 12px;
  background: #fff7e6; border: 1px solid #ffe1a8; color: #8a5a00;
  font-size: 13px; border-radius: 10px;
}
.demo-notice .ic { color: #d48806; }
.demo-notice code { background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 12px; }
.notice-x { margin-left: auto; color: inherit; opacity: .6; width: 22px; height: 22px;
            display: flex; align-items: center; justify-content: center; border-radius: 6px; flex: none; }
.notice-x:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* ==================== 对话流 ==================== */
.messages {
  max-width: 860px; margin: 0 auto;
  padding: 20px 20px 32px;
  display: flex; flex-direction: column; gap: 22px;
}

/* —— 欢迎页 —— */
.welcome { padding: 9vh 24px 0; text-align: center; max-width: 640px; margin: 0 auto; }
.welcome-avatar { margin: 0 auto 18px; box-shadow: var(--shadow-pop); }
.welcome-title { font-size: 25px; font-weight: 700; margin: 0 0 8px; }
.welcome-sub { color: var(--text-2); font-size: 14.5px; margin: 0 auto 22px; line-height: 1.7; max-width: 480px; }
.starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.starter {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
  transition: border-color .15s, box-shadow .15s, transform .05s;
  text-align: left;
}
.starter:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow); }
.starter:active { transform: scale(.995); }

/* —— 消息 —— */
.msg { display: flex; gap: 12px; }
.msg.user { justify-content: flex-end; }
.msg .m-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; margin-top: 2px;
  display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.msg.assistant .m-avatar { display: flex; }
.msg .m-body { display: flex; flex-direction: column; gap: 6px; max-width: 100%; min-width: 0; }
.msg.assistant .m-body { max-width: calc(100% - 44px); }
.msg.user .m-body { align-items: flex-end; max-width: 86%; }

/* 气泡 */
.bubble {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 11px 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.02);
  overflow-wrap: break-word;
  min-width: 0;
}
.msg.user .bubble {
  background: var(--accent); border-color: var(--accent); color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.msg.error .bubble {
  background: #fef3f2; border-color: #fecdca; color: #b42318;
}
.bubble.error-text { font-size: 13.5px; white-space: pre-wrap; }
.bubble .md { width: 100%; }
.msg.user .bubble .md { color: #fff; }

/* 思考过程 */
.think {
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 10px;
  overflow: hidden;
  align-self: stretch;
}
.think-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; width: 100%; text-align: left;
  color: var(--text-2); font-size: 12.5px;
}
.think-head .think-state { display: inline-flex; align-items: center; gap: 6px; flex: 1; }
.think-head .ic-thinking { color: var(--accent); }
.think-head .chev { transition: transform .18s; margin-left: auto; color: var(--text-3); }
.think.open .chev { transform: rotate(180deg); }
.think-body {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 10px 12px 12px;
  font-size: 13px; line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap; overflow-wrap: break-word;
  max-height: 320px; overflow-y: auto;
}
.think.open .think-body { display: block; }

/* 思考中的动画点 */
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
          animation: dblink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dblink { 0%,80%,100% { opacity: .25; transform: translateY(0);} 40% { opacity: 1; transform: translateY(-2px);} }

/* 流式光标 */
.cursor {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  vertical-align: text-bottom; background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 消息操作条 */
.msg-actions {
  display: flex; gap: 2px; align-items: center;
  opacity: 0; transition: opacity .15s;
  padding: 0 2px; margin-top: 1px;
}
.msg:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }
.act {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px;
}
.act:hover { background: var(--line-soft); color: var(--text); }
.act.active { color: var(--accent); background: var(--accent-weak); }
.act.danger:hover { color: var(--danger); background: rgba(240,68,56,.1); }
.act .ic { width: 15px; height: 15px; }
.act .a-label { font-size: 11px; }
.msg.user .msg-actions { justify-content: flex-end; }

/* 推荐追问 */
.suggests { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg { border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
        font-size: 13px; padding: 7px 13px; border-radius: 999px;
        transition: border-color .15s, color .15s, background .15s; max-width: 100%; }
.sugg:hover { border-color: var(--accent); color: var(--accent-2); background: #f8fbff; }
.sugg:disabled { opacity: .5; cursor: not-allowed; }

/* 时间戳/状态小字 */
.meta-note { font-size: 11.5px; color: var(--text-3); padding: 0 2px; }

/* ==================== Markdown ==================== */
.md { line-height: 1.7; font-size: 14.5px; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: .45em 0; }
.md h1, .md h2, .md h3, .md h4 { margin: .9em 0 .4em; line-height: 1.4; }
.md h1 { font-size: 1.35em; } .md h2 { font-size: 1.22em; } .md h3 { font-size: 1.1em; }
.md h4 { font-size: 1em; }
.md ul, .md ol { margin: .4em 0; padding-left: 1.4em; }
.md li { margin: .2em 0; }
.md a { color: var(--accent); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md blockquote { margin: .5em 0; padding: .2em 1em; border-left: 3px solid var(--accent);
                 background: var(--line-soft); border-radius: 0 8px 8px 0; color: var(--text-2); }
.md hr { border: none; border-top: 1px solid var(--line); margin: .9em 0; }
.md table { border-collapse: collapse; margin: .6em 0; width: 100%; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md th { background: var(--line-soft); font-weight: 600; }
.md img { max-width: 100%; border-radius: 8px; }

.md code {
  font-family: var(--mono); font-size: .9em;
  background: #f2f3f7; padding: .12em .4em; border-radius: 5px;
  color: #c7254e;
}
.msg.user .md code { background: rgba(255,255,255,.22); color: #fff; }

.code-wrap { position: relative; margin: .7em 0; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #1e2430; color: #aeb6c6;
  font-size: 12px; padding: 6px 12px;
  border-radius: 10px 10px 0 0;
}
.code-head .lang { font-family: var(--mono); }
.code-copy { display: inline-flex; align-items: center; gap: 4px; color: #aeb6c6; padding: 2px 6px;
             border-radius: 6px; font-size: 12px; }
.code-copy:hover { background: rgba(255,255,255,.12); color: #fff; }
.md pre {
  margin: 0; background: #1e2430; color: #d6dae2;
  padding: 12px 14px; overflow-x: auto; border-radius: 0 0 10px 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
.md pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code-wrap.no-head .md pre { border-radius: 10px; }

/* ==================== 输入区 ==================== */
.composer-wrap { flex: none; padding: 8px 20px 12px; }
.composer {
  max-width: 860px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px 10px 6px;
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
.input {
  display: block; width: 100%;
  border: none; outline: none; resize: none;
  padding: 6px 6px 2px; font-size: 15px; line-height: 1.6;
  max-height: 180px; background: transparent; color: var(--text);
}
.composer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.composer-left, .composer-right { display: flex; align-items: center; gap: 4px; }
.tool-btn {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.tool-btn:hover { background: var(--line-soft); color: var(--text-2); }
.model-tip { font-size: 12px; color: var(--text-3); margin-right: 6px; max-width: 180px;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-send {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .05s;
}
.btn-send:hover { background: var(--accent-2); }
.btn-send:active { transform: scale(.96); }
.btn-send:disabled { background: #c8d4f5; cursor: not-allowed; }
.btn-stop {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--text); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-stop:hover { background: #3a4252; }
.footnote { text-align: center; font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }

/* ==================== Toast ==================== */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(8px);
  background: rgba(28,33,41,.92); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 10px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== 侧栏用户卡 ==================== */
.side-user {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 6px 2px; margin-top: 8px;
}
.su-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b7cfa, #8b5cf6);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.su-info { flex: 1; min-width: 0; }
.su-name { font-size: 13.5px; font-weight: 600; overflow: hidden;
           text-overflow: ellipsis; white-space: nowrap; }
.su-sub { font-size: 11px; color: var(--text-3); }
.su-logout {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.su-logout:hover { background: var(--line-soft); color: var(--danger); }

/* ==================== 登录 / 注册页 ==================== */
.auth-body {
  min-height: 100vh; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(51,112,255,.10), transparent 60%),
    radial-gradient(900px 480px at 110% 110%, rgba(139,92,246,.10), transparent 60%),
    var(--bg);
  padding: 24px 16px;
}
.auth-wrap { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-pop);
  padding: 32px 30px 26px;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), var(--shadow);
}
.auth-title { font-size: 20px; font-weight: 700; }
.auth-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }

.auth-tabs {
  display: flex; background: var(--line-soft); border-radius: 10px; padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1; height: 34px; border-radius: 8px; font-size: 14px;
  color: var(--text-2); font-weight: 500;
}
.auth-tab.active { background: #fff; color: var(--accent); font-weight: 600; box-shadow: var(--shadow); }

.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.auth-field label { font-size: 13px; color: var(--text-2); }
.auth-field input {
  height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 13px; font-size: 14px; outline: none; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }

.auth-error {
  font-size: 12.5px; color: #b42318; background: #fef3f2;
  border: 1px solid #fecdca; border-radius: 8px; padding: 8px 11px;
  line-height: 1.5; margin: 0 0 10px;
}
.auth-submit {
  height: 44px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #4f6bf8, #7c5cff);
  color: #fff; font-size: 15px; font-weight: 600; margin-top: 6px;
  transition: opacity .15s, transform .05s;
}
.auth-submit:hover { opacity: .92; }
.auth-submit:active { transform: scale(.995); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-3); margin: 14px 0 0; }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

.auth-foot { text-align: center; font-size: 12px; color: var(--text-3); }
.auth-foot a { color: var(--text-3); }

/* ==================== 补充 UI ==================== */
.session-empty {
  padding: 18px 12px; font-size: 13px; color: var(--text-3);
  text-align: center; line-height: 1.7;
}
.stream-ph { color: var(--text-3); font-size: 13px; }
.table-scroll { overflow-x: auto; }
.md .code-copy { color: #c3c9d6; }
.md .code-copy .ic { width: 13px; height: 13px; }

/* 编辑态 */
.msg.user .bubble.editing {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; width: 100%;
}
.bubble.editing .edit-box { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.edit-input {
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  padding: 9px 11px; font-size: 14px; line-height: 1.6;
  background: #fff; color: var(--text); resize: none; min-height: 72px;
  width: 100%;
}
.edit-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
.edit-bar { display: flex; justify-content: flex-end; gap: 8px; }
.mini-btn {
  height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); background: var(--line-soft);
}
.mini-btn:hover { background: var(--line); color: var(--text); }
.mini-btn.primary { background: var(--accent); color: #fff; }
.mini-btn.primary:hover { background: var(--accent-2); }

.msg.error .msg-actions { opacity: 1; }
.msg-actions:empty { display: none; }

/* ==================== 响应式 ==================== */
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-pop);
  }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { display: block; opacity: 1; }
  .menu-btn { display: inline-flex; }
  .model-pick-label, .bot-bio { display: none; }
  .think-toggle span { display: none; }
  .think-toggle { padding: 0 9px; }
  .msg .m-body { max-width: 100%; }
  .msg-actions { opacity: 1; }
  .msg.assistant .m-body { max-width: calc(100% - 44px); }
  .msg.user .m-body { max-width: 92%; }
  .starters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .05s !important; }
}
