/* 小火苗 V4 换品：对话式卡片 + 逐镜编辑器。
   从 app.css 拆出来独立成文件（开发文档 §11.1）——app.css 已经 2200+ 行，再往里堆没法维护。

   移动端硬要求（§11.3）：触控目标 ≥44px、不依赖 hover、100dvh + safe-area、
   不出现横向滚动。桌面端中间限宽两边留白（跟现有小火苗聊天页一致，不强塞三栏）。 */

/* ── 顶部常驻项目卡 ──────────────────────────────────────────────────── */
.hrs-bar { position: sticky; top: 0; z-index: 20; margin: 0 0 10px;
  background: #fff; border: 1px solid #ececf1; border-radius: 12px; overflow: hidden; }
.hrs-bar-main { display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  min-height: 44px; cursor: pointer; }
.hrs-bar-main:active { background: #fafafb; }
.hrs-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hrs-dot.ok { background: #1b8b5e; }
.hrs-dot.bad { background: #c0392b; }
.hrs-dot.run { background: #c2570c; }
.hrs-dot.run { animation: hrsDotPulse 1.8s ease-in-out infinite; }
.hrs-bar-txt { flex: 1; min-width: 0; }
.hrs-bar-t { font-size: 13.5px; font-weight: 600; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrs-bar-s { font-size: 11.5px; color: #8a9099; margin-top: 2px; }
.hrs-bar-chev { color: #b6bcc4; flex: none; }
.hrs-bar-list { border-top: 1px solid #f2f2f4; }
.hrs-bar-item { display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 11px 12px; min-height: 44px; font-size: 12.5px; cursor: pointer; }
.hrs-bar-item:active { background: #fafafb; }
.hrs-bar-item.on { background: #fff6ec; }
.hrs-bar-item-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrs-bar-item-s { font-size: 11px; color: #b6bcc4; flex: none; }
.hrs-bar-exit { color: #8a9099; border-top: 1px dashed #ececf1; }

/* ── 聊天流里的动作卡 ───────────────────────────────────────────────── */
.hrs-cards { margin: 4px 0 12px; }
.hrs-card { border: 1px solid #ececf1; border-radius: 12px; padding: 12px;
  background: #fff; margin: 0 0 10px; }
.hrs-card-t { font-size: 14px; font-weight: 600; color: #1f2329; line-height: 1.5; }
.hrs-card-h { font-size: 12px; color: #8a9099; margin-top: 3px; line-height: 1.6; }
.hrs-brief { font-size: 12.5px; color: #4a5057; line-height: 1.65; margin-bottom: 9px; }
.hrs-tip { font-size: 11.5px; color: #b6bcc4; margin-top: 9px; line-height: 1.6; }
.hrs-summary-list { display: grid; gap: 7px; margin-top: 10px; color: #4b4c56;
  font-size: 13px; line-height: 1.5; }
.hrs-summary-list > div { position: relative; padding-left: 14px; }
.hrs-summary-list > div::before { content: '•'; position: absolute; left: 2px; color: #ef6b3a; }
.hrs-failed { border-color: #f2c7bd; background: #fffaf8; }

/* 选项按钮：Ask 式，一个一行，整行可点（手机上最好按） */
.hrs-opt { display: block; width: 100%; text-align: left; margin-top: 8px;
  min-height: 44px; padding: 11px 13px; font-size: 13px; color: #1f2329;
  background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; cursor: pointer; }
.hrs-opt:active:not(:disabled) { background: #f7f7f8; }
.hrs-opt:disabled { opacity: .5; cursor: default; }
.hrs-opt-sm { min-height: 40px; padding: 9px 14px; font-size: 12.5px; color: #1f2329;
  background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; cursor: pointer; }
.hrs-opt-sm:disabled { opacity: .5; }
.hrs-primary { min-height: 44px; padding: 11px 16px; font-size: 13px; font-weight: 600;
  color: #fff; background: #1f2329; border: none; border-radius: 10px; cursor: pointer; }
.hrs-primary:disabled { background: #c9ccd1; cursor: default; }
.hrs-download { display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; text-align: center; text-decoration: none; box-sizing: border-box; }
.hrs-row { display: flex; gap: 8px; margin-top: 10px; }
.hrs-script .hrs-row { flex-wrap: wrap; }
.hrs-script .hrs-row > button { min-width: 112px; }
.hrs-grow { flex: 1; }
.hrs-own { display: flex; gap: 7px; margin-top: 8px; }
.hrs-own input, .hrs-hint-in { flex: 1; min-height: 44px; padding: 10px 12px; font-size: 13px;
  border: 1px solid #e3e5e8; border-radius: 10px; outline: none; width: 100%; }
.hrs-hint-in { margin: 10px 0; }
.hrs-own input:focus, .hrs-hint-in:focus { border-color: #c2570c; }
.hrs-blocked { font-size: 11.5px; color: #c0392b; margin-top: 7px; line-height: 1.6; }

/* 推荐卡 */
.hrs-refs .hrs-ref { border: 1px solid #ececf1; border-radius: 11px; padding: 10px;
  margin-top: 10px; transition: opacity .15s, border-color .15s; }
.hrs-ref.on { border-color: #c2570c; border-width: 2px; padding: 9px; }
.hrs-ref.dim { opacity: .45; }
.hrs-ref-head { display: flex; gap: 9px; }
.hrs-ref-head img { width: 44px; height: 58px; border-radius: 6px; object-fit: cover;
  background: #f2f2f4; flex: none; }
.hrs-ref-meta { min-width: 0; }
.hrs-ref-t { font-size: 13px; font-weight: 600; color: #1f2329; line-height: 1.45; }
.hrs-ref-s { font-size: 11.5px; color: #8a9099; margin-top: 3px; }
.hrs-ref-s span { margin-right: 3px; }
.hrs-ref-why { font-size: 12px; color: #4a5057; line-height: 1.6; margin-top: 8px; }
.hrs-ref-note { font-size: 11.5px; color: #8a6d3b; background: #fdf9ef; border-radius: 7px;
  padding: 6px 9px; margin-top: 7px; line-height: 1.55; }
.hrs-picked { display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 9px; min-height: 44px; font-size: 13px; font-weight: 600;
  color: #fff; background: #c2570c; border: none; border-radius: 10px; }

/* AI 长任务：不用百分比进度条。百分比长时间不动会让人误以为卡死，改用持续思考动画
   + 当前真实阶段文案；上传文件本身仍保留可测量的传输进度。 */
.hrs-run { overflow: hidden; border-color: #f1ddcb; background:
  radial-gradient(circle at 8% 10%, rgba(222,110,30,.09), transparent 34%), #fffdfb; }
.hrs-run-body { display: flex; align-items: center; gap: 12px; }
.hrs-think-mark { position: relative; width: 38px; height: 38px; flex: none; display: grid;
  place-items: center; border-radius: 13px; color: #c2570c; background: #fff3e7;
  box-shadow: inset 0 0 0 1px rgba(194,87,12,.08); animation: hrsThinkFloat 2.6s ease-in-out infinite; }
.hrs-think-mark b { font-size: 20px; line-height: 1; font-weight: 500;
  animation: hrsThinkGlow 1.9s ease-in-out infinite; }
.hrs-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #df7a32;
  opacity: .25; animation: hrsSpark 2.1s ease-in-out infinite; }
.hrs-spark-a { top: 5px; right: 7px; }
.hrs-spark-b { right: 4px; bottom: 8px; animation-delay: .7s; }
.hrs-spark-c { left: 6px; bottom: 6px; animation-delay: 1.35s; }
.hrs-run-copy { flex: 1; min-width: 0; }
.hrs-run-head { display: flex; align-items: center; gap: 7px; font-size: 13.5px;
  font-weight: 650; color: #9f470b; line-height: 1.45; }
.hrs-run-detail { margin-top: 3px; color: #7f746d; font-size: 11.5px; line-height: 1.55; }
.hrs-thinking-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.hrs-thinking-dots i { width: 3px; height: 3px; border-radius: 50%; background: #c2570c;
  animation: hrsDotThink 1.2s ease-in-out infinite; }
.hrs-thinking-dots i:nth-child(2) { animation-delay: .16s; }
.hrs-thinking-dots i:nth-child(3) { animation-delay: .32s; }
.hrs-run-note { font-size: 11px; color: #aaa19b; margin: 9px 0 0 50px; }

@keyframes hrsThinkFloat { 0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-2px) rotate(2deg); } }
@keyframes hrsThinkGlow { 0%,100% { opacity: .58; transform: scale(.88) rotate(0); }
  50% { opacity: 1; transform: scale(1.08) rotate(14deg); text-shadow: 0 0 10px rgba(222,110,30,.28); } }
@keyframes hrsSpark { 0%,100% { opacity: .18; transform: scale(.6); }
  45% { opacity: .9; transform: scale(1.25); } }
@keyframes hrsDotThink { 0%,60%,100% { opacity: .24; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); } }
@keyframes hrsDotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(194,87,12,.12); }
  50% { box-shadow: 0 0 0 5px rgba(194,87,12,0); } }

/* 脚本摘要卡 */
.hrs-script-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px;
  font-weight: 600; padding: 8px 10px; border-radius: 9px; }
.hrs-script-head.ok { color: #1b8b5e; background: #eefaf3; }
.hrs-script-head.bad { color: #c0392b; background: #fdf0ee; }
.hrs-warn-n { font-weight: 400; opacity: .8; margin-left: auto; }
.hrs-issue { font-size: 12px; color: #c0392b; line-height: 1.6; margin-top: 8px; }
.hrs-issue-more { margin-top: 7px; color: #a64b41; font-size: 11.5px; }
.hrs-issue-more summary { width: fit-content; cursor: pointer; color: #8b5f5a;
  list-style-position: inside; }
.hrs-issue-more > div { margin: 5px 0 0 14px; line-height: 1.65; }
.hrs-preview { margin-top: 10px; }
.hrs-shot { border-top: 1px solid #f2f2f4; padding: 9px 0 0; margin-top: 9px; }
.hrs-shot:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.hrs-shot-h { font-size: 11px; color: #b6bcc4; }
.hrs-shot-v { font-size: 12.5px; color: #1f2329; margin-top: 3px; line-height: 1.6; }
.hrs-shot-s { font-size: 12.5px; color: #c2570c; margin-top: 3px; line-height: 1.6; }
.hrs-more { font-size: 11.5px; color: #b6bcc4; margin-top: 9px; }
.hrs-chips { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.hrs-chips::-webkit-scrollbar { display: none; }
.hrs-chip { flex: none; min-height: 36px; padding: 8px 13px; font-size: 12px; color: #4a5057;
  background: #fff; border: 1px solid #e3e5e8; border-radius: 20px; white-space: nowrap; cursor: pointer; }
.hrs-chip:disabled { opacity: .5; }

/* ── 逐镜编辑器（全屏抽屉）────────────────────────────────────────────── */
.hre-mask { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.35); }
.hre { position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #fff; height: 100vh; height: 100dvh;      /* 100vh 是老浏览器回退 */
  padding-bottom: env(safe-area-inset-bottom); }
.hre-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid #ececf1; flex: none;
  padding-top: calc(10px + env(safe-area-inset-top)); }
.hre-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #4a5057; cursor: pointer; margin-left: -8px; }
.hre-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hre-state { font-size: 11.5px; color: #8a9099; flex: none; }
.hre-state .ok { color: #1b8b5e; }
.hre-body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; -webkit-overflow-scrolling: touch; }
.hre-empty { padding: 40px 16px; text-align: center; color: #8a9099; font-size: 13px; }
.hre-timebar { position: sticky; top: 0; z-index: 3; min-height: 58px; margin: 0 0 9px;
  padding: 8px 9px 8px 12px; display: flex; align-items: center; gap: 9px;
  border: 1px solid #f0d8c2; border-radius: 11px; background: rgba(255,249,243,.96);
  box-shadow: 0 4px 12px rgba(83,46,20,.05); backdrop-filter: blur(8px); }
.hre-timebar-copy { flex: 1; min-width: 0; }
.hre-timebar-copy b, .hre-timebar-copy span { display: block; }
.hre-timebar-copy b { color: #633216; font-size: 12.5px; line-height: 1.4; }
.hre-timebar-copy span { margin-top: 2px; color: #a77a5f; font-size: 10.5px; line-height: 1.35; }
.hre-timebar button { min-width: 76px; min-height: 44px; padding: 0 10px; border: 1px solid #e8c6aa;
  border-radius: 9px; background: #fff; color: #a3480a; font-size: 12px; font-weight: 600; cursor: pointer; }
.hre-timebar button:active { background: #fcebdc; }
.hre-shot { border: 1px solid #ececf1; border-radius: 11px; margin-bottom: 9px; overflow: hidden; }
.hre-shot.open { border-color: #c2570c; }
.hre-shot.picked { background: #fff6ec; }
.hre-shot-head { display: flex; align-items: flex-start; }
.hre-check { width: 44px; min-height: 44px; display: flex; align-items: center;
  justify-content: center; background: none; border: none; cursor: pointer; flex: none; }
.hre-box { width: 17px; height: 17px; border: 1.5px solid #c9ccd1; border-radius: 5px; display: block; }
.hre-box.on { background: #c2570c; border-color: #c2570c; }
.hre-shot-main { flex: 1; min-width: 0; padding: 11px 12px 11px 0; cursor: pointer; }
.hre-shot-n { font-size: 12px; color: #8a9099; display: flex; align-items: center; gap: 7px; }
.hre-time { color: #b6bcc4; }
.hre-duration-tag { padding: 1px 6px; border-radius: 8px; color: #a84c0b;
  background: #fff1e5; font-size: 10.5px; font-weight: 600; }
.hre-flag { background: #fdf0ee; color: #c0392b; font-size: 10.5px; padding: 1px 6px;
  border-radius: 9px; }
.hre-shot-p { font-size: 13px; color: #1f2329; margin-top: 4px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hre-edit { padding: 0 12px 12px; }
.hre-edit label { display: block; font-size: 11.5px; color: #8a9099; margin: 10px 0 5px; }
.hre-edit textarea, .hre-edit input { width: 100%; font-size: 13.5px; line-height: 1.6;
  color: #1f2329; border: 1px solid #e3e5e8; border-radius: 9px; padding: 9px 11px;
  outline: none; font-family: inherit; resize: vertical; box-sizing: border-box; }
.hre-edit textarea:focus, .hre-edit input:focus { border-color: #c2570c; }
.hre-duration-edit { margin-top: 12px; padding: 11px; border-radius: 10px;
  background: #faf8f6; border: 1px solid #eee7e1; }
.hre-duration-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hre-duration-head > span { color: #4b4c55; font-size: 12px; font-weight: 600; }
.hre-duration-head small { color: #a2a3aa; font-size: 10.5px; line-height: 1.35; text-align: right; }
.hre-duration-controls { display: grid; grid-template-columns: 46px minmax(100px, 1fr) 46px;
  align-items: center; gap: 8px; margin-top: 9px; }
.hre-duration-controls > button { width: 46px; height: 46px; border: 1px solid #dedfe3;
  border-radius: 10px; background: #fff; color: #4b4c55; font-size: 20px; line-height: 1;
  cursor: pointer; }
.hre-duration-controls > button:active { border-color: #c2570c; color: #c2570c; background: #fff7ef; }
.hre-duration-controls label { min-height: 46px; margin: 0; display: flex; align-items: center;
  border: 1px solid #dedfe3; border-radius: 10px; background: #fff; overflow: hidden; }
.hre-duration-controls label:focus-within { border-color: #c2570c; }
.hre-duration-controls label input { min-width: 0; height: 44px; margin: 0; padding: 8px 4px 8px 12px;
  border: none; border-radius: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.hre-duration-controls label span { flex: none; padding: 0 12px 0 2px; color: #8a9099; font-size: 11px; }
.hre-time-detail { margin-top: 8px; color: #9a9ba3; font-size: 10.5px; }
.hre-time-detail summary { min-height: 32px; display: flex; align-items: center; cursor: pointer;
  color: #8a6a53; list-style: none; }
.hre-time-detail summary::-webkit-details-marker { display: none; }
.hre-time-detail summary::after { content: '⌄'; margin-left: 5px; }
.hre-time-detail[open] summary::after { transform: rotate(180deg); }
.hre-time-detail > div { padding: 2px 0 4px; font-variant-numeric: tabular-nums; }
.hre-issue { font-size: 12px; line-height: 1.6; border-radius: 8px; padding: 7px 10px; margin-top: 9px; }
.hre-issue.hard { color: #c0392b; background: #fdf0ee; }
.hre-issue.warn { color: #8a6d3b; background: #fdf9ef; }
.hre-bottom { flex: none; display: flex; gap: 9px; padding: 10px 12px;
  border-top: 1px solid #ececf1; background: #fff; }
.hre-btn { flex: 1; min-height: 46px; font-size: 13.5px; color: #1f2329; background: #fff;
  border: 1px solid #e3e5e8; border-radius: 11px; cursor: pointer; }
.hre-btn.primary { color: #fff; background: #1f2329; border-color: #1f2329; font-weight: 600; }
.hre-btn:disabled { opacity: .55; cursor: default; }

/* ── 桌面端：中间限宽两边留白，不强塞三栏（老板要的对话感）─────────────── */
@media (min-width: 900px) {
  .hrs-cards, .hrs-bar { max-width: 720px; }
  .hre { max-width: 860px; left: 50%; transform: translateX(-50%); border-radius: 0; }
  .hrs-opt:hover:not(:disabled) { background: #f7f7f8; }
  .hrs-chip:hover:not(:disabled) { border-color: #c2570c; color: #c2570c; }
  .hre-shot-main:hover { background: #fafafb; }
  .hre-timebar button:hover { border-color: #c2570c; }
}

@media (max-width: 420px) {
  .hre-timebar-copy span { max-width: 180px; }
  .hre-duration-head { display: block; }
  .hre-duration-head small { display: block; margin-top: 3px; text-align: left; }
}

/* 左侧栏：广告创作项目与普通对话分组。样式放在本模块，避免污染其它页面。 */
.hr2-side-group { margin-bottom: 13px; }
.hr2-side-group + .hr2-side-group { padding-top: 11px; border-top: 1px solid #e7e7eb; }
.hr2-side-group-h { min-height: 28px; padding: 2px 7px 5px 9px; display: flex;
  align-items: center; justify-content: space-between; color: #9798a2; font-size: 11px;
  font-weight: 650; letter-spacing: .04em; }
.hr2-side-group-h button { min-height: 28px; padding: 2px 7px; border: none; border-radius: 7px;
  background: transparent; color: #8a6a53; font-size: 11px; cursor: pointer; }
.hr2-side-group-h button:hover, .hr2-side-group-h button:active { background: #eee9e4; color: #b04f0c; }
.hr2-project-item { width: 100%; min-height: 52px; margin: 0 0 3px; padding: 7px 8px;
  display: flex; align-items: center; gap: 8px; border: none; border-radius: 9px;
  background: transparent; color: inherit; text-align: left; cursor: pointer; }
.hr2-project-item:hover { background: #ececf1; }
.hr2-project-item.on { background: #fff0e2; box-shadow: inset 0 0 0 1px rgba(194,87,12,.08); }
.hr2-project-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: #fff; color: #b4510c; font-size: 11px; font-weight: 700;
  box-shadow: inset 0 0 0 1px #e7ddd5; }
.hr2-project-item.on .hr2-project-mark { background: #c2570c; color: #fff; box-shadow: none; }
.hr2-project-copy { flex: 1; min-width: 0; }
.hr2-project-copy b, .hr2-project-copy small { display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.hr2-project-copy b { color: #3c3d47; font-size: 12.5px; line-height: 1.35; font-weight: 600; }
.hr2-project-copy small { margin-top: 3px; color: #999aa4; font-size: 10.5px; font-weight: 400; }
.hr2-project-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #c4c5cc; }
.hr2-project-state.ok { background: #2b996b; }
.hr2-project-state.bad { background: #c65347; }
.hr2-project-state.thinking { background: #d66b20; animation: hrsSideThink 1.55s ease-in-out infinite; }
.hr2-project-state.idle { background: #b7b8c0; }
.hr2-project-empty { padding-top: 8px; padding-bottom: 9px; }
.hr2-si-row { min-height: 42px; padding: 5px 6px 5px 10px; display: flex; align-items: center;
  gap: 6px; overflow: visible; position: relative; }
.hr2-si-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr2-pin { width: 13px; height: 13px; flex: none; color: #c2570c; vertical-align: -2px; margin-right: 4px; }
.hr2-shared-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #5f8fd6;
  box-shadow: 0 0 0 2px rgba(95,143,214,.12); }
.hr2-item-more, .hr2-top-more { width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border: none; border-radius: 8px; background: transparent; color: #73747e; cursor: pointer;
  transition: opacity .14s, background .14s, color .14s; }
.hr2-item-more { opacity: 0; }
.hr2-item-more.show, .hr2-project-item:hover .hr2-item-more,
.hr2-project-item.on .hr2-item-more, .hr2-si-row:hover .hr2-item-more,
.hr2-si-row.on .hr2-item-more { opacity: 1; }
.hr2-item-more:hover, .hr2-top-more:hover { background: #e3e3e8; color: #282931; }
.hr2-danger-item { color: #d04444 !important; }
.hr2-delete-confirm { background: #d04444 !important; border-color: #d04444 !important; }
.hr2-archive-link { width: 100%; min-height: 38px; margin: 0 0 8px; padding: 7px 8px; display: flex;
  align-items: center; gap: 8px; border: none; border-radius: 8px; background: transparent;
  color: #666875; font-size: 12.5px; cursor: pointer; }
.hr2-archive-link:hover { background: #ececf1; color: #33343d; }
.hr2-archive-back { color: #50515c; }
.hr2-archive-title { padding: 4px 9px 12px; color: #33343d; font-size: 14px; font-weight: 700; }
.hr2-archived-item { opacity: .88; }
.hr2-archive-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; color: #aaaab3; font-size: 12.5px; }
.hr2-archive-empty .el-icon { font-size: 25px; color: #c2c2ca; }
.hr2-current-title { min-width: 0; max-width: 42%; padding-left: 12px; margin-left: 2px;
  border-left: 1px solid #e7e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #71727d; font-size: 12.5px; }
.hr2-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hr2-top-share { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #dedfe4; border-radius: 9px; background: #fff; color: #40414a;
  font-size: 12.5px; cursor: pointer; }
.hr2-top-share:hover { background: #f7f7f8; border-color: #d0d1d7; }
.hr2-brand { display: inline-flex; align-items: center; }
.hr2-brand-logo { width: auto; height: 28px; display: block; }
.hr2-w-logo img { width: 68px; height: 68px; display: block; margin: 0 auto; }
.hr2-a-ico .hr2-avatar-mark { width: 23px; height: 23px; display: block; }

/* 输入框处理方式选择器：产品版本选择，不暴露底层 LLM 型号。 */
.hr2-ta { min-width: 0; }
.hr2-mode-picker { flex: none; display: inline-flex; align-items: center; }
.hr2-mode-btn { height: 32px; max-width: 104px; padding: 0 9px; display: inline-flex;
  align-items: center; justify-content: center; gap: 4px; border: none; border-radius: 16px;
  background: #f1f1f3; color: #555761; font-size: 11.5px; font-weight: 650;
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hr2-mode-btn:hover, .hr2-mode-btn:active { background: #e9e9ed; color: #282931; }
.hr2-mode-btn.is-flash { background: #fff1e5; color: #ad4808; }
.hr2-mode-btn.is-flash:hover, .hr2-mode-btn.is-flash:active { background: #fde3cd; }
.hr2-mode-mobile-icon { display: none; width: 20px; height: 20px; fill: none;
  stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hr2-mode-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hr2-mode-menu { min-width: 304px; padding: 6px !important; }
.hr2-mode-menu .el-dropdown-menu__item { min-height: 58px; padding: 6px 8px; border-radius: 9px;
  line-height: 1.35; }
.hr2-mode-option { width: 100%; display: grid; grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center; gap: 7px; }
.hr2-mode-check { width: 18px; height: 18px; display: grid; place-items: center; color: #c2570c; }
.hr2-mode-option b, .hr2-mode-option small { display: block; }
.hr2-mode-option b { color: #2f3038; font-size: 13px; font-weight: 650; }
.hr2-mode-option small { margin-top: 3px; color: #92939c; font-size: 11px; font-weight: 400; }
.hr2-mode-option em { padding: 2px 6px; border-radius: 8px; background: #f0f0f2;
  color: #a1a2aa; font-size: 10px; font-style: normal; }
.hr2-mode-option.on b { color: #ad4808; }
@keyframes hrsSideThink { 0%,100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.18); box-shadow: 0 0 0 4px rgba(214,107,32,.10); } }

/* 手机抽屉必须盖住主区的 sticky 项目卡，否则项目入口会被遮挡。 */
@media (max-width: 768px) {
  /* 手机上把小火苗自己的标题栏并入系统顶栏，释放约 49px 正文高度。 */
  .topbar-huoren-mobile { gap: 7px; }
  .topbar-huoren-mobile .topbar-left { flex: 1 1 auto; min-width: 0; }
  .topbar-huoren-mobile .topbar-title { font-size: 15px; }
  .xhm-mobile-title { display: inline-flex; align-items: center; gap: 7px; }
  .xhm-mobile-mark { width: 25px; height: 25px; display: block; flex: none; }
  /* ChatGPT 手机端式的紧凑入口：只露出原创小火苗线稿，点按后再看完整版本名。 */
  .hr2-mode-btn, .hr2-mode-btn.is-flash { width: 36px; max-width: 36px; height: 36px; padding: 0;
    border-radius: 10px; background: transparent; color: #656771; }
  .hr2-mode-btn.is-flash { color: #bc520d; }
  .hr2-mode-btn:hover, .hr2-mode-btn:active,
  .hr2-mode-btn.is-flash:hover, .hr2-mode-btn.is-flash:active { background: #f1f1f3; }
  .hr2-mode-mobile-icon { display: block; }
  .hr2-mode-name, .hr2-mode-chevron { display: none; }
  .hr2-mode-menu { min-width: min(304px, calc(100vw - 24px)); }
  .hr2-mobile-top-actions { position: fixed; z-index: 18; top: 8px; right: 12px;
    display: flex; align-items: center; gap: 2px; }
  .hr2-mobile-top-btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
    border: none; border-radius: 10px; background: transparent; color: #555761; cursor: pointer;
    -webkit-tap-highlight-color: transparent; }
  .hr2-mobile-top-btn:active { background: #f0f0f3; color: #202129; }
  .hr2-mobile-library { color: #b4510c; background: #fff4e9; }
  .hr2-mobile-library:active { background: #fde5cf; color: #963f05; }
  .hr2-mask { z-index: 39; }
  .hr2-side { z-index: 40; }
  .hrs-bar { z-index: 10; }
  .hr2-item-more { width: 40px; height: 40px; opacity: 1; }
  .hr2-project-state { display: none; }
  .hr2-current-title { display: none; }
  .hr2-top-share { min-width: 42px; min-height: 40px; padding: 0 10px; }
  .hr2-top-share span { display: none; }
  .hr2-top-more { width: 40px; height: 40px; }
  .hr2-si-row { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hrs-dot.run, .hrs-think-mark, .hrs-think-mark b, .hrs-spark,
  .hrs-thinking-dots i, .hr2-project-state.thinking { animation-duration: 4s; }
}

/* ══ Asking Dock（V4.1 §4）══════════════════════════════════════════════
   位于输入框正上方、与输入框同宽。不是气泡、不是居中弹窗——
   Dock 打开时聊天区缩短，而不是浮层盖住最后几条消息（§4.2）。 */
.hrd { border: 1px solid #e3e5e8; border-radius: 14px; background: #fff;
  padding: 12px; margin: 0 0 8px; }
.hrd-progress { display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:-1px 0 9px; color:#a6531a; font-size:10.5px; font-weight:600; }
.hrd-progress em { color:#a1a5ac; font-style:normal; font-weight:500; }
.hrd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.hrd-tag { flex: none; font-size: 11px; color: #c2570c; background: #fff6ec;
  padding: 2px 8px; border-radius: 10px; }
.hrd-q { font-size: 14px; font-weight: 600; color: #1f2329; line-height: 1.5; }
.hrd-consensus, .hrd-hypothesis { margin:0 0 9px; padding:10px 11px; border-radius:10px;
  background:#fafafb; color:#565b63; }
.hrd-consensus { border-left:3px solid #d97631; background:#fffaf5; }
.hrd-consensus b, .hrd-hypothesis b, .hrd-section-title { display:block; margin-bottom:4px;
  color:#34373d; font-size:11px; }
.hrd-consensus p, .hrd-hypothesis p, .hrd-reason p { margin:0; font-size:11.5px;
  line-height:1.65; }
.hrd-reason { margin:-1px 0 9px; padding:0 2px; color:#777c84; }
.hrd-reason p + p { margin-top:2px; }
.hrd-reason b { color:#555a62; font-weight:600; }
.hrd-decisions { margin:0 0 9px; border:1px solid #ececef; border-radius:9px;
  background:#fcfcfd; overflow:hidden; }
.hrd-decisions summary { min-height:36px; display:flex; align-items:center; justify-content:space-between;
  padding:0 10px; cursor:pointer; color:#666b73; font-size:11.5px; list-style:none; }
.hrd-decisions summary::-webkit-details-marker { display:none; }
.hrd-decisions summary span { color:#a2a6ad; font-size:10.5px; }
.hrd-decisions > div { padding:8px 10px; border-top:1px solid #f0f0f2; }
.hrd-decisions > div b { display:block; color:#666b73; font-size:10.5px; font-weight:500; }
.hrd-decisions > div p { margin:3px 0 0; color:#30343a; font-size:11.5px; line-height:1.55; }
.hrd-contract { margin:0 0 10px; padding:11px; border:1px solid #e4e8e5; border-radius:10px;
  background:#f9fbfa; }
.hrd-contract dl { display:grid; grid-template-columns:76px minmax(0,1fr); gap:6px 9px; margin:0; }
.hrd-contract dt { color:#81868d; font-size:10.5px; }
.hrd-contract dd { margin:0; color:#3e4349; font-size:11.5px; line-height:1.5; }
.hrd-contract details { margin-top:8px; padding-top:8px; border-top:1px solid #e9ecea; }
.hrd-contract summary { width:fit-content; cursor:pointer; color:#747a80;
  font-size:10.5px; list-style-position:inside; }
.hrd-contract details dl { margin-top:8px; }
.hrd-opts { display: flex; flex-direction: column; gap: 8px; }
.hrd-opt { position: relative; width: 100%; text-align: left; min-height: 44px;
  padding: 10px 38px 10px 13px; background: #fff; border: 1px solid #e3e5e8;
  border-radius: 11px; cursor: pointer; }
.hrd-opt.rich { padding-top:12px; padding-bottom:12px; }
.hrd-opt.on { border-color: #c2570c; border-width: 2px; padding: 9px 37px 9px 12px;
  background: #fffaf5; }
.hrd-opt.rich.on { padding-top:11px; padding-bottom:11px; }
.hrd-opt:disabled { opacity: .55; cursor: default; }
.hrd-opt-l { display: block; font-size: 13.5px; font-weight: 600; color: #1f2329; }
.hrd-rec { display:inline-flex; margin-left:7px; padding:1px 6px; border-radius:8px;
  background:#fff0e4; color:#ad4a0b; font-size:9.5px; font-style:normal; vertical-align:1px; }
.hrd-opt-d { display: block; font-size: 11.5px; color: #8a9099; margin-top: 3px; line-height: 1.5; }
.hrd-direction-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 10px;
  margin-top:9px; padding-top:9px; border-top:1px solid #f0f0f2; }
.hrd-direction-facts > span { display:block; min-width:0; }
.hrd-direction-facts em, .hrd-direction-facts b { display:block; font-style:normal; }
.hrd-direction-facts em { margin-bottom:2px; color:#9a9ea5; font-size:9.5px; font-weight:500; }
.hrd-direction-facts b { color:#4a4e55; font-size:10.5px; font-weight:500; line-height:1.45; }
.hrd-source-roles { display:block; margin-top:8px; color:#676c74; font-size:10.5px; line-height:1.5; }
.hrd-opt-source { display: inline-block; position: relative; z-index: 1; margin-top: 6px;
  font-size: 11px; color: #a64b14; text-decoration: underline; text-underline-offset: 2px; }
.hrd-tick { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #c2570c; }
.hrd-other-in { width: 100%; margin-top: 9px; padding: 10px 12px; font-size: 13.5px;
  line-height: 1.6; border: 1px solid #c2570c; border-radius: 10px; outline: none;
  font-family: inherit; resize: none; box-sizing: border-box; }
.hrd-actions { display:flex; align-items:stretch; gap:8px; margin-top:10px; }
.hrd-back { flex:none; min-height:46px; padding:0 13px; border:1px solid #dfe1e5; border-radius:11px;
  background:#fff; color:#5c6067; font-size:12.5px; cursor:pointer; }
.hrd-back:disabled { opacity:.5; cursor:default; }
.hrd-go { flex:1; width: 100%; margin-top: 0; min-height: 46px; font-size: 14px; font-weight: 600;
  color: #fff; background: #1f2329; border: none; border-radius: 11px; cursor: pointer; }
.hrd-go:disabled { background: #c9ccd1; cursor: default; }

/* ══ 三列对标选择器（V4.1 §5.3）════════════════════════════════════════
   390px 屏：卡宽 = (100% - 2×gap)/3 ≈ 111px。标题区和底部确认区固定，
   中间网格自己滚，不拉走整页聊天（§5.3 末两条）。 */
.hrp { display: flex; flex-direction: column; max-height: min(52dvh, 460px); }
.hrp-hint { font-size: 11.5px; color: #8a9099; line-height: 1.55; margin: -4px 0 9px; }
.hrp-grid { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding-bottom: 2px; }
.hrp-grid::-webkit-scrollbar { width: 3px; }
.hrp-grid::-webkit-scrollbar-thumb { background: #dcdfe3; border-radius: 2px; }
.hrp-card { border: 1px solid #ececf1; border-radius: 10px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column; }
/* 选中不能只靠颜色——加粗描边 + 勾选图标（§11.4 末条，无障碍） */
.hrp-card.on { border-color: #c2570c; border-width: 2px; }
.hrp-cover { position: relative; cursor: pointer; }
.hrp-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  background: #f2f2f4; }
.hrp-stars { position: absolute; top: 4px; left: 4px; font-size: 10px; letter-spacing: .5px;
  color: #ffd166; background: rgba(0,0,0,.5); padding: 1px 5px; border-radius: 8px; }
.hrp-open-src { position: absolute; z-index: 2; top: 4px; right: 4px; min-width: 42px;
  min-height: 28px; padding: 0 6px; border: 1px solid rgba(255,255,255,.72); border-radius: 8px;
  background: rgba(20,22,25,.78); color: #fff; font-size: 10.5px; font-weight: 600;
  line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.hrp-open-src:active { background: #c2570c; }
.hrp-check { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #c2570c; color: #fff; font-size: 12px; }
.hrp-t { font-size: 11px; line-height: 1.4; color: #1f2329; padding: 5px 6px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.hrp-m { font-size: 10px; color: #b6bcc4; padding: 2px 6px 4px; }
/* 「看原视频」独立成行，与封面点击区物理分开（方案 2）。整行可点，热区 >32px。 */
.hrp-src { width: 100%; min-height: 36px; margin-top: auto; font-size: 11px; color: #4a5057;
  background: #fafafb; border: none; border-top: 1px solid #f2f2f4; cursor: pointer; }
.hrp-src:active { background: #f0f0f2; }
.hrp-why { flex: none; font-size: 11.5px; color: #4a5057; line-height: 1.6;
  background: #fafafb; border-radius: 8px; padding: 8px 10px; margin-top: 9px; }
.hrp-why b { color: #c2570c; margin-right: 6px; }
.hrp-picked-src { width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid #e5c3a7;
  border-radius: 9px; background: #fff6ec; color: #a44809; font-size: 12.5px;
  font-weight: 600; cursor: pointer; }
.hrp-picked-src:active { background: #fde7d2; }
.hrp-foot { flex: none; display: flex; gap: 8px; margin-top: 10px; }
.hrp-more { flex: none; min-height: 46px; padding: 0 16px; font-size: 13px; color: #1f2329;
  background: #fff; border: 1px solid #e3e5e8; border-radius: 11px; cursor: pointer; }
.hrp-go { flex: 1; margin-top: 0; }

@media (min-width: 900px) {
  /* 电脑端一行 5~6 张，Dock 与聊天主列同宽（§5.4） */
  .hrp-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .hrp { max-height: 520px; }
  .hrd-opt:hover:not(:disabled) { border-color: #c2570c; }
  .hrp-src:hover { background: #f0f0f2; color: #c2570c; }
}

@media (max-width: 768px) {
  .hrd { padding:11px; }
  .hrd-q { font-size:14.5px; }
  .hrd-direction-facts { grid-template-columns:1fr; }
  .hrd-contract dl { grid-template-columns:68px minmax(0,1fr); }
  .hrd-back { min-width:112px; padding:0 10px; }
  .hrs-script .hrs-row > button { flex:1 1 calc(50% - 4px); min-width:0; }
  .hrs-script .hrs-row > button:last-child { flex-basis:100%; }
}
