/* ===== P2-B 学习首页 / 看板 / 资料详情 ===== */

/* ----- 学习首页 · 页面基底 (PR4) ----- */
.kb-learn-page {
  background: var(--color-bg-page, #f5f6f8);
}
/* 标题字重统一由 .nav-header--main 主规则管理（600），此处不再覆盖 */
.kb-learn-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.kb-learn-page .kb-learn-nav-materials,
.kb-learn-page .kb-learn-nav-dash {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px !important;
  min-width: auto !important;
  padding: 0 10px !important;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-brand);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.kb-learn-page .kb-learn-nav-materials:active,
.kb-learn-page .kb-learn-nav-dash:active {
  background: var(--color-border-light);
}
.kb-learn-page .kb-learn-nav-materials.active,
.kb-learn-page .kb-learn-nav-dash.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.kb-learn-page .kb-learn-nav-materials.active:active,
.kb-learn-page .kb-learn-nav-dash.active:active {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.kb-learn-content--ready {
  animation: kb-learn-fade-in 0.35s ease;
}
@keyframes kb-learn-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kb-learn-skeleton { display: flex; flex-direction: column; gap: 12px; }
.kb-learn-skeleton-card {
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #eceff3 25%, #f5f6f8 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: kb-learn-shimmer 1.2s ease-in-out infinite;
}
.kb-learn-skeleton-card--lg { height: 220px; }
.kb-learn-skeleton-card--md { height: 160px; }
.kb-learn-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kb-learn-skeleton-grid .kb-learn-skeleton-card { height: 140px; }
@keyframes kb-learn-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.kb-learn-section-link {
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.kb-learn-section-link:active { opacity: 0.7; }

.kb-learn-catalog {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-bottom: 0;
}
.kb-learn-catalog.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-bottom: 20px;
}
.kb-learn-catalog-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 8px 0 10px;
}
.kb-learn-asset-list--flush { padding: 0; }

/* ----- 学习首页 · 成长驱动 (PR1) ----- */
.kb-learn-page .kb-learn-nav-materials {
  margin-right: 0;
}

.kb-learn-honor-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.kb-learn-honor-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.kb-learn-honor-icon { font-size: 18px; line-height: 1; }
.kb-learn-honor-num { font-size: 18px; font-weight: 700; line-height: 1.2; }
.kb-learn-honor-label { font-size: 11px; opacity: 0.88; font-weight: 500; text-align: center; }

.kb-learn-content {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.kb-learn-today-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.kb-learn-today-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-brand), var(--color-success));
  border-radius: 0 2px 2px 0;
}
.kb-learn-today-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.kb-learn-today-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
.kb-learn-today-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.kb-learn-value-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.kb-learn-value-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 8px;
}
.kb-learn-value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kb-learn-value-item {
  font-size: 12.5px;
  color: #166534;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.kb-learn-value-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-success);
}

.kb-learn-today-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.kb-learn-today-progress-track {
  flex: 1;
  height: 8px;
  background: var(--color-surface, #f1f3f5);
  border-radius: 4px;
  overflow: hidden;
}
.kb-learn-today-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.kb-learn-today-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.kb-learn-today-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-learn-today-cta:active { transform: scale(0.96); box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2); }

.kb-learn-empty-guide {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.kb-learn-empty-guide-icon { font-size: 56px; margin-bottom: 16px; }
.kb-learn-empty-guide-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}
.kb-learn-empty-guide-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.kb-learn-empty-benefits {
  text-align: left;
  display: inline-block;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 24px;
  list-style: none;
}
.kb-learn-empty-benefits li {
  padding-left: 20px;
  position: relative;
}
.kb-learn-empty-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.kb-learn-error-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.1);
  box-shadow: var(--shadow-card);
}
.kb-learn-error-icon { font-size: 48px; margin-bottom: 16px; }
.kb-learn-error-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-error);
}
.kb-learn-error-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.kb-learn-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand);
  background: var(--color-brand-light);
  border: 1.5px solid var(--color-brand);
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
}
.kb-learn-retry-btn:active {
  transform: scale(0.96);
  background: var(--color-brand);
  color: #fff;
}

.kb-learn-mine-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ----- 学习首页 · 学习地图 + 团队榜 (PR2) ----- */
.kb-learn-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 14px;
  color: var(--color-text-primary);
}
.kb-learn-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch;
}
.kb-learn-map-card-wrap {
  position: relative;
  height: 100%;
  display: flex;
}
.kb-learn-map-card-wrap .kb-learn-map-card { flex: 1; }
.kb-learn-map-rename {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.kb-learn-map-rename:active { opacity: 0.85; }
.kb-learn-map-delete {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.28);
  padding: 0;
}
.kb-learn-map-delete:active { opacity: 0.85; }
.kb-learn-folder-card-wrap--managing .kb-learn-folder-card {
  cursor: default;
}
.kb-learn-map-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-learn-map-card:active { transform: scale(0.98); opacity: 0.95; }
.kb-learn-map-card--add {
  border: 1.5px dashed var(--color-border);
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
}
.kb-learn-map-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}
.kb-learn-map-icon-emoji { font-size: 20px; line-height: 1; }
.kb-learn-map-icon--product { background: #eff6ff; }
.kb-learn-map-icon--sales { background: #f0fdf4; }
.kb-learn-map-icon--mindset { background: #fef3c7; }
.kb-learn-map-icon--team { background: #ede9fe; }
.kb-learn-map-icon--custom { background: #fce7f3; }
.kb-learn-map-icon--add {
  background: var(--color-surface, #f1f3f5);
  color: var(--color-text-tertiary);
  font-size: 22px;
  font-weight: 500;
}
.kb-learn-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kb-learn-materials-hint {
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin: -4px 0 14px;
}
.kb-learn-map-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--color-text-primary); }
.kb-learn-map-meta { font-size: 12px; color: var(--color-text-tertiary); line-height: 1.4; }
.kb-learn-map-progress {
  height: 6px;
  background: var(--color-surface, #f1f3f5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.kb-learn-map-progress-fill { height: 100%; border-radius: 4px; }
.kb-learn-map-next-strip {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: var(--color-surface, #f1f3f5);
  text-align: left;
  cursor: pointer;
}
.kb-learn-map-next-strip--slim {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
}
.kb-learn-map-next-strip-pin {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
}
.kb-learn-map-next-strip-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
  font-weight: 500;
}
.kb-learn-map-next-strip-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.kb-learn-map-next-strip-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.kb-learn-map-next-strip--slim .kb-learn-map-next-strip-title {
  -webkit-line-clamp: 1;
  font-size: 13px;
}
.kb-learn-map-next-strip-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  white-space: nowrap;
  padding-top: 2px;
}
.kb-learn-map-next-strip--slim .kb-learn-map-next-strip-action {
  padding-top: 0;
}
.kb-learn-map-page .kb-learn-map-head {
  padding: 0 16px 8px;
  background: var(--color-bg-page, #f5f6f8);
}
.kb-learn-map-head-inner {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-learn-map-head-inner--slim {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
  background: transparent;
}
.kb-learn-map-head-slim-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kb-learn-map-head-inner--slim .kb-learn-map-head-meta {
  flex-shrink: 0;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.kb-learn-map-head-inner--slim .kb-learn-map-head-progress {
  flex: 1;
  margin: 0;
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.kb-learn-map-head-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.kb-learn-map-head-meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}
.kb-learn-map-head-progress {
  height: 4px;
}
.kb-learn-map-page .kb-learn-map-search-wrap {
  background: var(--color-bg-page, #F5F6F8);
}
.kb-learn-map-content {
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--color-bg-page, #F5F6F8);
}
.kb-learn-map-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 10px;
  background: var(--color-bg-page, #F5F6F8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.kb-learn-map-toolbar::-webkit-scrollbar { display: none; }
.kb-learn-map-toolbar[hidden] { display: none !important; }
.kb-learn-map-chip {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.kb-learn-map-chip--on {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-brand);
}
.kb-learn-map-chip--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-brand);
  padding: 0 8px;
}
.kb-learn-map-toolbar-spacer { flex: 1; min-width: 4px; }
.kb-learn-map-chapter {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.kb-learn-map-chapter:first-child { margin-top: 4px; }
.kb-learn-map-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kb-learn-map-manage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-learn-map-manage-idx {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.kb-learn-map-manage-body {
  flex: 1;
  min-width: 0;
}
.kb-learn-map-manage-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--color-text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.kb-learn-map-manage-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.kb-learn-map-manage-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.kb-learn-map-manage-btn {
  height: 28px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.kb-learn-map-manage-btn--on {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-brand);
}
.kb-learn-map-manage-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 8px;
}
.kb-learn-map-manage-bar .btn {
  flex: 1;
}
.kb-learn-map-path-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  vertical-align: middle;
}
.kb-learn-map-pin-mark {
  margin-right: 4px;
  font-size: 11px;
}
.kb-learn-map-content .kb-folder-note-list {
  padding: 0;
}
.kb-learn-team-board {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.kb-learn-team-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kb-learn-team-board-title { font-size: 16px; font-weight: 700; }
.kb-learn-team-board-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kb-learn-team-my-rank { font-size: 13px; color: var(--color-brand); font-weight: 600; white-space: nowrap; }
.kb-learn-rank-list { display: flex; flex-direction: column; gap: 10px; }
.kb-learn-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-surface, #f1f3f5);
  border-radius: var(--radius-sm);
}
.kb-learn-rank-item--me {
  background: var(--color-brand-light);
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.kb-learn-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}
.kb-learn-rank-num--1 { background: #fef3c7; color: #f59e0b; }
.kb-learn-rank-num--2 { background: #f1f5f9; color: var(--color-text-secondary); }
.kb-learn-rank-num--3 { background: #fed7aa; color: #ea580c; }
.kb-learn-rank-num--me { background: var(--color-brand); color: #fff; }
.kb-learn-rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand);
  flex-shrink: 0;
}
.kb-learn-rank-info { flex: 1; min-width: 0; }
.kb-learn-rank-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.kb-learn-rank-desc { font-size: 12px; color: var(--color-text-tertiary); }
.kb-learn-rank-score { font-size: 15px; font-weight: 700; color: var(--color-brand); flex-shrink: 0; }

.kb-learn-lagging-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-error);
  margin: 16px 0 10px;
}
.kb-learn-lagging-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border-light);
  font-size: 13px;
}
.kb-learn-lagging-name { flex: 1; font-weight: 500; min-width: 0; }
.kb-learn-lagging-meta { font-size: 12px; color: var(--color-text-tertiary); flex-shrink: 0; }
.kb-learn-nudge-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  background: var(--color-brand-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.kb-learn-nudge-btn:active { transform: scale(0.96); }

.kb-learn-no-team-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.kb-learn-no-team-icon { font-size: 52px; margin-bottom: 16px; }
.kb-learn-no-team-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.kb-learn-no-team-desc { font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); margin-bottom: 22px; }
.kb-learn-invite-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-brand);
  background: transparent;
  border: 2px solid var(--color-brand);
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
}
.kb-learn-invite-btn:active { background: var(--color-brand-light); transform: scale(0.97); }

/* ----- 学习首页 · 我的徽章 (PR3) ----- */
.kb-learn-badge-section { margin-bottom: 24px; }
.kb-learn-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}
.kb-learn-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: none;
  cursor: default;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-learn-badge-item--earned {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  cursor: pointer;
}
.kb-learn-badge-item--earned:active { transform: scale(0.96); }
.kb-learn-badge-item--locked { opacity: 0.5; }
.kb-learn-badge-icon { font-size: 28px; line-height: 1; }
.kb-learn-badge-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.3;
}
.kb-learn-badge-item--earned .kb-learn-badge-name { color: #92400e; }
.kb-learn-badge-hint {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
}

@media (hover: hover) {
  .kb-learn-map-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
  .kb-learn-today-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
  .kb-learn-badge-item--earned:hover { transform: translateY(-2px); }
  .kb-learn-section-link:hover { text-decoration: underline; }
}

@media (max-width: 360px) {
  .kb-learn-honor-num { font-size: 16px; }
  .kb-learn-honor-label { font-size: 10px; }
  .kb-learn-honor-icon { font-size: 16px; }
  .kb-learn-map-grid { gap: 10px; }
  .kb-learn-map-card { padding: 14px; }
  .kb-learn-badge-grid { gap: 8px; }
  .kb-learn-badge-item { padding: 12px 4px; }
  .kb-learn-badge-name { font-size: 10px; }
  .kb-learn-today-title { font-size: 16px; }
  .kb-learn-page .kb-learn-nav-materials,
  .kb-learn-page .kb-learn-nav-dash {
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 11px;
  }
  .kb-learn-lagging-row { flex-wrap: wrap; }
  .kb-learn-nudge-btn { width: 100%; margin-top: 4px; }
}

/* ----- 学习首页 · 旧列表样式（资料 Tab） ----- */
.kb-learn-page .kb-learn-switch-bar {
  display: none;
}
.kb-learn-stats-bar { display: none; }
.kb-learn-section-head {
  padding: 16px 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.kb-learn-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 8px;
}
.kb-learn-folder-card-wrap {
  position: relative;
  height: 100%;
  display: flex;
}
.kb-learn-folder-card-wrap .kb-learn-folder-card { flex: 1; width: 100%; }
.kb-learn-folder-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.kb-learn-folder-card:active { opacity: 0.92; }
.kb-learn-folder-card--new {
  border: 1.5px dashed var(--color-border);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 104px;
}
.kb-learn-folder-icon { font-size: 32px; margin-bottom: 8px; }
.kb-learn-folder-add-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-secondary);
  background: var(--color-bg, #f3f4f6);
  margin-bottom: 8px;
}
.kb-learn-folder-map-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.kb-learn-folder-map-icon svg { width: 22px; height: 22px; display: block; }
.kb-learn-folder-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--color-text-primary); }
.kb-learn-folder-meta { font-size: 12px; color: var(--color-text-tertiary); }

.kb-learn-asset-list { padding: 0 16px 16px; }
.kb-learn-asset-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.kb-learn-asset-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.kb-learn-asset-info { flex: 1; min-width: 0; }
.kb-learn-asset-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-learn-asset-meta { font-size: 12px; color: var(--color-text-tertiary); }

/* ----- 学习看板 ----- */
/* Hero + 统计同在 .content 内，避免跨溢出容器负边距被裁切 */
.kb-dash-page .kb-dash-content {
  padding: 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.kb-dash-page .kb-dash-hero {
  background: linear-gradient(135deg, var(--color-brand), #7C3AED);
  color: #fff;
  padding: 18px 16px 34px;
  border-radius: 0;
}
.kb-dash-hero-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.kb-dash-hero-sub { font-size: 13px; opacity: 0.85; line-height: 1.5; }

.kb-dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -16px 16px 0;
  position: relative;
  z-index: 2;
}
.kb-dash-stat-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.kb-dash-stat-num { font-size: 24px; font-weight: 800; color: var(--color-brand); line-height: 1.2; }
.kb-dash-stat-num--warning { color: var(--color-warning); }
.kb-dash-stat-num--error { color: var(--color-error); }
.kb-dash-stat-label { font-size: 11px; color: var(--color-text-tertiary); margin-top: 2px; }

.kb-dash-page .kb-review-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  text-align: left;
  cursor: pointer;
}
.kb-dash-page .kb-review-entry-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
}
.kb-dash-page .kb-review-entry-badge {
  background: #92400E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.kb-dash-page .kb-review-entry-arrow {
  color: #92400E;
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}

.kb-dash-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  margin: 0 16px 8px;
  box-shadow: var(--shadow-sm);
}
.kb-dash-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.kb-dash-member-info { flex: 1; min-width: 0; }
.kb-dash-member-name { font-size: 14px; font-weight: 500; }
.kb-dash-member-progress { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.kb-dash-member-counts {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
  line-height: 1.35;
}
.kb-dash-progress-bar {
  height: 4px;
  background: var(--color-border-light);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.kb-dash-progress-fill { height: 100%; border-radius: 2px; background: var(--color-success); }
.kb-dash-member-status { font-size: 12px; flex-shrink: 0; }

.kb-dash-nudge-box {
  margin: 0 16px 16px;
  padding: 12px;
  background: #FEF3C7;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #92400E;
  line-height: 1.6;
}

/* ----- 学习看板 · 会员跟进提醒 v4 ----- */
.kb-dash-followup-section { margin: 14px 16px 16px; }
.kb-dash-followup-header {
  display: flex; align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid #FDE68A; border-bottom: none;
}
.kb-dash-followup-header-icon { font-size: 18px; margin-right: 8px; flex-shrink: 0; }
.kb-dash-followup-header-title { font-size: 14px; font-weight: 700; color: #92400E; }
.kb-dash-followup-header-hint { font-size: 11px; color: #B45309; margin-left: auto; }
.kb-dash-followup-body {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-top: none;
  border-radius: 0;
  overflow: hidden;
}
.kb-dash-followup-section--solo .kb-dash-followup-body {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.kb-dash-followup-member {
  display: flex; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
}
.kb-dash-followup-member:last-child { border-bottom: none; }
.kb-dash-followup-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.kb-dash-followup-info { flex: 1; margin-left: 10px; min-width: 0; }
.kb-dash-followup-name { font-size: 13px; font-weight: 600; }
.kb-dash-followup-status { font-size: 11px; color: #EF4444; margin-top: 1px; }
.kb-dash-followup-progress { margin-left: 10px; text-align: right; flex-shrink: 0; }
.kb-dash-followup-pct { font-size: 13px; font-weight: 700; }
.kb-dash-followup-pct-text { font-size: 10px; color: var(--color-text-tertiary); }
.kb-dash-followup-action { margin-left: 10px; flex-shrink: 0; }
.kb-dash-followup-remind-btn {
  padding: 6px 12px; border: 1px solid var(--color-brand);
  border-radius: var(--radius-sm); background: var(--color-brand-light);
  color: var(--color-brand); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.kb-dash-followup-remind-btn:active { background: var(--color-brand); color: white; }
.kb-dash-followup-remind-btn.sent {
  background: #D1FAE5; color: #059669; border-color: #10B981; cursor: default;
}
.kb-dash-followup-footer {
  padding: 10px 14px;
  display: flex; justify-content: center;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-top: 1px solid var(--color-border-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.kb-dash-followup-mass-btn {
  width: 100%; padding: 11px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)); color: white;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, .3); transition: all .2s; text-align: center;
}
.kb-dash-followup-mass-btn:active { transform: scale(.97); }
.kb-dash-followup-mass-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ----- 资料详情 ----- */
.kb-asset-detail-page .kb-asset-hero {
  background: var(--color-card);
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border-light);
}
.kb-asset-detail-page .kb-asset-hero:empty { display: none; padding: 0; border: none; }

.kb-asset-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.kb-asset-type-badge--video { background: #FEF3C7; color: #92400E; }
.kb-asset-type-badge--audio { background: var(--color-brand-light); color: var(--color-brand-dark); }
.kb-asset-type-badge--text { background: var(--color-border-light); color: var(--color-text-secondary); }
.kb-asset-type-badge--error { background: #FEE2E2; color: #991B1B; }

.kb-asset-hero-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
.kb-asset-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.kb-asset-transcribe-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px 16px 0;
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.kb-asset-transcribe-banner.is-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.kb-asset-transcribe-icon { font-size: 18px; flex-shrink: 0; }
.kb-asset-transcribe-icon--error {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-error, #ef4444);
  position: relative;
  flex-shrink: 0;
}
.kb-asset-transcribe-icon--error::before,
.kb-asset-transcribe-icon--error::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.kb-asset-transcribe-icon--error::before { transform: translate(-50%, -50%) rotate(45deg); }
.kb-asset-transcribe-icon--error::after { transform: translate(-50%, -50%) rotate(-45deg); }
.kb-asset-transcribe-title { font-weight: 600; color: var(--color-brand); }
.kb-asset-transcribe-banner.is-error .kb-asset-transcribe-title { color: var(--color-error); }
.kb-asset-transcribe-sub { font-size: 12px; color: var(--color-text-tertiary); margin-top: 2px; line-height: 1.45; }
.kb-asset-transcribe-banner .kb-detail-retry-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.kb-asset-transcribe-banner .kb-detail-retry-btn--solid {
  border: none;
  background: var(--color-error, #ef4444);
  color: #fff;
}

.kb-asset-detail-page .kb-asset-fallback-title { display: none; }
.kb-asset-detail-page.kb-asset-detail-page--legacy .kb-asset-fallback-title,
.kb-asset-detail-page.kb-asset-detail-page--legacy #kbDetailMeta { display: block; }

/* 音视频文字稿：摘要黄框 + 原文润色白卡同宽对齐 */
#page-kb-asset .kb-av-polish-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#page-kb-asset .kb-av-polish-stack .note-ai-block {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 14px 16px;
  margin: 0;
  border-radius: var(--radius-md);
}
#page-kb-asset .kb-av-polish-stack .note-ai-label {
  font-size: 12px;
  font-weight: 700;
  color: #B45309;
  margin-bottom: 6px;
}
#page-kb-asset .kb-av-polish-stack .note-ai-text {
  font-size: 15px;
  line-height: 1.75;
  color: #78350F;
}
#page-kb-asset .kb-av-polish-stack .note-ai-text p,
#page-kb-asset .kb-av-polish-stack .note-ai-text .consumer-story-p {
  margin: 0 0 14px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 400;
}
#page-kb-asset .kb-av-polish-stack .note-ai-text p:last-child,
#page-kb-asset .kb-av-polish-stack .note-ai-text .consumer-story-p:last-child {
  margin-bottom: 0;
}
#page-kb-asset .kb-av-polish-stack .note-reader-card,
#page-kb-asset .kb-av-polish-stack .note-detail-prose {
  margin: 0;
}
#page-kb-asset .kb-av-polish-stack .note-reader-card-body {
  padding: 18px 18px 20px;
  font-size: 15px;
  line-height: 26px;
  color: #374151;
}
#page-kb-asset .kb-av-polish-stack .note-reader-card-body p,
#page-kb-asset .kb-av-polish-stack .note-reader-card-body .consumer-story-p,
#page-kb-asset .kb-av-polish-stack .note-reader-card-body .note-detail-prose-p {
  margin: 0 0 18px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 400;
}
#page-kb-asset .kb-av-polish-stack .note-reader-card-body p:last-child,
#page-kb-asset .kb-av-polish-stack .note-reader-card-body .consumer-story-p:last-child,
#page-kb-asset .kb-av-polish-stack .note-reader-card-body .note-detail-prose-p:last-child {
  margin-bottom: 0;
}

.kb-asset-media-wrap {
  margin: 0 0 16px;
  background: #1A1A2E;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #fff;
}
.kb-asset-media-wrap audio {
  width: 100%;
  border-radius: var(--radius-sm);
}
.kb-asset-media-wrap video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  background: #000;
}
.kb-asset-media-wrap video.is-portrait {
  max-height: min(56vh, 480px);
}
.kb-asset-media-wrap video.is-landscape {
  max-height: 240px;
}

.kb-asset-reading-area {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-primary);
}
.kb-asset-reading-area h3,
.kb-asset-reading-label {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--color-brand);
}
.kb-asset-timestamp {
  color: var(--color-text-tertiary);
  font-size: 12px;
  margin-right: 4px;
}

.kb-asset-empty-processing {
  text-align: center;
  padding: 48px 24px;
}

.kb-asset-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 375px;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light);
  z-index: 80;
  box-sizing: border-box;
}
.kb-asset-bottom-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.kb-asset-bottom-btn--secondary {
  background: var(--color-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.kb-detail-drive-bar,
.kb-detail-learn-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  transform: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}
.kb-detail-drive-bar .kb-asset-bottom-btn,
.kb-detail-drive-bar .kb-learn-complete-btn {
  flex: 1;
  min-width: 0;
}
.kb-asset-detail-page.has-drive-and-learn .kb-detail-learn-bar {
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 21;
}
.kb-asset-detail-page.has-drive-and-learn .kb-detail-content.has-learn-bar,
.kb-asset-detail-page.has-drive-and-learn .kb-detail-content.has-drive-bar {
  padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px));
}
.kb-asset-detail-page .kb-detail-content.has-learn-bar,
.kb-asset-detail-page .kb-detail-content.has-drive-bar,
.kb-asset-detail-page .kb-detail-content.has-recommend-bar {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ----- 文档资料上传 / 详情 ----- */
.kb-upload-area--doc .kb-ua-icon--doc { font-size: 40px; }
.kb-doc-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--color-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
}
.kb-doc-preview-icon { font-size: 36px; flex-shrink: 0; }
.kb-doc-preview-meta { flex: 1; min-width: 0; }
.kb-doc-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #1f2937);
  word-break: break-all;
}
.kb-doc-preview-size { font-size: 12px; color: var(--color-text-secondary, #6b7280); margin-top: 4px; }
.kb-doc-preview-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.kb-detail-doc-block { margin: 0 16px 16px; }
.kb-detail-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
}
.kb-detail-doc-icon { font-size: 32px; flex-shrink: 0; }
.kb-detail-doc-meta { flex: 1; min-width: 0; }
.kb-detail-doc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #1f2937);
  word-break: break-all;
}
.kb-detail-doc-name.is-same-as-title { display: none; }
.kb-detail-doc-name.is-same-as-title + .kb-detail-doc-hint { margin-top: 0; }
.kb-detail-doc-hint { font-size: 12px; color: var(--color-text-secondary, #6b7280); margin-top: 4px; }
.kb-detail-doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.kb-detail-doc-action-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-primary);
}
.kb-detail-doc-action-btn:active { opacity: 0.85; }
.kb-detail-doc-frame {
  display: block;
  width: 100%;
  height: 62vh;
  min-height: 320px;
  margin-top: 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}
.kb-asset-type-badge--doc {
  background: #eff6ff;
  color: #1d4ed8;
}
.kb-sheet-opt--doc .kb-sheet-opt-bar { background: #3b82f6; }

/* 旧 Hero 区已并入 trx-draft-header，保留 badge 色供类型 chip 复用 */
.kb-asset-detail-page .kb-asset-hero:empty { display: none; }

.kb-asset-transcribe-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-brand);
  border-top-color: transparent;
  border-radius: 50%;
  animation: kb-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes kb-spin { to { transform: rotate(360deg); } }

/* ----- 资料详情 · 与笔记/转写页统一阅读壳 ----- */
#page-kb-asset.trx-draft-page,
#page-kb-asset.trx-draft-page .trx-draft-content,
#page-kb-asset.kb-asset-detail-page .kb-detail-content {
  background: #fff !important;
}
#page-kb-asset .kb-detail-nav {
  padding: 8px 12px 8px 8px;
}
#page-kb-asset .kb-detail-nav-actions {
  align-items: center;
  gap: 2px !important;
}
#page-kb-asset .kb-detail-nav-edit {
  font-size: 14px;
  padding: 0 6px;
}
#page-kb-asset .kb-detail-header {
  padding: 4px 16px 10px;
}
#page-kb-asset .kb-detail-type-chip.kb-asset-type-badge--video {
  background: #FEF3C7;
  color: #92400E;
}
#page-kb-asset .kb-detail-type-chip.kb-asset-type-badge--audio {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
}
#page-kb-asset .kb-detail-type-chip.kb-asset-type-badge--text {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}
#page-kb-asset .kb-detail-type-chip.kb-asset-type-badge--error {
  background: #FEE2E2;
  color: #991B1B;
}
#page-kb-asset .kb-detail-video-block .kb-detail-video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
#page-kb-asset .kb-detail-video-block .kb-detail-media,
#page-kb-asset .kb-detail-video-block video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: #000;
}
/* 隐藏微信/WebKit 超大中心播放方块，改用小圆形自定义按钮 */
#page-kb-asset .kb-detail-video-block video::-webkit-media-controls-overlay-play-button,
#page-kb-asset .kb-detail-video-block video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}
#page-kb-asset .kb-detail-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: opacity 0.2s, transform 0.15s;
}
#page-kb-asset .kb-detail-video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.72);
}
#page-kb-asset .kb-detail-video-play:active {
  transform: translate(-50%, -50%) scale(0.94);
}
#page-kb-asset .kb-detail-video-wrap.is-playing .kb-detail-video-play {
  opacity: 0;
  pointer-events: none;
}
#page-kb-asset .kb-detail-video-wrap.is-playing .kb-detail-video-play::after {
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.72);
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  transform: translate(-42%, -50%);
}
#page-kb-asset .kb-detail-media-card {
  margin: 0 16px 12px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--color-border-light, #e8eaed);
}
#page-kb-asset .kb-detail-media-card .kb-detail-video-block {
  margin: 0;
  padding: 0;
  border-radius: 0;
}
#page-kb-asset .kb-detail-media-card .kb-detail-media {
  margin-bottom: 0;
  border-radius: 0;
}
#page-kb-asset .kb-detail-media-card .trx-detail-media-bar {
  margin: 0;
  border-radius: 0;
}
#page-kb-asset .kb-detail-media-card .detail-media-hint {
  margin: 0;
  padding: 0 14px 10px;
}
#page-kb-asset .kb-detail-media-card .trx-detail-media-toolbar {
  border-top: 1px solid var(--color-border-light, #e8eaed);
}
#page-kb-asset .kb-detail-archive-hint {
  margin: 0 16px 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--color-border-light, #e8eaed);
}
#page-kb-asset .kb-detail-archive-hint-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #1f2937);
  margin: 0 0 8px;
}
#page-kb-asset .kb-detail-archive-hint-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6b7280);
}
#page-kb-asset .kb-detail-archive-hint .btn-primary {
  width: 100%;
}
#page-kb-asset .kb-detail-fail-hint {
  margin: 12px 16px 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border-light, #e8eaed);
}
#page-kb-asset .kb-detail-fail-hint-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #1f2937);
  margin: 0 0 8px;
}
#page-kb-asset .kb-detail-fail-hint-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary, #6b7280);
}
#page-kb-asset .kb-detail-video-block .kb-detail-media.is-portrait,
#page-kb-asset .kb-detail-video-block video.is-portrait {
  max-height: min(56vh, 480px);
}
#page-kb-asset .kb-detail-video-block .kb-detail-media.is-landscape,
#page-kb-asset .kb-detail-video-block video.is-landscape {
  max-height: 240px;
}
#page-kb-asset .kb-detail-audio-block {
  padding: 12px 14px;
  background: #f8fafc;
}
#page-kb-asset .kb-detail-native-audio {
  width: 100%;
}
#page-kb-asset #kbDetailPanelTranscript,
#page-kb-asset #kbDetailPanelPolish,
#page-kb-asset #kbDetailPanelBody,
#page-kb-asset #kbDetailPanelAi {
  background: #f8fafc;
  margin: 0;
  padding: 16px 16px 24px;
}
#page-kb-asset .kb-detail-content {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.kb-asset-detail-page .kb-detail-content.has-learn-bar,
.kb-asset-detail-page .kb-detail-content.has-drive-bar,
.kb-asset-detail-page .kb-detail-content.has-recommend-bar {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
#page-kb-asset .kb-asset-empty-processing {
  background: #f8fafc;
  margin: 0;
  padding: 48px 24px;
}
#page-kb-asset .note-detail-prose,
#page-kb-asset .note-reading-background-card,
#page-kb-asset .note-reading-point-card,
#page-kb-asset .note-reading-default-block,
#page-kb-asset .note-reader-card {
  max-width: none;
}

/* 学后感悟 */
.kb-reflection-section {
  margin: 8px 16px 24px;
  padding: 14px 14px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-reflection-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.kb-reflection-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.kb-reflection-section-action {
  border: none;
  background: transparent;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 650;
  padding: 4px 0;
}
.kb-reflection-empty {
  padding: 12px 4px 16px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}
.kb-reflection-card {
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.kb-reflection-card:first-child { border-top: none; }
.kb-reflection-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kb-reflection-author {
  font-size: 13px;
  font-weight: 650;
  color: var(--color-text-primary);
}
.kb-reflection-meta {
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}
.kb-reflection-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.kb-reflection-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.kb-reflection-mini-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
}
.kb-reflection-mini-btn--danger { color: var(--color-error, #dc2626); }
.kb-reflection-sheet-panel { max-height: 88vh; overflow: auto; }
.kb-reflection-textarea {
  width: 100%;
  min-height: 120px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.kb-reflection-vis-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.kb-reflection-vis-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  color: var(--color-text-secondary);
}
.kb-reflection-vis-chip--on {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--color-brand);
}
.kb-reflection-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.kb-reflection-actions .btn-primary,
.kb-reflection-actions .btn-outline {
  flex: 1;
}
.kb-reflection-voice-btn.is-recording {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #dc2626;
}
.kb-detail-learn-bar .kb-asset-bottom-btn,
.kb-detail-learn-bar .kb-learn-complete-btn {
  flex-shrink: 0;
}
.kb-detail-learn-count {
  flex: 0 1 auto;
  order: 0;
  margin: 0 auto 0 0;
  max-width: 36%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-detail-learn-bar {
  flex-wrap: nowrap;
}

.kb-reflection-group-title {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.kb-reflection-group-title:first-child { margin-top: 0; }

.kb-shared-reflection-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.06));
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-shared-reflection-entry:active { opacity: 0.92; transform: scale(0.99); }
.kb-shared-reflection-entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.kb-shared-reflection-entry-body { flex: 1; min-width: 0; }
.kb-shared-reflection-entry-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.kb-shared-reflection-entry-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.kb-shared-reflection-entry-arrow {
  color: var(--color-text-tertiary);
  font-size: 18px;
  flex-shrink: 0;
}

.kb-reflection-feed-page .kb-reflection-feed-hint {
  padding: 8px 16px 4px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  background: var(--color-bg-page, #f5f6f8);
}
.kb-reflection-feed-content {
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--color-bg-page, #f5f6f8);
}
.kb-reflection-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kb-reflection-feed-card {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-reflection-feed-card:active { opacity: 0.94; }
.kb-reflection-feed-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kb-reflection-feed-asset {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--color-brand);
  line-height: 1.35;
}
#btnKbReflectionFeedFilter.is-on {
  color: var(--color-brand);
  font-weight: 700;
}
.kb-reflection-featured-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.kb-reflection-card--featured,
.kb-reflection-feed-card--featured {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-reflection-leader-reply {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.kb-reflection-leader-reply--compact {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.kb-reflection-leader-reply-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: var(--color-brand);
}

/* —— 共享学习笔记（学习首页预览板，对齐团队榜） —— */
.kb-shared-learn-board {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.kb-shared-learn-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.kb-shared-learn-board-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.kb-shared-learn-board-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.kb-shared-learn-board-count {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  background: var(--color-brand-light);
  white-space: nowrap;
}
.kb-shared-learn-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm, 10px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(37, 99, 235, 0.07));
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.kb-shared-learn-empty:active { opacity: 0.92; transform: scale(0.99); }
.kb-shared-learn-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.kb-shared-learn-empty-body { flex: 1; min-width: 0; }
.kb-shared-learn-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.kb-shared-learn-empty-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}
.kb-shared-learn-empty-arrow {
  color: var(--color-text-tertiary);
  font-size: 18px;
  flex-shrink: 0;
}
.kb-shared-learn-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kb-shared-learn-preview-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm, 10px);
  background: var(--color-surface, #f1f3f5);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.kb-shared-learn-preview-card:active { opacity: 0.94; }
.kb-shared-learn-preview-card--mine {
  background: var(--color-brand-light);
  border: 1px solid rgba(59, 130, 246, 0.12);
}
.kb-shared-learn-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--link {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--photo {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--audio {
  background: linear-gradient(135deg, #34d399, #059669);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--video {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--text {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.kb-shared-learn-preview-avatar.kb-shared-learn-type--note {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.kb-shared-learn-preview-main {
  flex: 1;
  min-width: 0;
}
.kb-shared-learn-preview-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.kb-shared-learn-preview-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-shared-learn-preview-type {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.kb-shared-learn-preview-type.kb-shared-learn-type--link {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.14);
}
.kb-shared-learn-preview-type.kb-shared-learn-type--photo {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.14);
}
.kb-shared-learn-preview-type.kb-shared-learn-type--audio {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}
.kb-shared-learn-preview-type.kb-shared-learn-type--video {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}
.kb-shared-learn-preview-type.kb-shared-learn-type--text {
  color: var(--color-brand);
  background: var(--color-brand-light);
}
.kb-shared-learn-preview-type.kb-shared-learn-type--note {
  color: #475569;
  background: rgba(100, 116, 139, 0.14);
}
.kb-shared-learn-preview-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-shared-learn-preview-body {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-shared-learn-more,
.kb-shared-learn-foot-hint {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm, 10px);
  background: transparent;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
}
.kb-shared-learn-foot-hint {
  color: var(--color-text-secondary);
  font-weight: 500;
  background: var(--color-surface, #f1f3f5);
}
.kb-shared-learn-more:active,
.kb-shared-learn-foot-hint:active { opacity: 0.88; }
.kb-shared-learn-hint {
  padding: 8px 16px 4px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  background: var(--color-bg-page, #f5f6f8);
}
.kb-shared-learn-content,
.kb-shared-learn-detail-content {
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--color-bg-page, #f5f6f8);
}
.kb-shared-learn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kb-shared-learn-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.kb-shared-learn-card-main {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  background: transparent;
  text-align: left;
}
.kb-shared-learn-card-main:active { opacity: 0.94; }
.kb-shared-learn-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.35;
}
.kb-shared-learn-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.kb-shared-learn-card-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-shared-learn-card-unshare {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.kb-shared-learn-detail-head {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kb-shared-learn-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.35;
}
.kb-shared-learn-detail-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.kb-shared-learn-detail-body {
  padding: 4px 0 16px;
}
.kb-shared-learn-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
.kb-shared-learn-detail-actions .btn-outline,
.kb-shared-learn-detail-actions .btn-primary {
  width: 100%;
}
.kb-shared-learn-danger {
  color: #b45309 !important;
  border-color: rgba(180, 83, 9, 0.35) !important;
}

