/* 📦 窗口归档 · 冻结态 + 提示气泡（2026-09-27，指令 23 C2；视图：Opus 5.5）
   侧边栏那部分（翻页分段钮、⋯ 菜单、归档页每项）在 sidebar.css；JS 全在 js/archive-ui.js。
   冻结 = 可看不可发：body.chat-archived 时整行输入（📷 💭 输入框 🐾）换成一条「已归档 · 只能看 [取消归档]」，
   不留一个点了没反应的灰发送键。条的高度 = 一行输入框（44px），冻结/解冻时消息区不跳。
   深浅色：聊天室全站只有浅色一套（base.css 无 prefers-color-scheme），这里跟着走；冻结条靠虚线框 + 箱子图标 + 文字认，不只靠颜色。 */

.archived-bar { display: none; }
body.chat-archived .input-row,
body.chat-archived .image-preview-area { display: none; }
body.chat-archived .archived-bar {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 4px 4px 4px 14px;
  border: 1.5px dashed rgba(180,160,130,0.45); border-radius: 22px;
  background: rgba(245,237,227,0.65);
  font: 14px var(--font); color: var(--text-secondary);
}
.archived-bar-ico { display: flex; color: #ab9372; flex-shrink: 0; }
.archived-bar-ico svg { width: 18px; height: 18px; }
.archived-bar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archived-bar-text b { font-weight: 600; color: var(--text-primary); }
.archived-bar-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  min-height: 36px; padding: 0 14px 0 11px;
  border: none; border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  font: 500 13px var(--font); box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--spring), background 0.2s;
}
.archived-bar-btn svg { width: 16px; height: 16px; }
.archived-bar-btn:hover { background: linear-gradient(135deg, var(--paw), var(--accent-dark)); }
.archived-bar-btn:active { transform: scale(0.95); }
.archived-bar.shake { animation: archived-shake 0.5s ease-out; }   /* 被拦（showArchivedBlock）：条左右抖一下 */
@keyframes archived-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* 冻结的窗口不改历史：✏️ 编辑 / 🔄 重新生成 收起来（复制、版本左右翻照常） */
body.chat-archived .meta-action { display: none; }
/* 🔥 缓存倒计时（22）冻结时不显示：发不了消息，"还热多久"没意义，还会催人回。解冻后 22 自己的状态原样回来 */
body.chat-archived .cache-cd { display: none !important; }

/* 提示气泡：沿用 .settings-toast（「📷 已设为唤醒目标」那个），前面加个箱子；字距收回来，文件名长了能换行 */
.settings-toast.archive-toast {
  display: flex; align-items: center; gap: 7px;
  width: max-content; max-width: calc(100vw - 32px);
  letter-spacing: 0.3px; line-height: 1.45; color: var(--text-primary);
}
.archive-toast svg { width: 17px; height: 17px; flex-shrink: 0; color: #ab9372; }
