/*
 * home-feed.css —— 首页 Twitter 式时间线（2026-11-30 Aaron：首页就是流，任务与专家动态混排）。
 *
 * 边界：
 *   · 新文件，不改 shell.css / m3.css（visual-baseline-fix 正在改那两个）；
 *   · 只作用于 #task-landing 内部新增的 .hf-* 容器；既有类（.tl-content/.tl-compose-row/
 *     .tl-avatar/.tl-mic/.tl-title/.tl-input-row）一个都不改结构，只在必要时用组合类微调；
 *   · 颜色全部走既有 token（--tl-* / --accent / --panel / --line / --text），深色由 body.v5.dark 自动接管；
 *   · 无 3D、无渐变高光、无高饱和图标；圆角只用既有 8/12/16 档。
 */

/* ── 版面：左导航 240（既有） + 中间流 + 右栏 340 ─────────────── */
/* 内容宽 / 间距 / H1 与 visual-baseline 对齐：全站唯一来源 tokens.css（1200 / 24 / clamp 26–32）。 */
#task-landing .tl-content { max-width: var(--page-max, 1200px); }
#task-landing .tl-dash { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap-card, 24px); }
#task-landing .hf-head { margin-bottom: 16px; }
#task-landing .hf-head .tl-title { font-size: clamp(26px, 6vw, 32px); }
#task-landing .hf-head .tl-sub { max-width: 640px; }

/* 发帖框 = 任务输入：去掉旧「新任务卡」的厚重感，做成流顶部的主输入 */
#task-landing .hf-composer-card {
  padding: 16px 18px;
  border-radius: var(--r, 12px);
}
#task-landing .hf-composer-card > .tl-card-head { margin-bottom: 10px; }
#task-landing .hf-composer-card > .tl-card-head h2 { font-size: 15px; }
#task-landing .hf-composer-card .tl-card-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tl-line-soft); }

/* 可选 chip：给谁看 / 什么时候要 */
.hf-composer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 30px;
}
.hf-composer-note { color: var(--tl-faint); font-size: 12px; line-height: 1.4; }
.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--ctl-sm, 32px);
  padding: 0 10px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--tl-panel);
  color: var(--tl-sub);
  font: 500 12.5px/1 var(--font-ui, inherit);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hf-chip:hover { border-color: var(--tl-line-strong, var(--line-strong)); background: var(--tl-panel-2); }
.hf-chip:focus-visible { outline: 2px solid var(--tl-accent, var(--accent)); outline-offset: 2px; }
.hf-chip[data-set="1"] { border-color: var(--tl-accent-line, var(--accent-line)); background: var(--tl-accent-soft, var(--accent-soft)); color: var(--tl-accent-text, var(--accent-text)); }
.hf-chip-k { color: var(--tl-faint); font-weight: 400; }
.hf-chip[data-set="1"] .hf-chip-k { color: inherit; opacity: .75; }
.hf-chip-v { font-weight: 600; }

/* ── 标签栏：全部 / 我的任务 / 专家动态 / 待我确认 ─────────────── */
.hf-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r, 12px);
  background: color-mix(in srgb, var(--tl-panel) 92%, transparent);
  backdrop-filter: blur(8px);
}
.hf-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--ctl, 40px);
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tl-muted);
  font: 500 13px/1 var(--font-ui, inherit);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.hf-tab:hover { background: var(--tl-panel-2); color: var(--tl-ink); }
.hf-tab[aria-selected="true"] { background: var(--tl-panel-2); color: var(--tl-ink); font-weight: 600; }
.hf-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--tl-accent, var(--accent));
}
.hf-tab:focus-visible { outline: 2px solid var(--tl-accent, var(--accent)); outline-offset: -2px; }
.hf-tab-count {
  display: inline-block;
  min-width: 16px;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--tl-panel-3, var(--panel-3));
  color: var(--tl-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hf-tab[aria-selected="true"] .hf-tab-count { background: var(--tl-panel); color: var(--tl-ink); }
.hf-tab-count[hidden] { display: none; }

/* ── 流容器 ──────────────────────────────────────────────────── */
.hf-feed { position: relative; min-width: 0; }
.hf-list {
  border: 1px solid var(--tl-line);
  border-radius: var(--r-lg, 16px);
  background: var(--tl-panel);
  overflow: hidden;
}
.hf-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tl-line-soft);
  transition: background .15s ease;
}
.hf-item:last-child { border-bottom: 0; }
.hf-item:hover { background: color-mix(in srgb, var(--tl-panel-2) 55%, transparent); }
.hf-item--decision { padding-left: 16px; }
.hf-item--decision::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tl-warn, var(--warn));
  opacity: .55;
}
.hf-item-main { flex: 1 1 auto; min-width: 0; }

/* 头像：专家用预渲染人像；用户/兜底用首字母圆片 */
.hf-avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tl-panel-2);
  color: var(--tl-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1 var(--font-ui, inherit);
  user-select: none;
}
.hf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.hf-avatar--task { background: var(--tl-accent-soft, var(--accent-soft)); color: var(--tl-accent-text, var(--accent-text)); }
.hf-avatar--task svg { width: 20px; height: 20px; }

/* 作者行 */
.hf-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.hf-name { color: var(--tl-ink); font-size: 14px; font-weight: 650; line-height: 1.3; }
button.hf-name--link { margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 650; color: var(--tl-ink); text-align: left; cursor: pointer; border-radius: 4px; }
button.hf-name--link:hover { text-decoration: underline; text-underline-offset: 2px; }
button.hf-name--link:focus-visible { outline: 2px solid var(--tl-accent, var(--accent)); outline-offset: 2px; }
.hf-role { color: var(--tl-muted); font-size: 12.5px; font-weight: 400; line-height: 1.3; }
.hf-dot-sep { color: var(--tl-faint); font-size: 12px; }
.hf-time { color: var(--tl-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.hf-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--tl-panel-2);
  color: var(--tl-muted);
  font-size: 11px;
  font-weight: 500;
}
.hf-tag--topic { border-color: var(--tl-accent-line, var(--accent-line)); background: var(--tl-accent-soft, var(--accent-soft)); color: var(--tl-accent-text, var(--accent-text)); }
.hf-tag--task { color: var(--tl-sub); }
.hf-tag--reply { color: var(--tl-accent-text, var(--accent-text)); border-color: var(--tl-accent-line, var(--accent-line)); }

/* 正文 */
.hf-body {
  margin: 6px 0 0;
  color: var(--tl-ink);
  font-size: 14.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hf-body--task { font-size: 15.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; }
.hf-sub { margin: 4px 0 0; color: var(--tl-muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.hf-context {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--tl-line-soft);
  border-left: 2px solid var(--tl-line-strong, var(--line-strong));
  border-radius: 8px;
  background: var(--tl-panel-2);
  color: var(--tl-sub);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.hf-context b { color: var(--tl-ink); font-weight: 600; }

/* 任务卡：状态药丸 + 三段进度 + 分工头像 + 交付物 */
.hf-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--tl-panel-2);
  color: var(--tl-sub);
  font: 600 11.5px/1 var(--font-ui, inherit);
  white-space: nowrap;
}
.hf-pill .hf-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hf-pill[data-tone="ok"] { color: var(--tl-ok, var(--ok)); border-color: color-mix(in srgb, var(--tl-ok, var(--ok)) 32%, var(--tl-line)); }
.hf-pill[data-tone="run"] { color: var(--tl-accent-text, var(--accent-text)); border-color: var(--tl-accent-line, var(--accent-line)); }
.hf-pill[data-tone="warn"] { color: var(--tl-warn, var(--warn)); border-color: color-mix(in srgb, var(--tl-warn, var(--warn)) 34%, var(--tl-line)); }
.hf-pill[data-tone="danger"] { color: var(--tl-danger, var(--danger, #A6402F)); }
.hf-progress { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.hf-seg { width: 26px; height: 3px; border-radius: 2px; background: var(--tl-line); }
.hf-seg[data-done="1"] { background: var(--tl-accent, var(--accent)); opacity: .78; }
.hf-progress-label { color: var(--tl-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.hf-people { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.hf-people-stack { display: inline-flex; align-items: center; }
.hf-people-stack .hf-avatar { border: 2px solid var(--tl-panel); margin-left: -8px; }
.hf-people-stack .hf-avatar:first-child { margin-left: 0; }
.hf-people-text { color: var(--tl-muted); font-size: 12.5px; line-height: 1.4; min-width: 0; }
.hf-people-text b { color: var(--tl-sub); font-weight: 600; }
.hf-artifacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hf-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  background: var(--tl-panel-2);
  color: var(--tl-sub);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}
.hf-file:hover { border-color: var(--tl-line-strong); color: var(--tl-ink); }
.hf-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-file em { color: var(--tl-faint); font-style: normal; font-size: 11px; flex: none; }
.hf-file-ic { flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--tl-accent, var(--accent)); opacity: .6; }

/* 媒体附件（media 模块只存引用：image / video / article） */
.hf-media-block { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.hf-media { margin: 0; overflow: hidden; border: 1px solid var(--tl-line); border-radius: var(--r, 12px); background: var(--tl-panel-2); }
.hf-media img, .hf-media video { display: block; width: 100%; max-height: 360px; object-fit: cover; background: var(--tl-panel-3, var(--panel-3)); }
.hf-media figcaption { padding: 6px 10px; color: var(--tl-muted); font-size: 12px; line-height: 1.4; border-top: 1px solid var(--tl-line-soft); }
.hf-article-card { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--tl-line); border-radius: var(--r, 12px); background: var(--tl-panel-2); color: var(--tl-ink); text-decoration: none; }
.hf-article-card:hover { border-color: var(--tl-line-strong); }
.hf-article-card .hf-file-ic { margin-top: 5px; }
.hf-article-card span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hf-article-card b { font-size: 13px; font-weight: 600; line-height: 1.4; }
.hf-article-card em { color: var(--tl-faint); font-style: normal; font-size: 11.5px; }

/* 操作行（点赞 / 评论 / 分享 / 更多） */
.hf-actions { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 -6px; }
.hf-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--ctl-sm, 32px);
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tl-muted);
  font: 500 12px/1 var(--font-ui, inherit);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.hf-act:hover { background: var(--tl-panel-2); color: var(--tl-ink); }
.hf-act:focus-visible { outline: 2px solid var(--tl-accent, var(--accent)); outline-offset: 1px; }
.hf-act[data-on="1"] { color: var(--tl-accent-text, var(--accent-text)); }
.hf-act svg { width: 15px; height: 15px; flex: none; }
.hf-act-count { font-variant-numeric: tabular-nums; }
.hf-act--more { margin-left: auto; padding: 0 6px; }

/* 引用卡（分享 / 上下文） */
.hf-quote {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r, 12px);
  background: var(--tl-panel-2);
}
.hf-quote-head { display: flex; align-items: center; gap: 6px; color: var(--tl-sub); font-size: 12px; }
.hf-quote-body { margin: 4px 0 0; color: var(--tl-ink); font-size: 12.5px; line-height: 1.55; }

/* 提醒条（待拍板） */
.hf-item--decision { background: color-mix(in srgb, var(--tl-warn-soft, var(--warn-soft)) 55%, var(--tl-panel)); }
.hf-decision-title { margin: 2px 0 0; color: var(--tl-ink); font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.hf-decision-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--ctl-sm, 32px);
  padding: 0 12px;
  border: 1px solid var(--tl-line);
  border-radius: 8px;
  background: var(--tl-panel);
  color: var(--tl-ink);
  font: 600 12.5px/1 var(--font-ui, inherit);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.hf-btn:hover { background: var(--tl-panel-2); border-color: var(--tl-line-strong); }
.hf-btn:focus-visible { outline: 2px solid var(--tl-accent, var(--accent)); outline-offset: 2px; }
.hf-btn[data-tone="primary"] { border-color: var(--tl-accent, var(--accent)); background: var(--tl-accent, var(--accent)); color: var(--tl-accent-ink, var(--accent-ink, #fff)); }
.hf-btn[data-tone="primary"]:hover { opacity: .9; background: var(--tl-accent, var(--accent)); }
.hf-btn[data-tone="quiet"] { background: transparent; color: var(--tl-muted); }
.hf-btn[disabled] { opacity: .5; cursor: default; }
.hf-linkish { border: 0; padding: 0; background: none; color: var(--tl-accent-text, var(--accent-text)); font: inherit; font-size: 12.5px; cursor: pointer; }

/* 内联评论 / 引用输入 */
.hf-comment { margin: 10px 0 0; }
.hf-comment textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 140px;
  padding: 9px 11px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r, 12px);
  background: var(--tl-panel);
  color: var(--tl-ink);
  font: 13.5px/1.5 var(--font-ui, inherit);
  resize: vertical;
}
.hf-comment textarea:focus { outline: none; border-color: var(--tl-accent, var(--accent)); }
.hf-comment-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hf-comment-hint { color: var(--tl-faint); font-size: 11.5px; margin-left: auto; }

/* 加载更多 / 空态 */
.hf-more-wrap { display: flex; justify-content: center; padding: 14px 0 4px; }
.hf-more {
  height: var(--ctl-sm, 32px);
  padding: 0 18px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--tl-panel);
  color: var(--tl-sub);
  font: 500 12.5px/1 var(--font-ui, inherit);
  cursor: pointer;
}
.hf-more:hover { background: var(--tl-panel-2); color: var(--tl-ink); }
.hf-more[hidden] { display: none; }
.hf-empty {
  padding: 28px 20px 24px;
  border: 1px dashed var(--tl-line-strong, var(--line-strong));
  border-radius: var(--r-lg, 16px);
  background: var(--tl-panel);
  text-align: center;
}
.hf-empty[hidden] { display: none; }
.hf-empty h3 { margin: 0 0 6px; color: var(--tl-ink); font-size: 15px; font-weight: 650; }
.hf-empty p { margin: 0 auto; max-width: 460px; color: var(--tl-muted); font-size: 13px; line-height: 1.6; }
.hf-empty-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.hf-empty-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r, 12px);
  background: var(--tl-panel-2);
  text-align: center;
}
.hf-empty-person .hf-avatar { width: 44px; height: 44px; }
.hf-empty-person-name { color: var(--tl-ink); font-size: 13px; font-weight: 650; }
.hf-empty-person-role { color: var(--tl-muted); font-size: 11.5px; line-height: 1.4; }
.hf-empty-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ── 右栏：推荐关注 / 社区概览 ───────────────────────────────── */
.hf-side-card { padding: 18px; }
.hf-people-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hf-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 8px;
  min-width: 0;
}
.hf-person:hover { background: var(--tl-panel-2); }
.hf-person-main { flex: 1 1 auto; min-width: 0; }
.hf-person-name { display: block; color: var(--tl-ink); font-size: 13px; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-person-role { display: block; color: var(--tl-muted); font-size: 11.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-person-reason { display: block; color: var(--tl-faint); font-size: 11px; line-height: 1.4; margin-top: 1px; }
.hf-person .hf-btn { flex: none; height: var(--ctl-sm, 32px); padding: 0 10px; font-size: 12px; border-radius: 999px; }
.hf-community-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--tl-muted); font-size: 12.5px; }
.hf-community-row b { color: var(--tl-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.hf-community-note { margin: 8px 0 0; color: var(--tl-faint); font-size: 11.5px; line-height: 1.5; }
.hf-side-bottom { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
#task-landing .hf-side-bottom .qs-root--sidebar { order: 0; margin-bottom: 0; }

/* 任务详情浮层 */
.hf-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: var(--scrim, rgba(28,26,48,.46));
}
.hf-sheet {
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r-lg, 16px) var(--r-lg, 16px) 0 0;
  background: var(--tl-panel);
  box-shadow: var(--shadow-2);
}
@media (min-width: 720px) { .hf-sheet-scrim { align-items: center; padding: 24px; } .hf-sheet { border-radius: var(--r-lg, 16px); } }
.hf-sheet-head { display: flex; align-items: flex-start; gap: 10px; }
.hf-sheet-head h2 { flex: 1 1 auto; margin: 4px 0 0; color: var(--tl-ink); font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.hf-sheet-close { flex: none; width: var(--ctl-sm, 32px); height: var(--ctl-sm, 32px); border: 0; border-radius: 8px; background: var(--tl-panel-2); color: var(--tl-sub); font-size: 16px; line-height: 1; cursor: pointer; }
.hf-sheet-close:hover { background: var(--tl-panel-3); color: var(--tl-ink); }
.hf-sheet-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.hf-sheet-section { margin: 16px 0 0; }
.hf-sheet-section h3 { margin: 0 0 6px; color: var(--tl-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.hf-sheet-body { margin: 0; color: var(--tl-ink); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.hf-sheet-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hf-sheet-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-panel-2); color: var(--tl-ink); font-size: 12.5px; text-decoration: none; }
.hf-sheet-file:hover { border-color: var(--tl-line-strong); }
.hf-sheet-loading { padding: 20px 0; color: var(--tl-muted); font-size: 13px; text-align: center; }

/* 小浮层菜单（关注/静音） */
.hf-menu {
  position: fixed;
  z-index: 150;
  min-width: 148px;
  padding: 5px;
  border: 1px solid var(--tl-line);
  border-radius: var(--r, 12px);
  background: var(--tl-panel);
  box-shadow: var(--shadow-2);
}
.hf-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tl-ink);
  font: 13px/1 var(--font-ui, inherit);
  text-align: left;
  cursor: pointer;
}
.hf-menu button:hover { background: var(--tl-panel-2); }
.hf-menu button[data-danger="1"] { color: var(--tl-danger, var(--danger, #A6402F)); }

/* 小提示条 */
.hf-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 160;
  max-width: min(520px, calc(100vw - 32px));
  padding: 9px 14px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--tl-panel);
  color: var(--tl-ink);
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
}
.hf-toast[hidden] { display: none; }

/* 加载骨架（只占位，不假装有内容） */
.hf-skeleton { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--tl-line-soft); }
.hf-skeleton:last-child { border-bottom: 0; }
.hf-sk-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tl-panel-2); }
.hf-sk-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding-top: 3px; }
.hf-sk-line { height: 10px; border-radius: 4px; background: var(--tl-panel-2); }
.hf-sk-line:nth-child(1) { width: 32%; }
.hf-sk-line:nth-child(2) { width: 88%; }
.hf-sk-line:nth-child(3) { width: 64%; }
.hf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 响应式 ──────────────────────────────────────────────────── */
/* 1024 回归（visual-baseline 实测）：两栏会挤压输入行，1100 及以下直接收右栏、流单列。 */
@media (max-width: 1100px) {
  #task-landing .tl-dash { grid-template-columns: minmax(0, 1fr); }
  #task-landing .tl-dash-side { display: none; }
  .hf-head .tl-sub { max-width: none; }
}
@media (max-width: 560px) {
  #task-landing .hf-head { margin-bottom: 12px; }
  #task-landing .hf-head .tl-sub { display: none; }
  #task-landing .hf-composer-card { padding: 12px; border-radius: var(--r, 12px); }
  #task-landing .hf-composer-card > .tl-card-head { margin-bottom: 8px; }
  #task-landing .hf-composer-card > .tl-card-foot { display: none; }
  .hf-composer-note { display: none; }
  .hf-tabs { margin-bottom: 10px; overflow: hidden; border-radius: var(--r, 12px); }
  .hf-tab { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12.5px; }
  .hf-tab-count { margin-left: 2px; padding: 1px 4px; font-size: 10px; }
  .hf-item { padding: 13px 12px; gap: 10px; }
  .hf-avatar { width: 34px; height: 34px; font-size: 12px; }
  .hf-body { font-size: 14px; }
  .hf-body--task { font-size: 14.5px; }
  .hf-progress { margin-left: 0; }
  .hf-status-row { gap: 6px; }
  .hf-people { gap: 4px 6px; }
  .hf-people-stack .hf-avatar { border-width: 1.5px; }
  .hf-actions { margin-top: 8px; }
  .hf-empty { padding: 22px 14px 18px; }
  .hf-tabs { border-radius: var(--r, 12px); }
  .hf-empty-people { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .hf-empty-person { flex-direction: row; text-align: left; padding: 10px; }
  .hf-empty-person-name, .hf-empty-person-role { min-width: 0; }
  .hf-sheet-scrim { padding: 0; }
  .hf-sheet { border-radius: var(--r, 12px) var(--r, 12px) 0 0; padding: 16px; max-height: 88vh; }
  .hf-toast { bottom: 72px; }
}

/* 深色：token 由 body.v5.dark 覆盖；这里只补两处半透明背景的可读性 */
body.v5.dark .hf-tabs { background: color-mix(in srgb, var(--panel) 88%, transparent); }
body.v5.dark .hf-item:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
body.v5.dark .hf-item--decision { background: color-mix(in srgb, var(--warn-soft) 42%, var(--panel)); }
body.v5.dark .hf-pill[data-tone="warn"] { color: #E2C08A; }
body.v5.dark .hf-person:hover { background: var(--panel-2); }

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hf-item, .hf-tab, .hf-chip, .hf-act, .hf-btn { transition: none !important; }
}
