/* ===== 速记首页 ===== */
#page-shorthand.active {
  padding-bottom: 0 !important;
}
#page-shorthand.active > .content.shorthand-page {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.shorthand-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 6px 14px 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  touch-action: manipulation;
  gap: var(--card-gap, 10px);
}
.shorthand-interactive {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  pointer-events: auto;
}
/* 悟空问候行 → 12-global-components.css（C-1） */
/* v7：中央蓝话筒已移到右下 fab-mic，DOM 保留给 live-recording 状态机，视觉隐藏 */
.shorthand-hero,
.shorthand-hero * {
  display: none !important;
}
.shorthand-hero {
  flex-shrink: 0;
  width: 100%;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 31;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
.shorthand-mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.shorthand-mic-outer {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.shorthand-pulse {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.35);
  opacity: 0;
  animation: shorthand-pulse-ring 2.8s ease-out infinite;
  pointer-events: none;
}
.shorthand-pulse:nth-child(2) { display: none; }
@keyframes shorthand-pulse-ring {
  0% { transform: scale(0.88); opacity: 0.16; }
  100% { transform: scale(1.38); opacity: 0; }
}
.shorthand-mic-wrap.is-recording .shorthand-pulse,
.shorthand-mic-wrap.is-busy .shorthand-pulse {
  display: none;
}
.shorthand-mic-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.28),
    0 0 0 8px rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}
.shorthand-mic-btn:active { transform: scale(0.93); }
.shorthand-mic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.shorthand-mic-icon svg {
  width: 36px;
  height: 36px;
}
.shorthand-mic-icon.is-recording-control {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.shorthand-hint-main {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary, #9CA3AF);
}
.shorthand-quick-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 4px 0 10px;
  width: 100%;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}
.shorthand-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: none;
  border-radius: var(--card-radius, 14px);
  background: var(--bg-card, var(--color-card));
  box-shadow: var(--card-shadow, var(--shadow-card));
  font-size: 11px;
  color: var(--text-s, var(--color-text-secondary));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: transform 0.18s ease;
}
.shorthand-quick-action:active {
  transform: scale(0.96);
}
.shorthand-quick-action-icon-wrap {
  display: none;
}
.shorthand-quick-action-icon {
  font-size: 20px;
  line-height: 1;
}
.shorthand-quick-action-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-s, var(--color-text-secondary));
}
.shorthand-feed-empty-state {
  min-height: 0;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.shorthand-feed-empty-state .empty-state-fig {
  width: 64px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-cream, #FFEFC2), rgba(255, 239, 194, 0.2));
  border: 1px solid rgba(255, 184, 0, 0.1);
}
.shorthand-feed-empty-state .empty-state-fig video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
  display: block;
  pointer-events: none;
  animation: wukong-greeting-idle 4s ease-in-out infinite;
}
.shorthand-feed-empty-state .empty-state-msg,
.shorthand-feed-empty-state .empty-state-title,
.shorthand-feed-empty-state .empty-state-desc {
  font-size: var(--size-sm, 13px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-s, var(--color-text-secondary));
  padding: 0;
  margin: 0;
}
.shorthand-feed-empty-state .empty-state-btn,
.shorthand-feed-empty-state .empty-state-mic {
  margin-top: 4px;
  padding: 10px 24px;
  width: auto;
  height: auto;
  min-height: 0;
  border: none;
  border-radius: var(--card-radius, 14px);
  background: var(--c-blue, var(--color-brand, #3B82F6));
  color: #fff;
  font-size: var(--size-sm, 13px);
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shorthand-feed-empty-state .empty-state-btn:active,
.shorthand-feed-empty-state .empty-state-mic:active { transform: scale(0.96); }
.shorthand-feed-empty-state .empty-state-mic svg { display: none; }
/* 录音中不禁用下方区域透明度（避免整页发雾、误挡点击） */
#page-shorthand.is-recording .shorthand-quick-actions {
  opacity: 1;
}
.shorthand-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  position: relative;
  z-index: 1;
  gap: 0;
}
.shorthand-feed-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 0;
  font-size: var(--size-sm, 13px);
  font-weight: 600;
  color: var(--text-s, var(--color-text-secondary));
  letter-spacing: 0.02em;
}
.shorthand-feed-head__title {
  font-size: var(--size-sm, 13px);
  font-weight: 600;
  color: var(--text-s, var(--color-text-secondary));
  letter-spacing: 0.02em;
}
.shorthand-feed-head button,
.shorthand-feed-head__more {
  border: none;
  background: none;
  color: var(--c-blue, var(--color-brand, #3B82F6));
  font-size: var(--size-xs, 12px);
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.shorthand-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px;
  padding: 8px 14px calc(var(--tab-height, 72px) + env(safe-area-inset-bottom, 0px) + 16px);
  background: var(--bg-page, var(--color-bg-page, #f5f3f0));
}
.shorthand-feed-list { display: flex; flex-direction: column; gap: var(--card-gap, 10px); }

/* 速记 Feed 卡片：对齐 v7 note-card（左色条 · 无图标缩进 · 标题/摘要/元信息 · ⋮） */
#page-shorthand .note-list-memory-card-shell {
  position: relative;
  background: var(--bg-card, #fff);
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  overflow: hidden;
}
#page-shorthand .note-list-memory-card-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--c-accent, #4A9E8E);
  z-index: 1;
  pointer-events: none;
}
#page-shorthand .note-list-memory-card[data-kind="recording"] .note-list-memory-card-shell::before {
  background: var(--c-blue, #3B82F6);
}
#page-shorthand .note-list-memory-card[data-kind="link"] .note-list-memory-card-shell::before {
  background: var(--c-sealed, #B0AEA5);
}
#page-shorthand .note-list-memory-card[data-kind="video"] .note-list-memory-card-shell::before,
#page-shorthand .note-list-memory-card[data-kind="image"] .note-list-memory-card-shell::before {
  background: var(--c-goal, #E8813B);
}
#page-shorthand .note-list-memory-card-shell > .memory-card,
#page-shorthand .shorthand-feed-list > .memory-card {
  border-radius: 0;
  box-shadow: none;
  padding: 16px 18px 4px 20px;
  position: relative;
  overflow: visible;
  background: transparent;
}
#page-shorthand .note-list-memory-card-shell > .memory-card::before,
#page-shorthand .shorthand-feed-list > .memory-card::before {
  display: none !important;
  content: none !important;
}
#page-shorthand .memory-card-icon,
#page-shorthand .memory-card-source-box {
  display: none !important;
}
#page-shorthand .memory-card-head-row {
  margin-bottom: 3px !important;
  gap: 0;
}
#page-shorthand .memory-card-title {
  font-weight: 500 !important;
  font-size: var(--size-body, 15px) !important;
  line-height: 1.72 !important;
  letter-spacing: 0.01em;
  color: var(--text-p, #2c2c2c) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#page-shorthand .note-list-memory-card[data-kind="recording"] .memory-card-title {
  font-weight: 600 !important;
}
#page-shorthand .memory-card-preview-box {
  display: block !important;
  margin: 0 0 6px 0 !important;
  padding: 0 28px 0 0 !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}
#page-shorthand .memory-card-preview-inner,
#page-shorthand .memory-card-preview {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-s, #B0AEA5) !important;
  line-height: 1.6 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 !important;
}
#page-shorthand .memory-card-preview-box--image {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
}
#page-shorthand .memory-card-thumb {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-page, #f5f3f0);
}
#page-shorthand .memory-card-thumb--kind {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
#page-shorthand .memory-card-thumb--video {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: #fff;
  font-size: 16px;
}
#page-shorthand .note-card-duration,
#page-shorthand .memory-card-duration {
  color: var(--c-blue, #3B82F6) !important;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
#page-shorthand .memory-card-foot.note-list-card-foot,
#page-shorthand .note-list-card-foot {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 36px 14px 20px !important;
  margin: 0 !important;
  border: none;
  background: transparent;
  min-height: 24px;
}
#page-shorthand .note-list-card-foot-meta {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-t, #c8c6c0) !important;
  flex-wrap: nowrap;
  overflow: hidden;
}
#page-shorthand .note-list-card-foot-meta .memory-card-tag,
#page-shorthand .note-list-card-foot-meta .note-list-card-tag {
  padding: 2px 8px;
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
#page-shorthand .note-list-card-foot-actions {
  position: static;
  margin: 0 !important;
  gap: 6px;
}
#page-shorthand .note-list-memory-card-more {
  position: absolute !important;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  padding: 4px 6px !important;
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--c-t, #c8c6c0) !important;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
#page-shorthand .note-list-memory-card-more-icon { display: none !important; }
#page-shorthand .note-list-memory-card-more::before {
  content: "⋮";
  font-size: 16px;
  line-height: 1;
  color: inherit;
}
#page-shorthand .note-list-memory-card-more:active {
  color: var(--text-s, #B0AEA5) !important;
  background: var(--bg-page, #f5f3f0) !important;
}
#page-shorthand .note-list-card-foot-append .memory-card-append-count-icon { display: none; }
#page-shorthand .note-list-card-foot-append .memory-card-append-count,
#page-shorthand .note-list-card-foot-append .memory-card-append-count-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-t, #c8c6c0);
}
#page-shorthand .shorthand-feed-list {
  gap: 8px;
}
#page-shorthand .note-list-memory-card {
  animation: shorthand-card-in 0.4s ease-out both;
}
#page-shorthand .note-list-memory-card:nth-child(1) { animation-delay: 0.05s; }
#page-shorthand .note-list-memory-card:nth-child(2) { animation-delay: 0.1s; }
#page-shorthand .note-list-memory-card:nth-child(3) { animation-delay: 0.15s; }
#page-shorthand .note-list-memory-card:nth-child(4) { animation-delay: 0.2s; }
#page-shorthand .note-list-memory-card:nth-child(5) { animation-delay: 0.25s; }
@keyframes shorthand-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #page-shorthand .note-list-memory-card { animation: none; }
  .shorthand-feed-empty-state .empty-state-fig video {
    animation: none;
  }
}

.memory-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 0;
}
@media (hover: hover) {
  .memory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}
.memory-card:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-card-press);
}
.memory-card-head-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.memory-card-icon,
.memory-card-body,
.memory-card-head,
.memory-card-head-main,
.memory-card-title,
.memory-card-preview,
.memory-card-preview-box,
.memory-card-source-box,
.memory-card-foot:not(.note-list-card-foot),
.memory-card-arrow {
  pointer-events: none;
}
.memory-card-thumb,
.memory-card-preview-text-wrap {
  pointer-events: auto;
}
.memory-card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.memory-card-icon--recording { background: #EDE9FE; }
.memory-card-icon--video { background: #FEF3C7; }
.memory-card-icon--note { background: #D1FAE5; }
.memory-card-icon--link { background: #DBEAFE; }
.memory-card-icon--image { background: #FCE7F3; }
.memory-card-body { flex: 1; min-width: 0; }
.memory-card-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-list-box .memory-card-title {
  font-size: 17px;
}
.memory-card-preview-box {
  margin-left: var(--memory-card-indent, 40px);
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-tertiary);
  overflow: visible;
}
.note-list-box .memory-card-preview-box {
  overflow: visible;
}
.memory-card-preview-box--image {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.memory-card-preview {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.memory-card-preview--image {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.memory-card-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-bg-secondary, #f3f4f6);
  cursor: zoom-in;
}
.memory-card-preview-text-wrap {
  flex: 1;
  min-width: 0;
}
.memory-card-preview-inner {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-tertiary);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.memory-card-preview-text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.memory-card--link {
  flex-direction: column;
  align-items: stretch;
}
.memory-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-tertiary, #9CA3AF);
  margin-top: 2px;
}
.memory-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-tertiary, #9CA3AF);
  flex-shrink: 0;
}
.memory-card-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}
.memory-card-tag--green { background: #D1FAE5; color: #047857; }
.memory-card-tag--blue { background: #DBEAFE; color: #1D4ED8; }
.memory-card-tag--orange { background: #FEE2E2; color: #DC2626; }
.memory-card-tag--gray { background: #F3F4F6; color: #6B7280; }
.memory-card-tag--red { background: #FEE2E2; color: #DC2626; }
.memory-card-tag:active { transform: scale(0.94); }
.memory-card-source-box {
  margin-left: var(--memory-card-indent, 40px);
  margin-bottom: 8px;
}
.memory-card-link-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-surface, #F1F3F5);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}
.memory-card-link-source-mark {
  flex-shrink: 0;
  min-width: 32px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.memory-card-link-source-mark-text {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-align: center;
  word-break: keep-all;
}
.memory-card-link-source-mark.memory-card-link-source-badge--toutiao {
  background: #F04142;
}
.memory-card-link-source-mark.memory-card-link-source-badge--toutiao .memory-card-link-source-mark-text {
  color: #fff;
}
.memory-card-link-source-mark.memory-card-link-source-badge--weixin { background: #07C160; }
.memory-card-link-source-mark.memory-card-link-source-badge--getnote { background: #6366F1; }
.memory-card-link-source-mark.memory-card-link-source-badge--web { background: #9CA3AF; }
.memory-card-link-source-badge--weixin .memory-card-link-source-mark-text,
.memory-card-link-source-badge--getnote .memory-card-link-source-mark-text,
.memory-card-link-source-badge--web .memory-card-link-source-mark-text {
  color: #fff;
}
.memory-card-link-source-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #4B5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.memory-card--link .memory-card-foot {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}
.memory-card-link-source + .memory-card-foot,
.memory-card-link-source + .note-list-card-foot {
  margin-top: 0;
}
.memory-card-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.memory-card-foot-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.memory-card-append-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-brand);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}
.memory-card-append-count-icon {
  font-size: 13px;
  opacity: 0.75;
}
.memory-card-append-count-num {
  font-weight: 500;
}
.memory-card-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary, #9CA3AF);
  font-size: 16px;
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.shorthand-feed-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- 速记页骨架（对齐 v7：双行 shimmer，无图标）---- */
.shorthand-feed-skeleton { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.shorthand-feed-skeleton-card {
  display: flex;
  flex-direction: column;
  padding: 16px var(--card-padding, 18px);
  border-radius: var(--card-radius, 14px);
  background: var(--bg-card, var(--color-card, #fff));
  box-shadow: var(--card-shadow, var(--shadow-card));
}
.shorthand-feed-skeleton-row { display: none; }
.shorthand-feed-skeleton-icon { display: none; }
.shorthand-feed-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: var(--bg-page, #f5f3f0);
  animation: shorthand-skeleton-shimmer 1.5s ease-in-out infinite;
  margin-bottom: 10px;
  width: 100%;
}
.shorthand-feed-skeleton-line:last-child { margin-bottom: 0; width: 60%; }
.shorthand-feed-skeleton-line--short { width: 40%; margin-bottom: 0; }
.shorthand-feed-skeleton-line--title,
.shorthand-feed-skeleton-line--preview { width: 100%; }
@keyframes shorthand-skeleton-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.shorthand-retry-btn {
  border: none; background: none; color: var(--color-brand);
  font-size: 13px; cursor: pointer; padding: 4px 8px;
}

#page-shorthand.is-recording .shorthand-feed {
  opacity: 1;
  pointer-events: auto;
}
#page-shorthand.is-busy .shorthand-feed {
  opacity: 0.65;
  /* 上传 busy 时仍可点「最近笔记」卡片，禁止 pointer-events:none 整区锁死 */
  pointer-events: auto;
}
#page-shorthand .content {
  overflow: hidden;
}
.shorthand-long-link {
  display: block; width: 100%; margin-top: 28px; padding: 10px 0; border: none; background: none;
  color: var(--color-text-secondary); font-size: 13px; cursor: pointer; text-align: center;
}
.shorthand-long-link:active { opacity: 0.7; }
.shorthand-scene-label {
  width: 100%; font-size: 13px; font-weight: 600; color: var(--color-text-secondary);
  margin: 32px 0 10px; padding: 0 4px;
}
.shorthand-scenes {
  width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.shorthand-scene {
  padding: 8px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--color-border); background: var(--color-card);
  color: var(--color-text-secondary); cursor: pointer;
}
.shorthand-scene.active {
  background: var(--color-brand-light); border-color: var(--color-brand); color: var(--color-brand);
}
.shorthand-scene-link { border-style: dashed; }

.shorthand-wave {
  display: none; gap: 6px; height: 36px; align-items: flex-end; margin: -4px 0 8px;
}
.shorthand-mic-wrap.is-recording .shorthand-wave {
  display: flex;
}
.shorthand-wave span {
  width: 5px; background: var(--color-brand, #2563EB); border-radius: 3px; height: 10px;
}
.shorthand-mic-wrap.is-recording .shorthand-wave.active span {
  animation: shorthand-wave 0.8s ease-in-out infinite;
}
.shorthand-mic-wrap.is-recording .shorthand-wave.active span:nth-child(2) { animation-delay: 0.1s; }
.shorthand-mic-wrap.is-recording .shorthand-wave.active span:nth-child(3) { animation-delay: 0.2s; }
.shorthand-mic-wrap.is-recording .shorthand-wave.active span:nth-child(4) { animation-delay: 0.3s; }
.shorthand-mic-wrap.is-recording .shorthand-wave.active span:nth-child(5) { animation-delay: 0.4s; }
@keyframes shorthand-wave {
  0%, 100% { height: 10px; opacity: 0.55; }
  50% { height: 28px; opacity: 1; }
}
.shorthand-timer {
  display: none; font-size: 28px; font-weight: 300; letter-spacing: 2px;
  font-variant-numeric: tabular-nums; color: var(--color-text-primary); margin: 4px 0 0;
}
.shorthand-mic-btn.recording {
  animation: shorthand-rec-pulse 2.4s ease-in-out infinite;
}
@keyframes shorthand-rec-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.32), 0 0 0 8px rgba(59, 130, 246, 0.08);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.42), 0 0 0 10px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
  }
}
.shorthand-mic-wrap.is-busy .shorthand-mic-btn {
  opacity: 0.65; pointer-events: none;
}
/* 录音中必须可点停止；is-busy 仅在上传阶段生效 */
#page-shorthand.is-recording:not(.is-busy) .shorthand-mic-btn,
.shorthand-mic-wrap.is-recording:not(.is-busy) .shorthand-mic-btn {
  opacity: 1;
  pointer-events: auto;
}
#page-shorthand.is-recording .shorthand-scenes-lock,
#page-shorthand.is-recording .shorthand-scene-label {
  opacity: 0.45; pointer-events: none;
}

/* 全局悬浮录音条（离开速记页时显示） */
.shorthand-rec-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 520;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-card, #fff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-p, #2c2c2c);
  box-sizing: border-box;
  touch-action: manipulation;
  min-height: 48px;
  max-width: 420px;
  margin: 0 auto;
  width: calc(100% - 28px);
}
.shorthand-rec-bar.is-visible {
  display: flex;
}
/* D3：双 FAB 上方留出 🎤+● 空间 */
body.dual-fab-visible .shorthand-rec-bar.is-visible {
  bottom: calc(16px + 52px + 46px + 24px + env(safe-area-inset-bottom, 0px));
  right: 78px;
  left: 14px;
  width: auto;
  max-width: none;
}
body.shorthand-rec-tab-visible .shorthand-rec-bar {
  bottom: calc(var(--tab-bar-height, 56px) + env(safe-area-inset-bottom, 0px) + 6px);
}
body.dual-fab-visible #page-shorthand.is-recording .shorthand-rec-controls {
  display: none !important;
}
.shorthand-rec-bar-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: 22px;
}
.shorthand-rec-bar-wave span {
  width: 3px;
  background: var(--c-red, #E84C3D);
  border-radius: 2px;
  animation: shorthand-rec-wave 0.8s ease-in-out infinite;
  transform-origin: center bottom;
}
.shorthand-rec-bar-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.shorthand-rec-bar-wave span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.shorthand-rec-bar-wave span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.shorthand-rec-bar-wave span:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.shorthand-rec-bar-wave span:nth-child(5) { height: 14px; animation-delay: 0.6s; }
.shorthand-rec-bar.is-paused .shorthand-rec-bar-wave span {
  animation: none;
  opacity: 0.45;
  transform: scaleY(0.5);
}
@keyframes shorthand-rec-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.shorthand-rec-bar-btn {
  flex-shrink: 0;
  border: none;
  background: var(--bg-page, #f5f3f0);
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
}
.shorthand-rec-bar-cancel {
  color: var(--c-red, #E84C3D);
  background: rgba(232, 76, 61, 0.08);
}
.shorthand-rec-bar-done {
  font-weight: 700;
  background: var(--c-blue, #3B82F6);
  color: #fff;
}
.shorthand-rec-bar-pause {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-page, #f5f3f0);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shorthand-rec-bar-pause.is-resume {
  font-size: 11px;
}
.shorthand-rec-bar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: none;
  background: transparent;
  color: inherit;
  padding: 4px 2px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.shorthand-rec-bar-dot {
  display: none;
}
.shorthand-rec-bar-timer {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--c-red, #E84C3D);
  min-width: 42px;
}
.shorthand-rec-bar-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-s, #B0AEA5);
  white-space: nowrap;
}
.shorthand-rec-bar-btn:active,
.shorthand-rec-bar-center:active {
  opacity: 0.75;
}

/* 速记页录音控制：取消 / 完成 */
.shorthand-rec-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.shorthand-rec-controls.is-visible {
  display: flex;
}
.shorthand-rec-ctrl {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.shorthand-rec-ctrl--cancel {
  color: var(--color-text-secondary, #64748B);
}
.shorthand-rec-ctrl--done {
  color: var(--color-text-primary, #0F172A);
  font-weight: 700;
}
.shorthand-mic-wrap.is-paused .shorthand-wave {
  opacity: 0.35;
}
.shorthand-mic-wrap.is-paused .shorthand-pulse {
  display: none;
}

.mic-primer-sheet {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center; padding: 24px;
  pointer-events: none;
}
.mic-primer-sheet.open { display: flex; pointer-events: auto; }
.mic-primer-mask {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45);
}
.mic-primer-panel {
  position: relative; width: 100%; max-width: 320px; background: var(--color-card);
  border-radius: 16px; padding: 24px 20px 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.mic-primer-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--color-brand-light); color: var(--color-brand);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.mic-primer-title {
  margin: 0 0 8px; text-align: center; font-size: 17px; font-weight: 700;
  color: var(--color-text-primary);
}
.mic-primer-desc {
  margin: 0 0 20px; text-align: center; font-size: 14px; line-height: 1.6;
  color: var(--color-text-secondary);
}
.mic-primer-actions { display: flex; gap: 10px; }
.mic-primer-actions .btn { flex: 1; margin: 0; }
.mic-primer-actions .btn-primary { flex: 1.2; }
