
/* ---------- 首页快捷胶囊 ---------- */
.lg-ainote-entry {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 2px 0 18px;
}
.lg-ainote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px 0 12px;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.lg-ainote-pill:hover {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.16);
  color: rgba(0, 0, 0, 0.82);
}
.lg-ainote-pill__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  color: rgba(0, 0, 0, 0.38);
  flex: 0 0 auto;
  transition: color .15s;
}
.lg-ainote-pill:hover .lg-ainote-pill__ic { color: rgba(0, 0, 0, 0.6); }
.lg-ainote-pill__ic svg { width: 16px; height: 16px; }
/* 录音进行中：胶囊置灰，避免重复触发 */
.lg-ainote-pill.is-recording { opacity: .45; pointer-events: none; }

/* ---------- 录音胶囊：右上角浮层（离开新任务页时展示） ---------- */
/* 右上角浅色磨砂状态胶囊：呼吸点 + 计时 + 暂停 / 结束控件 */
.lg-di {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
  font-family: "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transform-origin: right center;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .26s ease;
  user-select: none;
}
.lg-di.is-in { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- AI 速记 chip 就地录音态（大小不变，视觉与右上角浮层一致） ---------- */
.lg-ainote-chip.lg-ainote-chip--rec { gap: 8px; cursor: default; }
.lg-ainote-chip.lg-ainote-chip--rec .lg-di__time { color: rgba(0, 0, 0, 0.72); }
.lg-ainote-chip.lg-ainote-chip--rec.is-paused .lg-di__dot {
  animation: none; background: rgba(0, 0, 0, 0.32); box-shadow: none;
}
.lg-ainote-chip.lg-ainote-chip--rec.is-paused .lg-di__label { display: inline; }

.lg-di__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e5736e;
  flex: 0 0 auto;
  animation: lgDiPulse 1.8s ease-out infinite;
}
@keyframes lgDiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 115, 110, 0.4); }
  70%  { box-shadow: 0 0 0 5px rgba(229, 115, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 115, 110, 0); }
}
.lg-di__time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 15px; font-weight: 500; letter-spacing: .3px;
  color: rgba(0, 0, 0, 0.72);
  flex: 0 0 auto;
}
.lg-di__label {
  display: none;
  font-size: 12px; color: rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}
/* 控制区常驻展开（不再随 hover 收起 / 展开） */
.lg-di__btns {
  display: flex; align-items: center; gap: 6px;
  margin-left: 2px;
}
.lg-di__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.55);
  transition: background .15s, color .15s, transform .1s;
  flex: 0 0 auto;
}
.lg-di__btn:hover { background: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.82); }
.lg-di__btn:active { transform: scale(.9); }
.lg-di__btn svg { width: 15px; height: 15px; }
.lg-di__btn--stop { color: #d9736e; }
.lg-di__btn--stop:hover { background: rgba(217, 115, 110, 0.16); color: #c85f5a; }

/* 暂停态：呼吸点转中性灰、显示「已暂停」 */
.lg-di.is-paused .lg-di__dot { animation: none; background: rgba(0, 0, 0, 0.32); box-shadow: none; }
.lg-di.is-paused .lg-di__label { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .lg-di__dot { animation: none !important; }
}
