/* Claude 风格工作台 · 对话、消息、折叠、工具行、等待行
   来源：dsh-claude-style@1e7acc5b 的 features/chat-fold、chat-follow、chat-wait、
   chat-files、chat-send 与 docs/screenshots/claude-conversation-*.png。 */

.conversation {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: var(--canvas);
}

.transcript {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 24px 32px calc(var(--composer-fade-h) + 16px);
}
.transcript-inner {
  width: var(--conversation-w);
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 8px;
}
.app[data-focus="chat"] .transcript-inner,
.app[data-workspace="closed"] .transcript-inner {
  width: var(--conversation-w);
}

/* 顶部渐隐：让滚到顶栏下的正文淡出，而不是被硬边切断 */
.transcript::before {
  content: "";
  position: sticky;
  top: -24px;
  display: block;
  height: 1px;
  margin-bottom: -1px;
  box-shadow: 0 0 0 0 transparent;
  pointer-events: none;
}

/* ---------- 空态 ----------
   复刻 dsh-claude-style 的 features/home（home-panel.css + theme/hero.css）：
   Claude Code 首页只有「品牌标 + 一句问候」，20px 无衬线、500 字重，
   左缘与输入卡片对齐；没有副标题、没有步骤提示。
   品牌标沿用上游「非 Claude 品牌保留自家标、填强调色」的做法：NeoBangX 闪电 + 陶土色。 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px calc(var(--composer-fade-h) + 20px);
}
.empty-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(var(--conversation-w), 100%);
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0;
  color: var(--ink);
  text-align: left;
}
.empty-mark {
  display: inline-flex;
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--accent);
}
.empty-mark .aw-svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}
.empty-greeting-text {
  min-width: 0;
}
/* 问候随空态出现而升起：品牌标先到，问候晚一拍（上游 hero-rise：500ms / 12px / 3px 模糊 / 70ms 错拍）。
   减少动效由 base.css 的全局规则收掉。 */
.empty:not([hidden]) .empty-mark,
.empty:not([hidden]) .empty-greeting-text {
  animation: empty-rise 500ms var(--ease-settle) both;
}
.empty:not([hidden]) .empty-greeting-text {
  animation-delay: 70ms;
}
@keyframes empty-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ---------- 回合 ---------- */
.turn {
  position: relative;
  padding: 6px 0 26px;
  contain: layout style;
}
.turn + .turn {
  padding-top: 26px;
}
.turn + .turn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--divider);
}
.turn[data-status="running"] {
  content-visibility: visible;
}

/* 回合耗时行：Claude 的「用时1秒」 */
.turn-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 11px;
  user-select: none;
}
.turn-meta .meta-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 4px;
  border-radius: var(--radius-1);
  color: var(--ink-3);
  font-size: 11px;
}
.turn-meta .meta-button:hover {
  background: var(--hover);
  color: var(--ink-2);
}
.turn-meta .meta-button .aw-svg {
  width: 12px;
  height: 12px;
  transition: transform var(--timing-feedback);
}
.turn-meta .meta-button[aria-expanded="true"] .aw-svg {
  transform: rotate(90deg);
}
.turn-meta .rule {
  flex: 1;
  height: 0.5px;
  background: var(--divider);
}
.turn-meta[hidden] {
  display: none;
}

/* 没有用户原话时的开始状态：不是气泡，不冒充用户输入 */
.turn-start {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin: 2px 0 2px;
  color: var(--ink-4);
  font-size: 11px;
  user-select: none;
}
.turn-start .aw-svg {
  width: 12px;
  height: 12px;
}

/* ---------- 用户消息 ---------- */
.user-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 6px 0 26px;
}
.user-bubble {
  animation: user-enter var(--dur-enter) var(--ease-enter);
  max-width: min(82%, 620px);
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--bubble);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.user-bubble .attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.user-bubble .attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 11px;
}
.user-bubble .attach-chip .aw-svg {
  width: 12px;
  height: 12px;
}
.user-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: var(--ink-4);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.user-time .copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: var(--ink-4);
  opacity: 0;
  transition: opacity var(--timing-feedback), background-color var(--timing-feedback);
}
.user-row:hover .copy-mini,
.user-time .copy-mini:focus-visible {
  opacity: 1;
}
.user-time .copy-mini:hover {
  background: var(--hover);
  color: var(--ink-2);
}
.user-time .copy-mini .aw-svg {
  width: 12px;
  height: 12px;
}

/* ---------- 助手消息 ---------- */
.assistant {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.assistant-block {
  min-width: 0;
}
.assistant-block:empty {
  display: none;
}
.assistant-block:not(:empty) {
  margin-top: 6px;
}
.turn-flow > .assistant + .tool-call,
.turn-flow > .tool-call + .assistant,
.turn-flow > .tool-call + .tool-call {
  margin-top: 6px;
}
.assistant + .assistant {
  margin-top: 6px;
}
.assistant-text {
  font-family: var(--font-prose);
  font-size: var(--text-prose);
  line-height: var(--line-prose);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.assistant-text[data-streaming="true"] {
  --stream-shadow: transparent;
}
.assistant-text.streaming-tail::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  border-radius: 1px;
  background: var(--ink-3);
  animation: caret-blink var(--dur-fade) steps(1) infinite;
}

/* ---------- 思考折叠 ---------- */
.reasoning {
  margin: 0;
  border: 0;
  background: none;
  overflow: visible;
  contain: layout style;
}
.reasoning-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 24px;
  text-align: left;
}
.reasoning-head:hover {
  color: var(--ink-2);
  background: none;
}
.reasoning-glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
}
.reasoning-glyph .aw-svg {
  width: 14px;
  height: 14px;
}
.reasoning-spark,
.reasoning-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--timing-feedback);
}
.reasoning-chev {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.reasoning-head:hover .reasoning-spark,
.reasoning[data-open="true"] .reasoning-spark {
  opacity: 0;
}
.reasoning-head:hover .reasoning-chev,
.reasoning[data-open="true"] .reasoning-chev {
  opacity: 1;
}
.reasoning[data-open="true"] .reasoning-chev {
  transform: rotate(-90deg);
}
.reasoning-title {
  flex: none;
  font-weight: 400;
}
.reasoning-preview {
  min-width: 0;
  margin-left: 4px;
  overflow: hidden;
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reasoning-preview[hidden] {
  display: none;
}
.reasoning[data-open="true"] .reasoning-body {
  animation: fold-in var(--dur-reveal) var(--ease-out);
}
.reasoning-body {
  display: flex;
  flex-direction: column;
  padding: 0 0 0 22px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 24px;
  max-height: 400px;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reasoning-body:not([data-streaming="true"]) {
  padding-bottom: 8px;
}
.reasoning-body[data-streaming="true"] {
  max-height: 96px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    transparent 0,
    #000 22px,
    #000 calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    transparent 0,
    #000 22px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}
.reasoning-text {
  display: block;
  white-space: pre-wrap;
}
/* 段落之间只留 8px，而不是一整行 24px 的空行。 */
.reasoning-text p + p {
  margin-top: 8px;
}

/* ---------- 工具调用 ---------- */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tool-call {
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
  contain: layout style;
}
.tool-call-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 24px;
  text-align: left;
}
.tool-call-head:hover {
  color: var(--ink-2);
  background: none;
}
.tool-call-head .tool-glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: inherit;
}
.tool-call-head .tool-glyph .aw-svg {
  width: 14px;
  height: 14px;
}
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--timing-feedback);
}
.tool-chev {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--timing-feedback);
}
.tool-call-head:hover .tool-icon,
.tool-call[data-open="true"] .tool-icon {
  opacity: 0;
}
.tool-call-head:hover .tool-chev,
.tool-call[data-open="true"] .tool-chev {
  opacity: 1;
}
.tool-call[data-open="true"] .tool-chev {
  transform: rotate(-90deg);
}
.tool-call-name {
  flex: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
.tool-call-brief {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-call-brief:not(:empty) {
  margin-left: 4px;
}
.tool-call-state:empty {
  display: none;
}
.tool-call-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
}
.tool-call-state[data-state="failed"],
.tool-call-state[data-state="interrupted"] {
  color: var(--danger);
}
.tool-call-state[data-state="waiting"] {
  color: var(--warn);
}
.tool-call[data-open="true"] .tool-call-body {
  animation: fold-in var(--dur-reveal) var(--ease-out);
}
.tool-call-body {
  padding: 0 0 8px 22px;
  color: var(--ink-2);
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.6;
  max-height: 300px;
  overflow: auto;
}
.tool-call-body pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tool-call-body .tool-section + .tool-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--divider);
}
.tool-call-body .tool-label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 成果卡片 */
.turn-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--border-1);
  border-radius: var(--radius-2);
  background: var(--canvas);
  text-align: left;
  transition: border-color var(--timing-feedback), background-color var(--timing-feedback);
}
.result-card:hover {
  border-color: var(--border-2);
  background: color-mix(in srgb, var(--ink) 2%, var(--canvas));
}
.result-card .result-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--hover);
  color: var(--ink-2);
}
.result-card .result-glyph .aw-svg {
  width: 15px;
  height: 15px;
}
.result-card .result-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.result-card strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-card small {
  color: var(--ink-3);
  font-size: 11px;
}
.result-card .result-open {
  margin-left: auto;
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.result-card .result-open .aw-svg {
  width: 12px;
  height: 12px;
}

/* 错误与提示 */
.error-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border: 0.5px solid color-mix(in srgb, var(--danger) 32%, transparent);
  border-radius: var(--radius-2);
  background: color-mix(in srgb, var(--danger) 5%, var(--canvas));
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}
.error-box .aw-svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
  color: var(--danger);
}
.error-box .error-action {
  flex: none;
  margin-left: auto;
  color: var(--link);
  font-size: 12px;
}
.note-row {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 16px;
}
.note-bubble {
  max-width: min(82%, 620px);
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--bubble);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-bubble .note-flag {
  display: block;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 10px;
}

/* 回合底部动作 */
.turn-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  min-height: 26px;
  color: var(--ink-3);
}
.turn-actions .action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-1);
  color: var(--ink-3);
  font-size: 11px;
}
.turn-actions .action:hover {
  background: var(--hover);
  color: var(--ink-2);
}
.turn-actions .action .aw-svg {
  width: 13px;
  height: 13px;
}
.turn-actions .spacer {
  flex: 1;
}
.turn-actions .usage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-4);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.turn-actions .usage .aw-svg {
  width: 12px;
  height: 12px;
}

/* 跳到最新：放在 .composer-seat 里，按输入区顶边定位，叠在 ::before 渐隐之上、
   材料/工具浮层（--layer-picker）之下。居中用独立的 translate，入场动画只改
   transform，两者叠加，动画期间不会先偏右再跳回中间。 */
.latest {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 12px;
  box-shadow: var(--shadow-card);
  z-index: 1;
  animation: popover-in var(--dur-surface) var(--ease-settle);
}
.latest:hover {
  background: var(--hover);
  color: var(--ink);
}
.latest .aw-svg {
  width: 13px;
  height: 13px;
}
.latest .new-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 骨架/占位 */
.loading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
}
.loading-line .spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border-2);
  border-top-color: var(--ink-2);
  border-radius: 50%;
  animation: spin var(--dur-spin) linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* 长列表/长文的渲染隔离（Sodium 的等价目标） */
.turn,
.assistant-block,
.reasoning,
.tool-call {
  contain: layout style;
}
.turn[data-far="true"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

/* 流式内容不做 content-visibility：高度估计会随渲染变化，跟随会抖。 */
.turn[data-far="true"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

/* ---------- 轨迹视图 ---------- */
.trajectory {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px calc(var(--composer-fade-h) + 16px);
  scrollbar-gutter: stable;
}
.trajectory[hidden] {
  display: none;
}
.trajectory .transcript-inner {
  padding-bottom: 8px;
}
.trajectory-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 16px;
  border-bottom: 0.5px solid var(--divider);
  margin-bottom: 16px;
}
.trajectory-head h1 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.trajectory-head p {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
}
.trajectory-head .pill {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--hover);
  color: var(--ink-3);
  font-size: 10px;
}

.aw-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.aw-timeline .entry {
  padding: 9px 11px;
  border: 0.5px solid var(--border-1);
  border-radius: var(--radius-2);
  background: var(--canvas);
}
.aw-timeline .entry[data-run] {
  background: transparent;
  border-style: dashed;
}
.aw-timeline .entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.aw-timeline .entry-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
.aw-timeline .entry-title .aw-svg {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
}
.aw-timeline .entry-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-timeline .entry-header strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
.aw-timeline .entry-header strong .aw-svg {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
}
.aw-timeline .entry-state {
  margin-left: auto;
  flex: none;
  color: var(--ink-3);
  font-size: 10px;
}
.aw-timeline .entry-state[data-state="running"] {
  color: var(--accent);
}
.aw-timeline .entry-state[data-state="failed"],
.aw-timeline .entry-state[data-state="interrupted"] {
  color: var(--danger);
}
.aw-timeline .entry-meta {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
}
.aw-timeline .entry-note {
  margin-top: 4px;
  color: var(--danger-ink);
  font-size: 11px;
  line-height: 1.5;
}
.aw-timeline .entry-note:empty {
  display: none;
}
.aw-timeline .aw-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.aw-timeline .aw-step-actions button,
.aw-timeline .aw-steplink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-1);
  color: var(--ink-2);
  font-size: 10.5px;
}
.aw-timeline .aw-step-actions button:hover,
.aw-timeline .aw-steplink:hover {
  background: var(--hover);
  color: var(--ink);
}
.aw-timeline .aw-step-actions .aw-svg,
.aw-timeline .aw-steplink .aw-svg {
  width: 12px;
  height: 12px;
}
.aw-timeline .aw-steplink {
  margin-left: auto;
  color: var(--ink-3);
}
.aw-timeline .aw-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}
.aw-timeline .aw-note .aw-svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
  color: var(--ink-3);
}
.aw-timeline .entry[data-status="queued"] {
  opacity: 0.72;
}
.aw-timeline .entry small {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
}

/* 新内容进入：上游 120ms reveal */
.turn-flow > .assistant,
.turn-flow > .tool-call {
  animation: content-reveal var(--dur-reveal) var(--ease-out);
}
@keyframes user-enter {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fold-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes content-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.turn-actions .action {
  width: 26px;
  height: 26px;
  padding: 0;
  justify-content: center;
}
.turn-actions .action .aw-svg {
  width: 14px;
  height: 14px;
}
.turn-actions .usage {
  gap: 6px;
}
.turn-actions .turn-time {
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* 上下文压缩：一行细提示，说明这一步把上下文从多少压到了多少 */
.compaction-step {
  margin: 10px 0 2px;
}
.compaction-line {
  font-size: 0.78rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
