/* 学生成长成就:8 条成长线、45 枚可信徽章。 */
.cv-ms-shelf {
  --ms-surface: var(--surface, #fff);
  --ms-surface-2: var(--surface-2, #f7f5f0);
  --ms-surface-3: var(--surface-3, #e9e5dc);
  --ms-line: var(--hairline, rgba(60, 50, 35, .12));
  --ms-ink: var(--ink, #211f2b);
  --ms-muted: var(--muted, #706e7a);
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 2px 0 6px;
}

.cv-ms-shelf button { font: inherit; letter-spacing: 0; }
.cv-ms-shelf svg,
.cv-ms-dialog svg { display: block; width: 1em; height: 1em; }

.cv-ms-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 0 2px;
}
.cv-ms-head > div { min-width: 0; }
.cv-ms-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-ink, #3a328f);
  font-size: 11px;
  font-weight: 800;
}
.cv-ms-head h3 {
  margin: 0;
  color: var(--ms-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}
.cv-ms-head > div > small {
  display: block;
  margin-top: 3px;
  color: var(--ms-muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.cv-ms-head p {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 2px;
  color: var(--ms-muted);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: right;
}
.cv-ms-head p strong { color: var(--accent, #544bc4); font-size: 17px; font-variant-numeric: tabular-nums; }
.cv-ms-head p span { white-space: nowrap; }

.cv-ms-focus {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, #544bc4) 18%, var(--ms-line));
  border-radius: 16px;
  background: var(--ms-surface);
  box-shadow: 0 8px 24px rgba(42, 36, 75, .06);
}
.cv-ms-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 39px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--ms-line);
  background: color-mix(in srgb, var(--accent, #544bc4) 4%, var(--ms-surface));
}
.cv-ms-focus-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-ink, #3a328f);
  font-size: 10.5px;
  font-weight: 850;
}
.cv-ms-focus-head span .ic { width: 14px; height: 14px; }
.cv-ms-focus-head small { color: var(--ms-muted); font-size: 10px; }
.cv-ms-focus-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
}
.cv-ms-focus-piece {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 118px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--ms-ink);
  cursor: pointer;
  text-align: left;
}
.cv-ms-focus-piece.is-starting { cursor: default; }
.cv-ms-focus-piece > .ic { width: 16px; height: 16px; color: var(--ms-muted); }
.cv-ms-focus-piece > .cv-ms-emblem {
  width: 58px;
  height: 58px;
  margin: 0;
}
.cv-ms-focus-piece > .cv-ms-emblem::before { inset: 4px; border-width: 4px; }
.cv-ms-focus-piece > .cv-ms-emblem::after { inset: 12px; }
.cv-ms-focus-piece > .cv-ms-emblem .cv-ms-glyph .ic { width: 21px; height: 21px; }
.cv-ms-focus-piece > .cv-ms-emblem .cv-ms-rank {
  right: -1px;
  bottom: 1px;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  font-size: 8.5px;
}
.cv-ms-focus-piece > .cv-ms-emblem .cv-ms-crown { top: -5px; }
.cv-ms-focus-piece > .cv-ms-emblem .cv-ms-crown .ic { width: 19px; height: 19px; }
.cv-ms-focus-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--cat, var(--accent, #544bc4)) 11%, var(--ms-surface));
  color: var(--cat, var(--accent, #544bc4));
}
.cv-ms-focus-icon .ic { width: 27px; height: 27px; }
.cv-ms-focus-copy,
.cv-ms-focus-copy small,
.cv-ms-focus-copy strong,
.cv-ms-focus-copy em { display: block; min-width: 0; }
.cv-ms-focus-copy small { color: var(--cat, var(--accent, #544bc4)); font-size: 10.5px; font-weight: 850; }
.cv-ms-focus-copy strong { margin-top: 2px; overflow: hidden; color: var(--ms-ink); font-size: 16px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cv-ms-focus-copy em { margin-top: 3px; color: var(--ms-muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.cv-ms-focus-copy .cv-ms-focus-progress-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.cv-ms-focus-progress {
  display: block;
  flex: 1;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat, var(--accent, #544bc4)) 11%, var(--ms-surface-2));
}
.cv-ms-focus-progress i { display: block; height: 100%; border-radius: inherit; background: var(--cat, var(--accent, #544bc4)); }
.cv-ms-focus-value { min-width: 35px; color: var(--cat, var(--accent, #544bc4)); font-size: 10.5px; font-variant-numeric: tabular-nums; text-align: right; }
.cv-ms-focus-connector { position: relative; display: grid; place-items: center; color: var(--accent, #544bc4); }
.cv-ms-focus-connector::before { position: absolute; right: 0; left: 0; height: 1px; background: var(--ms-line); content: ""; }
.cv-ms-focus-connector span { z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--ms-line); border-radius: 50%; background: var(--ms-surface); }
.cv-ms-focus-connector .ic { width: 15px; height: 15px; }
.cv-ms-focus-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid var(--ms-line);
  background: var(--ms-surface-2);
  color: var(--ms-muted);
  font-size: 11px;
  line-height: 1.45;
}
.cv-ms-focus-note > .ic { flex: none; width: 15px; height: 15px; color: var(--accent, #544bc4); }
.cv-ms-focus-note strong { color: var(--ms-ink); }
.cv-ms-focus-complete-body { display: flex; align-items: center; gap: 14px; padding: 17px 18px; }
.cv-ms-focus-complete-body > span:last-child,
.cv-ms-focus-complete-body small,
.cv-ms-focus-complete-body strong,
.cv-ms-focus-complete-body em { display: block; }
.cv-ms-focus-complete-body small { color: var(--accent-ink, #3a328f); font-size: 10.5px; font-weight: 800; }
.cv-ms-focus-complete-body strong { margin-top: 2px; color: var(--ms-ink); font-size: 16px; }
.cv-ms-focus-complete-body em { margin-top: 3px; color: var(--ms-muted); font-size: 11px; font-style: normal; }

.cv-ms-weekly {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: 14px 22px;
  min-width: 0;
  padding: 14px 2px 2px;
  border-top: 1px solid var(--ms-line);
}
.cv-ms-week-main,
.cv-ms-week-main span,
.cv-ms-week-main strong,
.cv-ms-week-main small { display: block; min-width: 0; }
.cv-ms-week-kicker { color: var(--accent-ink, #3a328f); font-size: 10.5px; font-weight: 850; }
.cv-ms-week-main strong { margin-top: 3px; color: var(--ms-ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cv-ms-week-main small { margin-top: 3px; color: var(--ms-muted); font-size: 10.8px; line-height: 1.45; }
.cv-ms-week-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}
.cv-ms-week-metric {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 50px;
  padding: 4px 10px;
}
.cv-ms-week-metric + .cv-ms-week-metric { border-left: 1px solid var(--ms-line); }
.cv-ms-week-metric > .ic { width: 18px; height: 18px; color: var(--accent, #544bc4); }
.cv-ms-week-metric span,
.cv-ms-week-metric strong,
.cv-ms-week-metric small { display: block; min-width: 0; }
.cv-ms-week-metric strong { color: var(--ms-ink); font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cv-ms-week-metric small { margin-top: 2px; color: var(--ms-muted); font-size: 9.8px; line-height: 1.3; overflow-wrap: anywhere; }
.cv-ms-week-history {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid var(--ms-line);
}
.cv-ms-week-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ms-ink);
  cursor: pointer;
  list-style: none;
}
.cv-ms-week-history summary::-webkit-details-marker { display: none; }
.cv-ms-week-history summary > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cv-ms-week-history summary .ic { flex: none; width: 15px; height: 15px; color: var(--accent, #544bc4); }
.cv-ms-week-history summary strong { font-size: 11.5px; }
.cv-ms-week-history summary small { overflow: hidden; color: var(--ms-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.cv-ms-week-history summary > .ic { transition: transform .18s ease; }
.cv-ms-week-history[open] summary > .ic { transform: rotate(180deg); }
.cv-ms-week-history ol { display: grid; gap: 0; margin: 0; padding: 0 0 4px; list-style: none; }
.cv-ms-week-history li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--ms-line);
}
.cv-ms-week-history-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--cat) 10%, var(--ms-surface)); color: var(--cat); }
.cv-ms-week-history-icon .ic { width: 16px; height: 16px; }
.cv-ms-week-history li > span:nth-child(2),
.cv-ms-week-history li strong,
.cv-ms-week-history li small { display: block; min-width: 0; }
.cv-ms-week-history li strong { overflow: hidden; color: var(--ms-ink); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.cv-ms-week-history li small,
.cv-ms-week-history time { color: var(--ms-muted); font-size: 10px; }
.cv-ms-week-history time { white-space: nowrap; }
.cv-ms-week-empty { grid-column: 1 / -1; min-width: 0; }
.cv-ms-week-empty .cv-anim-empty { min-height: 116px; padding-block: 4px; }
.cv-ms-week-empty .cvc { margin-block: -12px -21px; }
.cv-ms-week-empty-copy { display: grid; gap: 4px; min-height: 80px; place-content: center; text-align: center; }
.cv-ms-week-empty-copy strong { color: var(--ms-ink); font-size: 14px; }
.cv-ms-week-empty-copy small { color: var(--ms-muted); font-size: 11px; }
.cv-ms-week-loader { justify-self: end; width: 22px; height: 22px; border: 2px solid var(--ms-line); border-top-color: var(--accent, #544bc4); border-radius: 50%; animation: cv-ms-week-spin .8s linear infinite; }
@keyframes cv-ms-week-spin { to { transform: rotate(360deg); } }

.cv-ms-collection { min-width: 0; padding-top: 14px; border-top: 1px solid var(--ms-line); }
.cv-ms-collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 4px 2px 6px;
  color: var(--ms-ink);
}
.cv-ms-collection-head > span,
.cv-ms-collection-head strong,
.cv-ms-collection-head small { display: block; min-width: 0; }
.cv-ms-collection-head strong { font-size: 17px; }
.cv-ms-collection-head small { margin-top: 2px; color: var(--ms-muted); font-size: 11.5px; }
.cv-ms-collection-head button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink, #3a328f);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}
.cv-ms-collection-head button .ic { width: 16px; height: 16px; transition: transform .18s ease; }
.cv-ms-collection.is-expanded .cv-ms-collection-head button .ic { transform: rotate(180deg); }
.cv-ms-collection-head button:focus-visible,
.cv-ms-tabs button:focus-visible,
.cv-ms-badge:focus-visible,
.cv-ms-dialog-close:focus-visible {
  outline: 2px solid var(--accent, #544bc4);
  outline-offset: 3px;
}

.cv-ms-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  padding: 10px 0 12px;
}
.cv-ms-tabs button {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 59px;
  padding: 8px 10px;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  background: var(--ms-surface);
  color: var(--ms-muted);
  cursor: pointer;
  text-align: left;
}
.cv-ms-tab-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--ms-surface-2);
  color: var(--cat);
}
.cv-ms-tab-icon .ic { width: 18px; height: 18px; }
.cv-ms-tabs button span,
.cv-ms-tabs button strong,
.cv-ms-tabs button small { display: block; min-width: 0; }
.cv-ms-tabs button strong { overflow: hidden; color: var(--ms-ink); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.cv-ms-tabs button small { margin-top: 1px; font-size: 10px; font-variant-numeric: tabular-nums; }
.cv-ms-tabs button.is-active {
  border-color: color-mix(in srgb, var(--cat) 38%, var(--ms-line));
  background: color-mix(in srgb, var(--cat) 10%, var(--ms-surface));
  color: var(--cat);
}
.cv-ms-tab-progress { width: 100%; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: var(--ms-surface-3); }
.cv-ms-tab-progress i { display: block; height: 100%; border-radius: inherit; background: var(--cat); }
.cv-ms-category-panel[hidden] { display: none; }

.cv-ms-category { min-width: 0; padding-top: 6px; }
.cv-ms-category-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cv-ms-category-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--cat) 11%, var(--ms-surface));
  color: var(--cat);
}
.cv-ms-category-icon .ic { width: 21px; height: 21px; }
.cv-ms-category-head h4 { margin: 0; color: var(--ms-ink); font-size: 17px; letter-spacing: 0; }
.cv-ms-category-head p { margin: 2px 0 0; color: var(--ms-muted); font-size: 11.5px; line-height: 1.45; }
.cv-ms-category-head > strong { color: var(--cat); font-size: 19px; font-variant-numeric: tabular-nums; }

.cv-ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}
.cv-ms-badge {
  position: relative;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  min-height: 224px;
  padding: 17px 10px 12px;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 14px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cv-ms-badge:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cat) 32%, var(--ms-line)); box-shadow: 0 7px 19px rgba(32, 28, 62, .08); }
}

.cv-ms-emblem {
  --tier-ring: #b8bbc3;
  --tier-core: #edf0f2;
  --tier-ink: #4e5662;
  --tier-halo: 0px;
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 1px 0 10px;
  border-radius: 50%;
  isolation: isolate;
}
.cv-ms-emblem::before {
  position: absolute;
  z-index: -2;
  inset: 7px;
  border: 5px solid var(--tier-ring);
  border-radius: 50%;
  background: var(--tier-core);
  box-shadow: 0 5px 12px rgba(23, 26, 42, .13), inset 0 2px 2px rgba(255, 255, 255, .56), 0 0 0 var(--tier-halo) color-mix(in srgb, var(--tier-ring) 16%, transparent);
  content: "";
}
.cv-ms-emblem::after {
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 2px solid color-mix(in srgb, white 64%, var(--cat));
  border-radius: 50%;
  background: var(--cat);
  box-shadow: inset 0 -7px 12px color-mix(in srgb, black 13%, transparent), inset 0 5px 8px rgba(255, 255, 255, .18);
  content: "";
}
.cv-ms-glyph { position: relative; z-index: 2; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.cv-ms-glyph .ic { width: 32px; height: 32px; transition: transform .18s ease, filter .18s ease; }
.cv-ms-emblem[data-glyph-stage="2"] .cv-ms-glyph .ic { transform: scale(1.08); }
.cv-ms-emblem[data-glyph-stage="3"] .cv-ms-glyph .ic { filter: drop-shadow(0 0 4px rgba(255, 246, 209, .32)); transform: scale(1.16); }
.cv-ms-rank {
  position: absolute;
  z-index: 4;
  right: 4px;
  bottom: 7px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border: 2px solid var(--ms-surface);
  border-radius: 999px;
  background: var(--tier-ring);
  color: var(--tier-ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(20, 20, 35, .18);
}
.cv-ms-crown,
.cv-ms-stars { position: absolute; z-index: 4; color: var(--tier-ring); pointer-events: none; }
.cv-ms-crown { top: -4px; left: 50%; display: none; transform: translateX(-50%); }
.cv-ms-crown .ic { width: 25px; height: 25px; fill: color-mix(in srgb, var(--tier-ring) 26%, transparent); }
.cv-ms-stars { inset: 0; display: none; }
.cv-ms-stars .ic { position: absolute; width: 13px; height: 13px; fill: color-mix(in srgb, var(--tier-ring) 22%, transparent); }
.cv-ms-stars .ic:first-child { top: 14px; left: 3px; }
.cv-ms-stars .ic:nth-child(2) { top: 4px; right: 8px; width: 10px; height: 10px; }
.cv-ms-stars .ic:last-child { right: 1px; bottom: 22px; width: 9px; height: 9px; }

.cv-ms-emblem[data-tier="2"] { --tier-ring: #92aaa5; --tier-core: #e8f2ef; --tier-ink: #263d39; }
.cv-ms-emblem[data-tier="3"] { --tier-ring: #7798bc; --tier-core: #e7eff8; --tier-ink: #233f5e; --tier-halo: 2px; }
.cv-ms-emblem[data-tier="4"] { --tier-ring: #6d67b8; --tier-core: #ecebfa; --tier-ink: #282454; --tier-halo: 3px; }
.cv-ms-emblem[data-tier="5"] { --tier-ring: #c08b32; --tier-core: #fbefd6; --tier-ink: #4a3310; --tier-halo: 3px; }
.cv-ms-emblem[data-tier="6"] { --tier-ring: #d16f5f; --tier-core: #f9e4df; --tier-ink: #55241c; --tier-halo: 4px; }
.cv-ms-emblem[data-tier="7"] { --tier-ring: #d5a840; --tier-core: #343149; --tier-ink: #34250a; --tier-halo: 5px; }
.cv-ms-emblem[data-tier="8"] { --tier-ring: #e1b74f; --tier-core: #242333; --tier-ink: #2f2107; --tier-halo: 7px; }
.cv-ms-emblem[data-tier="4"]::before,
.cv-ms-emblem[data-tier="5"]::before,
.cv-ms-emblem[data-tier="6"]::before { border-width: 6px; }
.cv-ms-emblem[data-tier="7"]::before,
.cv-ms-emblem[data-tier="8"]::before { border-width: 7px; box-shadow: 0 7px 17px rgba(20, 18, 36, .24), inset 0 0 0 2px color-mix(in srgb, white 22%, transparent), 0 0 0 var(--tier-halo) color-mix(in srgb, var(--tier-ring) 19%, transparent); }
.cv-ms-emblem[data-tier="7"]::after,
.cv-ms-emblem[data-tier="8"]::after { border-color: color-mix(in srgb, var(--tier-ring) 72%, white); background: color-mix(in srgb, var(--cat) 76%, #222033); }
.cv-ms-emblem[data-tier="5"] .cv-ms-stars,
.cv-ms-emblem[data-tier="6"] .cv-ms-stars,
.cv-ms-emblem[data-tier="7"] .cv-ms-stars,
.cv-ms-emblem[data-tier="8"] .cv-ms-stars { display: block; }
.cv-ms-emblem[data-tier="7"] .cv-ms-crown,
.cv-ms-emblem[data-tier="8"] .cv-ms-crown { display: block; }

.cv-ms-badge-title { width: 100%; color: var(--ms-ink); font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.cv-ms-badge-condition { min-height: 32px; margin-top: 3px; color: var(--ms-muted); font-size: 10.8px; line-height: 1.45; overflow-wrap: anywhere; }
.cv-ms-badge-progress { display: block; width: min(92px, 82%); height: 5px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: var(--ms-line); }
.cv-ms-badge-progress i { display: block; height: 100%; border-radius: inherit; background: var(--cat); }
.cv-ms-badge-state { margin-top: 6px; color: var(--cat); font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cv-ms-badge-tier { margin-top: auto; padding-top: 6px; color: var(--ms-muted); font-size: 9.8px; }
.cv-ms-badge.is-locked { background: var(--ms-surface-2); box-shadow: none; }
.cv-ms-badge.is-locked .cv-ms-emblem { filter: grayscale(.86); opacity: .61; }
.cv-ms-badge.is-locked .cv-ms-emblem::after { border-color: var(--ms-line); background: var(--ms-surface-2); box-shadow: none; }
.cv-ms-badge.is-locked .cv-ms-emblem::before { border-color: var(--ms-surface-3); background: var(--ms-surface-2); box-shadow: inset 0 0 0 1px var(--ms-line); }
.cv-ms-badge.is-locked .cv-ms-glyph { color: var(--ms-muted); filter: none; }
.cv-ms-badge.is-locked .cv-ms-rank { background: var(--ms-surface-3); color: var(--ms-muted); }
.cv-ms-badge.is-locked .cv-ms-crown,
.cv-ms-badge.is-locked .cv-ms-stars { display: none; }

.cv-ms-dialog {
  --ms-surface: var(--surface, #fff);
  --ms-surface-2: var(--surface-2, #f7f5f0);
  --ms-surface-3: var(--surface-3, #e9e5dc);
  --ms-line: var(--hairline, rgba(60, 50, 35, .12));
  --ms-ink: var(--ink, #211f2b);
  --ms-muted: var(--muted, #706e7a);
  width: min(540px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--ink, #211f2b);
  box-shadow: 0 20px 62px rgba(27, 25, 46, .24);
}
.cv-ms-dialog::backdrop { background: rgba(18, 18, 30, .48); backdrop-filter: blur(4px); }
.cv-ms-dialog-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  padding: 0;
  border: 1px solid var(--hairline, rgba(60, 50, 35, .12));
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--ink, #211f2b);
  cursor: pointer;
}
.cv-ms-dialog-close .ic { width: 19px; height: 19px; }
.cv-ms-dialog-body { display: grid; justify-items: center; padding: 30px 24px 24px; text-align: center; }
.cv-ms-dialog-body > .cv-ms-emblem { width: 126px; height: 126px; margin: 6px 0 12px; transform: scale(1.12); }
.cv-ms-dialog-kicker { color: var(--cat); font-size: 11px; font-weight: 800; }
.cv-ms-dialog-body h3 { margin: 3px 0 0; font-size: 24px; letter-spacing: 0; }
.cv-ms-dialog-body > p { margin: 5px 0 18px; color: var(--muted, #706e7a); font-size: 13px; }
.cv-ms-dialog-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--hairline, rgba(60, 50, 35, .12));
  border-bottom: 1px solid var(--hairline, rgba(60, 50, 35, .12));
}
.cv-ms-dialog-body dl div { min-width: 0; padding: 12px 7px; }
.cv-ms-dialog-body dl div + div { border-left: 1px solid var(--hairline, rgba(60, 50, 35, .12)); }
.cv-ms-dialog-body dt { color: var(--muted, #706e7a); font-size: 10px; }
.cv-ms-dialog-body dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cv-ms-series { display: flex; gap: 7px; width: 100%; margin-top: 18px; padding: 2px 1px 8px; overflow-x: auto; scrollbar-width: thin; }
.cv-ms-series span { flex: 0 0 auto; min-width: 68px; padding: 8px 7px; border: 1px solid var(--hairline, rgba(60, 50, 35, .12)); border-radius: 8px; background: var(--surface-2, #f7f5f0); }
.cv-ms-series span.is-current { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, var(--surface, #fff)); }
.cv-ms-series span.is-done strong { color: var(--cat); }
.cv-ms-series strong,
.cv-ms-series small { display: block; }
.cv-ms-series strong { font-size: 10.5px; }
.cv-ms-series small { margin-top: 2px; color: var(--muted, #706e7a); font-size: 9.5px; }

/* 新徽章提示：普通徽章为轻提示，重要节点先聚光再自动收成轻提示。 */
.cv-ms-unlock-layer {
  --ms-surface: var(--surface, #fff);
  --ms-surface-2: var(--surface-2, #f7f5f0);
  --ms-line: var(--hairline, rgba(60, 50, 35, .12));
  --ms-ink: var(--ink, #211f2b);
  --ms-muted: var(--muted, #706e7a);
  position: fixed;
  z-index: 120;
  inset: 0;
  pointer-events: none;
}
.cv-ms-unlock-backdrop {
  position: absolute;
  inset: 0;
  display: none;
  border: 0;
  background: rgba(18, 18, 30, .38);
  pointer-events: auto;
  animation: cv-ms-unlock-backdrop-in .24s ease-out both;
}
.cv-ms-unlock-card {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: min(408px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 14px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--cat) 24%, var(--ms-line));
  border-radius: 16px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  box-shadow: 0 18px 48px rgba(25, 22, 48, .19);
  pointer-events: auto;
}
.cv-ms-unlock-emblem {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
}
.cv-ms-unlock-emblem > .cv-ms-emblem {
  width: 68px;
  height: 68px;
  margin: 0;
}
.cv-ms-unlock-emblem .cv-ms-emblem::before { inset: 5px; border-width: 4px; }
.cv-ms-unlock-emblem .cv-ms-emblem::after { inset: 13px; }
.cv-ms-unlock-emblem .cv-ms-glyph .ic { width: 23px; height: 23px; }
.cv-ms-unlock-emblem .cv-ms-rank {
  right: -1px;
  bottom: 2px;
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  font-size: 9px;
}
.cv-ms-unlock-emblem .cv-ms-crown { top: -5px; }
.cv-ms-unlock-emblem .cv-ms-crown .ic { width: 20px; height: 20px; }
.cv-ms-unlock-emblem .cv-ms-stars .ic:first-child { top: 8px; left: 0; }
.cv-ms-unlock-emblem .cv-ms-stars .ic:nth-child(2) { top: 0; right: 5px; }
.cv-ms-unlock-emblem .cv-ms-stars .ic:last-child { right: -1px; bottom: 13px; }
.cv-ms-unlock-copy,
.cv-ms-unlock-copy small,
.cv-ms-unlock-copy strong,
.cv-ms-unlock-copy em { display: block; min-width: 0; }
.cv-ms-unlock-copy small {
  color: var(--cat);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
}
.cv-ms-unlock-copy strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.cv-ms-unlock-copy em {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ms-muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.45;
}
.cv-ms-unlock-actions { display: flex; align-items: center; gap: 5px; }
.cv-ms-unlock-actions button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat) 11%, var(--ms-surface));
  color: color-mix(in srgb, var(--cat) 88%, var(--ms-ink));
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}
.cv-ms-unlock-actions button[data-cv-ms-unlock-dismiss] {
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  background: transparent;
  color: var(--ms-muted);
}
.cv-ms-unlock-actions .ic { width: 17px; height: 17px; }
.cv-ms-unlock-actions button:focus-visible {
  outline: 2px solid var(--cat);
  outline-offset: 2px;
}
.cv-ms-unlock-layer.is-toast .cv-ms-unlock-card {
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  animation: cv-ms-unlock-toast-in .34s cubic-bezier(.16, 1, .3, 1) both;
}
.cv-ms-unlock-layer.is-spotlight .cv-ms-unlock-backdrop { display: block; }
.cv-ms-unlock-layer.is-spotlight .cv-ms-unlock-card {
  top: 50%;
  left: 50%;
  width: min(438px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  animation: cv-ms-unlock-spotlight-in .42s cubic-bezier(.16, 1, .3, 1) both;
}
.cv-ms-unlock-layer.is-switching .cv-ms-unlock-card,
.cv-ms-unlock-layer.is-leaving .cv-ms-unlock-card,
.cv-ms-unlock-layer.is-leaving .cv-ms-unlock-backdrop {
  opacity: 0;
  transition: opacity .15s ease-out;
}

@keyframes cv-ms-unlock-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cv-ms-unlock-toast-in {
  from { opacity: .3; transform: translateY(-10px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes cv-ms-unlock-spotlight-in {
  from { opacity: .3; transform: translate(-50%, calc(-50% + 16px)) scale(.97); filter: blur(4px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

html.cv-dark .cv-ms-focus,
html.cv-dark .cv-ms-tabs button,
html.cv-dark .cv-ms-badge,
html.cv-dark .cv-ms-dialog-close { box-shadow: none; }
html.cv-dark .cv-ms-unlock-card { box-shadow: 0 18px 48px rgba(0, 0, 0, .36); }

@media (max-width: 760px) {
  .cv-ms-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cv-ms-weekly { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cv-ms-week-loader { justify-self: start; }
}

@media (max-width: 680px) {
  .cv-ms-head { align-items: center; }
  /* detail-polish-v1: 计数保持单行「已点亮 4/45 枚」，不再 grid 堆叠出孤字 */
  .cv-ms-head p { flex-wrap: nowrap; white-space: nowrap; font-size: 11.5px; }
  .cv-ms-head p strong { font-size: 15px; }
  .cv-ms-focus-head { padding-inline: 13px; }
  .cv-ms-focus-journey { grid-template-columns: 1fr; }
  .cv-ms-focus-connector { height: 22px; margin: 0 14px; }
  .cv-ms-focus-connector span { width: 26px; height: 26px; transform: rotate(90deg); }
  .cv-ms-focus-piece { min-height: 94px; padding: 12px 13px; }
  .cv-ms-focus-piece > .cv-ms-emblem,
  .cv-ms-focus-icon { width: 52px; height: 52px; }
  .cv-ms-focus-piece > .cv-ms-emblem::before { inset: 4px; }
  .cv-ms-focus-piece > .cv-ms-emblem::after { inset: 11px; }
  .cv-ms-focus-note { align-items: start; padding-inline: 13px; }
  .cv-ms-week-metric { grid-template-columns: 21px minmax(0, 1fr); gap: 5px; padding-inline: 6px; }
  .cv-ms-week-metric > .ic { width: 16px; height: 16px; }
  .cv-ms-collection-head { align-items: end; }
  .cv-ms-tabs button { grid-template-columns: 32px minmax(0, 1fr); min-height: 56px; padding: 7px 8px; }
  .cv-ms-tab-icon { width: 32px; height: 32px; }
  .cv-ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cv-ms-badge { min-height: 212px; padding-inline: 7px; }
  .cv-ms-emblem { width: 86px; height: 86px; }
  .cv-ms-glyph .ic { width: 29px; height: 29px; }
  .cv-ms-category-head p { max-width: 33ch; }
  .cv-ms-unlock-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    width: auto;
    padding: 12px;
  }
  .cv-ms-unlock-layer.is-toast .cv-ms-unlock-card,
  .cv-ms-unlock-layer.is-spotlight .cv-ms-unlock-card {
    top: auto;
    right: 10px;
    bottom: max(82px, calc(68px + env(safe-area-inset-bottom)));
    left: 10px;
    width: auto;
    transform: none;
    animation: cv-ms-unlock-mobile-in .34s cubic-bezier(.16, 1, .3, 1) both;
  }
  .cv-ms-unlock-emblem,
  .cv-ms-unlock-emblem > .cv-ms-emblem { width: 58px; height: 58px; }
  .cv-ms-unlock-emblem .cv-ms-glyph .ic { width: 20px; height: 20px; }
  .cv-ms-unlock-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@keyframes cv-ms-unlock-mobile-in {
  from { opacity: .3; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 360px) {
  .cv-ms-head h3 { font-size: 18px; }
  .cv-ms-head p { font-size: 11px; }
  .cv-ms-head p strong { font-size: 15px; }
  .cv-ms-head > div > small { max-width: 190px; }
  .cv-ms-week-main strong { font-size: 14px; }
  .cv-ms-week-metric { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .cv-ms-week-metric > .ic { display: none; }
  .cv-ms-week-history summary small { display: none; }
  .cv-ms-focus-copy strong { font-size: 14.5px; }
  .cv-ms-focus-copy em { font-size: 10.5px; }
  .cv-ms-collection-head strong { font-size: 16px; }
  .cv-ms-collection-head small { max-width: 190px; }
  .cv-ms-tabs { gap: 6px; }
  .cv-ms-tabs button { grid-template-columns: 30px minmax(0, 1fr); padding-inline: 7px; }
  .cv-ms-tab-icon { width: 30px; height: 30px; }
  .cv-ms-tabs button strong { font-size: 10.8px; }
  .cv-ms-category-head { grid-template-columns: auto minmax(0, 1fr); }
  .cv-ms-category-head > strong { display: none; }
  .cv-ms-badge { min-height: 204px; }
  .cv-ms-emblem { width: 80px; height: 80px; }
  .cv-ms-dialog-body { padding-inline: 16px; }
  .cv-ms-dialog-body dl { grid-template-columns: 1fr; }
  .cv-ms-dialog-body dl div + div { border-top: 1px solid var(--hairline, rgba(60, 50, 35, .12)); border-left: 0; }
  .cv-ms-unlock-card { right: 8px !important; left: 8px !important; padding: 11px; }
  .cv-ms-unlock-copy strong { font-size: 14px; }
  .cv-ms-unlock-copy em { font-size: 11px; }
  .cv-ms-unlock-actions button:first-child { flex: 1; }
}

@media print {
  .cv-ms-collection-head,
  .cv-ms-tabs,
  .cv-ms-dialog { display: none !important; }
  .cv-ms-badge { break-inside: avoid; box-shadow: none; }
}

html.cv-reduce-motion .cv-ms-badge,
html.cv-reduce-motion .cv-ms-collection-head button .ic,
html.cv-reduce-motion .cv-ms-glyph .ic,
html.cv-reduce-motion .cv-ms-week-loader,
html.cv-reduce-motion .cv-ms-week-history summary > .ic,
html.cv-reduce-motion .cv-ms-unlock-card,
html.cv-reduce-motion .cv-ms-unlock-backdrop { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .cv-ms-badge,
  .cv-ms-collection-head button .ic,
  .cv-ms-glyph .ic,
  .cv-ms-week-loader,
  .cv-ms-week-history summary > .ic,
  .cv-ms-unlock-card,
  .cv-ms-unlock-backdrop { animation: none !important; transition: none !important; }
}

/* W1.4 字号下限：成长档案可见文本统一提到 ≥11px（原最小 8.5px，中小学生与家长可读性不足） */
.cv-ms-focus-head span,
.cv-ms-focus-copy small,
.cv-ms-focus-value,
.cv-ms-focus-complete-body small,
.cv-ms-week-kicker,
.cv-ms-week-main small,
.cv-ms-week-metric small,
.cv-ms-week-history summary small,
.cv-ms-week-history time,
.cv-ms-tabs button small,
.cv-ms-badge-condition,
.cv-ms-badge-state,
.cv-ms-badge-tier,
.cv-ms-dialog-body dt,
.cv-ms-series strong,
.cv-ms-series small { font-size: 11px; }

.growth-summary-copy em { font-size: 11px; }

.cv-ms-focus-head small { font-size: 11px; }
.cv-ms-rank { font-size: 11px; }
.cv-ms-focus-piece > .cv-ms-emblem .cv-ms-rank { font-size: 11px; min-width: 22px; height: 22px; }
.cv-ms-unlock-emblem .cv-ms-rank { font-size: 11px; min-width: 23px; height: 23px; }

/* W3.3 「连续活跃」口径说明气泡：ⓘ 点按展开，移动端可用（native title 在触屏不可见） */
.growth-summary-copy { position: relative; }

.growth-info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: 1px;
}

.growth-info-dot:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

.growth-tip-bubble {
  position: absolute;
  z-index: 6;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: min(240px, 72vw);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(20, 24, 32, .96);
  color: #fff;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.growth-tip-bubble[hidden] { display: none; }

/* 右侧卡片（连续活跃卡固定在最后）气泡改为右对齐，防溢出视口 */
.growth-summary-card:last-child .growth-tip-bubble { left: auto; right: 0; }
