:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #64748b;
  --muted-fg: #94a3b8;
  --foreground: #0f172a;
  --primary: #6366f1;
  --primary-soft: #eef2ff;
  --accent: #f1f5f9;
  --mastered: #10b981;
  --unfamiliar: #f59e0b;
  --wrong: #ef4444;
  --none: #e2e8f0;
  --year-head: #49566c;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --radius: 12px;
}

* { box-sizing: border-box; }

/* 确保 hidden 属性始终生效（防止被 display:flex 等 author 样式覆盖） */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 顶部导航 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { width: 20px; height: 20px; color: var(--primary); }
.brand-title { font-weight: 700; font-size: 15px; }
.brand-sub {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.subject-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.subject-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.subject-btn:hover { color: var(--foreground); }
.subject-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}
.subject-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.tabs { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { background: var(--accent); color: var(--foreground); }
.tab.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tab-icon { width: 16px; height: 16px; }
.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wrong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-right { margin-left: auto; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.icon-btn:hover { background: var(--accent); color: var(--foreground); }

/* 窄屏收紧顶部导航：多出的「数一 / 数二」切换不能把标签挤出去 */
@media (max-width: 1200px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .brand-sub { display: none; }
  .subject-btn { padding: 4px 9px; }
  .tab { padding: 6px 10px; font-size: 13px; }
  .icon-btn { padding: 6px 9px; font-size: 12px; }
}
@media (max-width: 900px) {
  .brand-title { font-size: 14px; }
  .tab { padding: 6px 8px; gap: 4px; }
  .tab-icon { display: none; }
}

.mini-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
}
.mini-btn:hover { background: var(--primary-soft); }

/* 轻提示 toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  background: #1e293b;
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

main { padding: 12px 16px; max-width: 1500px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title { font-weight: 700; font-size: 13px; }

/* ---------- 图例 ---------- */
.legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-mastered { background: var(--mastered); }
.dot-unfamiliar { background: var(--unfamiliar); }
.dot-wrong { background: var(--wrong); }
.dot-none { background: var(--none); }

/* ---------- 矩阵布局：考点目录 + 全景矩阵 在上，知识点掌握度分析置于底部 ---------- */
.matrix-layout {
  --chart-h: clamp(210px, 24vh, 250px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 10px var(--chart-h);
  grid-template-areas:
    "dir matrix"
    "resizer resizer"
    "chart chart";
  gap: 4px 10px;
  height: calc(100vh - 80px);
  min-height: 520px;
}
.directory-card { grid-area: dir; }
.matrix-card { grid-area: matrix; }
.chart-resizer { grid-area: resizer; }
.chart-card { grid-area: chart; min-height: 0; }

/* 图表上方的拖拽调节条：向上拖大图表、向下拖小图表 */
.chart-resizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 10px;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: var(--muted-fg);
  border-radius: 999px;
}
.chart-resizer-grip {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s, width .15s;
}
.chart-resizer-hint {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  opacity: .55;
  transition: opacity .15s, color .15s;
}
.chart-resizer:hover .chart-resizer-grip,
.chart-resizer:focus-visible .chart-resizer-grip { background: var(--primary); width: 72px; }
.chart-resizer:hover .chart-resizer-hint,
.chart-resizer:focus-visible .chart-resizer-hint { opacity: 1; color: var(--primary); }
.chart-resizer:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.matrix-layout.is-resizing,
.matrix-layout.is-resizing * {
  cursor: row-resize !important;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 1100px) {
  .matrix-layout { grid-template-columns: 210px minmax(0, 1fr); }
  /* 窄屏柱子变密，章节名字号略缩，避免旋转标签互相挤压 */
  .chart-xlabel > span { font-size: 9px; }
}
@media (max-width: 760px) {
  .topbar { gap: 4px; padding: 0 8px; }
  .brand-title { display: none; }
  .subject-btn { padding: 4px 7px; font-size: 11px; }
  .tab { padding: 6px 6px; font-size: 12px; }
  .icon-btn { padding: 5px 7px; font-size: 11px; }
  .matrix-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "dir"
      "matrix"
      "chart";
    height: auto;
  }
  .chart-resizer { display: none; }

  .directory-card { max-height: 340px; }
  .chart-card { height: 260px; min-height: 0; }
  .chart-card .chart-xlabels { flex-basis: 80px; height: 80px; }
  /* 单列堆叠时卡片高度由内容决定，单元格恢复固定高度，避免被压到最小行高 */
  .year-cells .cell, .year-cells .cell-spacer { flex: 0 0 22px; min-height: 0; }
}

/* ---------- 考点目录侧边栏 ---------- */
.directory-card { min-width: 0; }
.directory-scroll { flex: 1; overflow-y: auto; padding: 6px 6px 12px; }
.dir-subject {
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  padding: 8px 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dir-subject .caret { transition: transform .15s; font-size: 10px; color: var(--muted-fg); }
.dir-subject.collapsed .caret { transform: rotate(-90deg); }
.dir-subject .subject-count { margin-left: auto; font-weight: 500; color: var(--muted-fg); font-size: 11px; }
.dir-chapter {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-left: 2px solid transparent;
  padding: 5px 8px 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .12s;
}
.dir-chapter:hover { background: var(--primary-soft); color: var(--primary); }
.dir-chapter.active { border-left-color: var(--primary); color: var(--primary); background: #f5f6ff; }
.dir-chapter .caret { font-size: 9px; color: var(--muted-fg); transition: transform .15s; }
.dir-chapter.collapsed .caret { transform: rotate(-90deg); }
.dir-chapter .ch-count { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--muted-fg); }
.dir-tags { border-left: 1px solid var(--border); margin-left: 18px; padding-left: 6px; }
.dir-tag {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .12s;
  white-space: nowrap;
  overflow: hidden;
}
.dir-tag:hover { background: var(--accent); color: var(--foreground); }
.dir-tag.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.dir-tag .tag-count { margin-left: auto; font-size: 10px; color: var(--muted-fg); }
.dir-tag.empty { opacity: .45; cursor: default; }
.dir-tag.empty:hover { background: transparent; color: var(--muted); }

/* ---------- 矩阵 ---------- */
.matrix-card { min-width: 0; }
.filter-count { font-size: 11px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.matrix-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  gap: 6px;
  padding: 10px;
  align-items: stretch;
}
.year-col {
  flex: 1 0 40px;
  min-width: 40px;
  max-width: 56px;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.year-head {
  padding: 3px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--year-head);
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}
.year-head:hover { background: #3b4658; }
.year-cells { padding: 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; }
.cell {
  flex: 1 1 0;
  min-height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  color: var(--muted-fg);
  background: var(--none);
}
.cell-spacer { flex: 1 1 0; min-height: 12px; }
.cell:hover { transform: scale(1.18); z-index: 5; box-shadow: 0 4px 12px rgba(99,102,241,.25); }
.cell.mastered { background: var(--mastered); color: #fff; }
.cell.unfamiliar { background: var(--unfamiliar); color: #fff; }
.cell.wrong { background: var(--wrong); color: #fff; }
.cell.selected { box-shadow: 0 0 0 2px #3b82f6; z-index: 6; }
.cell.dimmed { opacity: .14; }
.cell.in-wrongbook::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.cell.empty { background: transparent; border: 1px dashed var(--border); color: var(--muted-fg); opacity: .5; }

/* ---------- 掌握度图表（竖向柱状图） ---------- */
.chart-card { min-width: 0; }
.chart-body { flex: 1; min-height: 0; padding: 8px 12px 4px; overflow-x: auto; overflow-y: hidden; }
.chart-vchart { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.chart-plot { flex: 1; display: flex; gap: 10px; min-height: 0; padding-top: 8px; }
.chart-yaxis { position: relative; flex: 0 0 26px; }
.chart-yaxis span {
  position: absolute;
  right: 0;
  font-size: 10px;
  line-height: 1;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}
.chart-yaxis span:first-child { transform: translateY(0); }
.chart-yaxis span:last-child { transform: translateY(-100%); }
.chart-yaxis span:not(:first-child):not(:last-child) { transform: translateY(-50%); }
.chart-bars {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(to top, var(--border) 0 1px, transparent 1px 25%);
}
.chart-col {
  flex: 1 1 0;
  min-width: 22px;
  max-width: 80px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: background .12s;
}
.chart-col:hover { background: var(--accent); }
.chart-col.active { background: var(--primary-soft); }
.chart-col-bar {
  width: 68%;
  max-width: 46px;
  min-height: 2px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.chart-col-bar .chart-seg { width: 100%; }
.chart-seg { transition: height .3s; }
.chart-seg.mastered { background: var(--mastered); }
.chart-seg.unfamiliar { background: var(--unfamiliar); }
.chart-seg.wrong { background: var(--wrong); }
.chart-seg.none { background: var(--none); }
.chart-xlabels {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 0 40px;
  margin-left: 36px;
  justify-content: center;
  flex: 0 0 58px;
  height: 58px;
}
.chart-xlabel {
  flex: 1 1 0;
  min-width: 22px;
  max-width: 80px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}
.chart-xlabel > span {
  display: block;
  width: 100%;
  padding: 4px 1px 0;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  font-size: 10px;
  line-height: 1.15;
  color: var(--muted);
  max-height: 100%;
  overflow: hidden;
}
.chart-xlabel:hover > span { color: var(--primary); }
.chart-xlabel.active > span { color: var(--primary); font-weight: 700; }
.chart-empty { text-align: center; color: var(--muted-fg); padding: 40px 0; font-size: 13px; }

/* 图表被拖矮时切换紧凑排版，把空间优先留给柱体 */
.chart-card.is-compact .card-head { padding: 4px 12px; }
.chart-card.is-compact .chart-body { padding: 4px 10px 2px; }
.chart-card.is-compact .chart-plot { gap: 6px; padding-top: 4px; }
.chart-card.is-compact .chart-yaxis { flex-basis: 22px; }
.chart-card.is-compact .chart-yaxis span { font-size: 9px; }
/* 高度很矮时只保留最大/最小刻度，避免数字叠在一起 */
.chart-card.is-compact .chart-yaxis span:not(:first-child):not(:last-child) { display: none; }
.chart-card.is-compact .chart-bars { padding: 0 20px; }
.chart-card.is-compact .chart-xlabels {
  flex: 0 0 50px;
  height: 50px;
  padding: 0 20px;
  margin-left: 28px;
}
.chart-card.is-compact .chart-xlabel > span { padding-top: 3px; font-size: 9px; }
.chart-card.is-compact .chart-empty { padding: 12px 0; }

/* 中等宽度下章节名换行更多，给标签多留一点高度，避免被裁切 */
@media (min-width: 761px) and (max-width: 900px) {
  .chart-card .chart-xlabels { flex-basis: 72px; height: 72px; }
}

/* ---------- 真题列表 ---------- */
.papers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.paper-card { cursor: pointer; }
.paper-card .paper-body { padding: 14px 16px; }
.paper-year { font-size: 20px; font-weight: 800; color: var(--foreground); }
.paper-title { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.paper-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.paper-stat { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.paper-stat b { color: var(--foreground); }
.q-num { min-width: 46px; font-weight: 700; font-size: 13px; color: var(--foreground); }
.q-type-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
  flex-shrink: 0;
}
.type-choice { background: #e0f2fe; color: #0369a1; }
.type-fill { background: #fef3c7; color: #b45309; }
.type-answer { background: #fce7f3; color: #be185d; }
.q-tag { font-size: 12px; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-mastery { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---------- 我的学习 ---------- */
.learning-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-card .stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); }
.stat-card .stat-num.c-mastered { color: var(--mastered); }
.stat-card .stat-num.c-unfamiliar { color: var(--unfamiliar); }
.stat-card .stat-num.c-wrong { color: var(--wrong); }
.stat-card .stat-num.c-primary { color: var(--primary); }
.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}
@media (max-width: 900px) { .learning-layout { grid-template-columns: 1fr; } }
.learning-panel .card { min-height: 0; }
/* 数据备份卡片 */
.backup-card { margin-top: 14px; }
.backup-body { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.backup-desc { margin: 0; font-size: 13px; color: var(--muted); flex: 1 1 320px; line-height: 1.6; }
.backup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* 分章掌握度（右栏 340px）：行布局收紧 */
.learning-progress .chapter-progress { padding: 12px; }
.learning-progress .progress-row { grid-template-columns: 90px minmax(0, 1fr) 46px; gap: 8px; }
.chapter-progress { padding: 12px 16px; }
.progress-row { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; margin-bottom: 10px; }
.progress-label { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-bar { height: 12px; border-radius: 6px; overflow: hidden; background: var(--accent); display: flex; }
.progress-seg { height: 100%; }
.progress-seg.mastered { background: var(--mastered); }
.progress-seg.unfamiliar { background: var(--unfamiliar); }
.progress-seg.wrong { background: var(--wrong); }
.progress-num { font-size: 11px; color: var(--muted); text-align: right; }
.section-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-fg);
}
.empty-state .big { font-size: 40px; margin-bottom: 10px; }
.wrongbook-list { display: flex; flex-direction: column; gap: 10px; }
.wrongbook-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  flex-wrap: wrap;
}
.ws-select[type="date"] { font-family: inherit; color: var(--foreground); }
.wrongbook-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.wrongbook-item:hover { border-color: #c7d2fe; box-shadow: 0 2px 10px rgba(99, 102, 241, .12); }
.wrongbook-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wrongbook-question { font-size: 15px; line-height: 1.9; color: var(--foreground); }
.wb-q-stem { font-size: 15px; line-height: 1.9; }
.wb-q-options { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.wrongbook-question .q-img { max-height: 180px; }
.wrongbook-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-added-time { font-size: 11px; color: var(--muted-fg); white-space: nowrap; }
.wrongbook-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.wb-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  white-space: nowrap;
}
.wrongbook-noreason { font-size: 11px; color: var(--muted-fg); }
.wrongbook-note {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.wrongbook-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* 学习页：错题本卡片内的「错题本 / 已标熟」标签 */
.learning-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--accent);
}
.learning-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s, box-shadow .12s;
}
.learning-tab:hover { color: var(--foreground); }
.learning-tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}
.mastered-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 14px;
}
.mastered-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.mastered-item:hover { border-color: #a7f3d0; background: #f0fdf4; }
.mastered-item .q-mastery { margin-left: auto; }
.wb-master-btn { color: #047857; border-color: #a7f3d0; }
.wb-master-btn:hover { background: #f0fdf4; border-color: var(--mastered); }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-year { font-size: 13px; color: var(--muted); font-weight: 600; }
.q-no { font-size: 15px; font-weight: 800; }
.q-type {
  font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600;
  background: var(--accent); color: var(--muted);
}
.q-score { font-size: 12px; color: var(--muted-fg); }
.modal-tags { padding: 8px 18px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #f1f5f9; }
.tag-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 500;
}
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.q-content { font-size: 16px; line-height: 1.9; }
.q-options { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.opt-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.8; }
.opt-key { font-weight: 700; color: var(--primary); min-width: 22px; }

/* ---------- Markdown 表格（如 2010 第23题） ---------- */
.md-table {
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}
.md-table th,
.md-table td {
  border: 1px solid #d1d5db;
  padding: 5px 12px;
  text-align: center;
}
.md-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}
.md-table td { color: #1e293b; }

/* ---------- 题目图片：限制尺寸，避免过大 ---------- */
.q-img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}

/* 2009 第 3 题（图形选择题，题干+4 张选项图）：缩小配图 */
#modal[data-qkey="2009-3"] .q-img { max-height: 140px; }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.foot-left, .foot-right { display: flex; align-items: center; gap: 8px; }
.q-progress { font-size: 12px; color: var(--muted-fg); white-space: nowrap; padding: 0 4px; }
.ghost-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.ghost-btn:hover { background: var(--accent); }
.ghost-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-icon { width: 15px; height: 15px; }
.mastery-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}
.mastery-btn {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.mastery-btn + .mastery-btn { border-left: 1px solid var(--border); }
.mastery-btn.m-mastered.active { background: var(--mastered); color: #fff; }
.mastery-btn.m-unfamiliar.active { background: var(--unfamiliar); color: #fff; }
.mastery-btn.m-wrong.active { background: var(--wrong); color: #fff; }

/* 快捷键键帽提示 */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid #d7dde7;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: var(--muted-fg);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}
.ghost-btn .kbd-hint { color: var(--muted); }
.ghost-btn.active .kbd-hint {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.mastery-btn.active .kbd-hint {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

/* KaTeX 显示优化 */
.katex-display { margin: 8px 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }

/* ---------- 打印题集（workspace） ---------- */
.workspace-modal { max-width: 900px; }
.workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ws-field { display: flex; align-items: center; gap: 6px; }
.ws-field label { font-size: 12px; color: var(--muted); }
.ws-select {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}
.ws-select:disabled { opacity: .5; cursor: not-allowed; }

/* 打印选题：勾选框列表（默认全选） */
.ws-picker {
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  padding: 8px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws-picker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.ws-check-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
}
.ws-check-all-label input,
.ws-check-item input { accent-color: var(--primary); cursor: pointer; }
.ws-picker-count { margin-left: auto; font-size: 11px; color: var(--muted-fg); }
.ws-picker-list {
  max-height: 150px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 10px;
  align-content: start;
}
.ws-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.ws-check-item:hover { background: var(--accent); }
.ws-check-item.is-off { opacity: .62; }
.ws-check-num { font-weight: 600; white-space: nowrap; }
.ws-check-type {
  font-size: 10px;
  color: var(--muted-fg);
  background: var(--accent);
  border-radius: 4px;
  padding: 0 5px;
  white-space: nowrap;
}
.ws-check-tag { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-picker-empty { grid-column: 1 / -1; padding: 10px; text-align: center; font-size: 12px; color: var(--muted-fg); }
.ws-preview-empty { padding: 60px 20px; text-align: center; color: var(--muted-fg); font-size: 13px; line-height: 1.8; }
.link-btn:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }
.ghost-btn:disabled { opacity: .5; cursor: not-allowed; }
.ghost-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.ghost-btn.primary:hover { background: #4f46e5; }
.ghost-btn.danger { background: var(--wrong); color: #fff; border-color: var(--wrong); }
.ghost-btn.danger:hover { background: #dc2626; border-color: #dc2626; }

/* ---------- 确认弹窗（危险操作二次确认） ---------- */
.modal.confirm-modal { max-width: 420px; }
.confirm-body { padding: 26px 24px 22px; text-align: center; }
.confirm-icon { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.confirm-title { font-size: 17px; font-weight: 700; color: var(--foreground); margin-bottom: 8px; }
.confirm-text { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 错题记录条（题目弹窗底部） ---------- */
.wb-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  font-size: 12px;
}
.wb-strip-label { font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.wb-strip-reason {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  white-space: nowrap;
}
.wb-strip-note {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-strip-note.is-empty { color: var(--muted-fg); font-style: italic; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: #4f46e5; }

/* ---------- 错题记录弹窗 ---------- */
.modal.wb-modal { max-width: 520px; outline: none; }
.wb-body { padding: 16px 18px; overflow-y: auto; }
.wb-field + .wb-field { margin-top: 16px; }
.wb-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.wb-hint { font-size: 11px; font-weight: 400; color: var(--muted-fg); }
.wb-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wb-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .12s;
}
.wb-reason:hover { border-color: #c7d2fe; background: #f8faff; }
.wb-reason.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #4338ca;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .16);
}
.wb-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.wb-reason.active .wb-kbd { background: var(--primary); border-color: var(--primary); color: #fff; }
.wb-note {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--card);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.wb-note:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.wb-foot-hint { font-size: 11px; color: var(--muted-fg); }
@media (max-width: 480px) {
  .wb-reasons { grid-template-columns: 1fr; }
}
.workspace-preview {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #eef1f5;
}

/* ---------- 打印纸张（A4 做题本模板，移植自 workspace 的 WrongBook 布局） ---------- */
.wb-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wb-page {
  width: 210mm;
  height: 297mm;
  box-sizing: border-box;
  padding: 8mm 10mm;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #111;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.wb-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  user-select: none;
}
.wb-q {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  overflow: hidden;
}
.wb-q-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 2px 8px;
  font-size: 13px;
}
.wb-q-title { color: #374151; }
.wb-q-meta { margin-left: auto; display: flex; gap: 16px; font-size: 12px; color: #6b7280; }
.wb-q-body { flex: 1; min-height: 0; display: flex; }
.wb-q-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
}
.wb-q-stem-wrap { flex-shrink: 0; padding: 8px 8px 0; }
.wb-q-stem {
  border: 1px dashed #d1d5db;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
}
.wb-line { min-height: 1.2em; }
.wb-opt { padding-left: 1em; }
/* 打印模板中的题目图片：更严格的高度上限，避免占满卡片 */
.wb-q-stem .q-img { max-height: 130px; }
.wb-q-work {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wb-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wb-bar { display: inline-block; width: 4px; height: 12px; border-radius: 1px; }
.wb-bar-green { background: #22c55e; }
.wb-bar-amber { background: #f59e0b; }
.wb-ruled {
  flex: 1 1 0;
  min-height: 0;
  border: 1px dashed;
  border-radius: 3px;
  /* 稿纸横线不用 CSS 渐变：渐变在导出 PDF 时会被 Skia 栅格化成整页 72dpi 位图，
     放大后线条发虚、间距被拉扯。这里只负责裁剪，横线由 .wb-rule 逐条描边出矢量线。 */
  overflow: hidden;
}
.wb-rule {
  display: block;
  height: 7mm;              /* 线距 7mm，首线距框顶 7mm */
  border-bottom: 1px solid #d1d5db;
}
.wb-ruled-green { border-color: #bbf7d0; }
.wb-ruled-amber { border-color: #fde68a; }
.wb-q-notes {
  width: 20%;
  flex-shrink: 0;
  padding: 0 6px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- 真题打印（普通 PDF） ---------- */
.papers-hint { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
.paper-action {
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.paper-modal { max-width: 920px; }
.paper-preview {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #eef1f5;
}
.paper-doc {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 40px 48px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.paper-doc-title { text-align: center; font-size: 20px; font-weight: 700; }
.paper-doc-meta { text-align: center; font-size: 12px; color: #6b7280; margin: 4px 0; }
.paper-doc-section { font-size: 15px; font-weight: 700; margin: 22px 0 10px; }
.paper-doc-q { margin-bottom: 16px; page-break-inside: avoid; break-inside: avoid; }
.paper-doc-q-head { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.paper-doc-score { font-weight: 400; font-size: 12px; color: #6b7280; }
.paper-doc-q-body { font-size: 14px; line-height: 1.8; }
.paper-doc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin-top: 6px;
}
.paper-doc-opt { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 1.8; }
.paper-doc-opt-key { font-weight: 700; color: #334155; flex-shrink: 0; }
.paper-doc-opt-val { min-width: 0; }
.paper-doc .q-img { max-height: 220px; }

/* ---------- 打印规则：仅输出 #print-area ---------- */
#print-area { display: none; }

/* 普通 PDF 的页面留白（命名页，与 workspace 的 A4 卡片 margin:0 区分） */
@page plain { size: A4; margin: 18mm; }

@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 0; }
  body.print-plain #print-area { page: plain; }
  .paper-doc { box-shadow: none; padding: 0; max-width: none; margin: 0; }
  .wb-page {
    box-shadow: none;
    margin: 0;
    page-break-after: always;
    break-after: page;
  }
  .wb-page:last-child { page-break-after: auto; break-after: auto; }
  .wb-q { page-break-inside: avoid; break-inside: avoid; }
}

/* ---------- 登录 / 用户 ---------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 独立登录页 ---------- */
.auth-page {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 500px at 15% 0%, #eef2ff 0%, rgba(238, 242, 255, 0) 60%),
    radial-gradient(700px 500px at 100% 100%, #f0fdfa 0%, rgba(240, 253, 250, 0) 55%),
    var(--bg);
}
.auth-shell { width: 100%; max-width: 400px; }
.auth-page .login-card {
  max-width: none;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
}
.auth-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.auth-checking[hidden] { display: none; }
.auth-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  border-top-color: var(--primary);
  animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-noscript {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--wrong);
}

/* 应用页校验登录状态时隐藏内容，避免未登录闪现 */
html.auth-checking body { visibility: hidden; }
html.auth-checking body::before {
  content: '正在验证登录状态…';
  visibility: visible;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  padding: 28px 26px 22px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.login-brand .brand-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
}
.login-title { font-size: 17px; font-weight: 700; color: var(--foreground); }
.login-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.login-field { display: block; margin-bottom: 14px; }
.login-field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--foreground);
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}
.captcha-wrap { margin-bottom: 14px; }
.captcha-wrap[hidden] { display: none; }
#captcha-widget { min-height: 65px; }
.captcha-hint { font-size: 12px; color: var(--wrong); margin-top: 6px; }
.captcha-hint:empty { display: none; }
.login-error {
  font-size: 12px;
  color: var(--wrong);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.login-btn {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.login-btn.primary { background: var(--primary); color: #fff; }
.login-btn.primary:hover { background: #4f46e5; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}


