/* 课件诊断：上传页保持完整；工作台按桌面三栏锁定视口 */

body.courseware-page:not(.cw-has-project),
body.courseware-page:not(.cw-has-project) .app-frame,
body.courseware-page:not(.cw-has-project) .app-main,
body.courseware-page:not(.cw-has-project) .app-content,
body.courseware-page:not(.cw-has-project) .wrap.page {
  background: var(--surface);
}

.cw-page { min-height: calc(100dvh - var(--header)); background: var(--surface); }
.cw-home {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 20px 28px 36px;
  box-sizing: border-box;
  height: calc(100dvh - var(--header));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
}
.cw-home-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
  margin-bottom: 8px;
  flex: none;
}
.cw-home.is-community .cw-home-toolbar { justify-content: flex-start; }
.cw-community-enter,
.cw-community-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  padding: 6px 2px;
}
.cw-community-enter:hover,
.cw-community-back:hover { color: var(--primary); }
.cw-home-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px 40px;
  align-items: stretch;
}
.cw-home-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cw-kicker { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.cw-home h1 { font-size: 36px; line-height: 1.22; margin: 0 0 12px; letter-spacing: -0.03em; color: var(--ink); }
.cw-lead { color: var(--muted); margin: 0 0 24px; max-width: 34em; font-size: 17px; line-height: 1.75; }

.cw-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-height: 240px;
  padding: 40px 28px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}
.cw-drop:hover, .cw-drop.on { border-color: var(--primary); background: var(--primary-soft); }
.cw-drop strong { font-size: 22px; font-weight: 650; color: var(--ink); }
.cw-drop .muted { font-size: 16px; }
.cw-file { display: none; }
.cw-item-open {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.cw-progress { margin-top: 16px; }
.cw-bar { height: 6px; background: var(--line); border-radius: 8px; overflow: hidden; }
.cw-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width 160ms linear; }
.cw-meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.cw-recent,
.cw-community {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cw-recent h2,
.cw-community h2 { font-size: 18px; margin: 0 0 14px; font-weight: 650; flex: none; }
.cw-community {
  flex: 1;
  min-height: 0;
  max-width: 720px;
}
.cw-community h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.cw-community-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  flex: none;
}
.cw-share-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  vertical-align: 1px;
}
.cw-list {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.cw-recent-empty {
  margin: 0;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}
.cw-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cw-item:hover { background: var(--bg); }
.cw-item b { display: block; font-size: 17px; font-weight: 650; }
.cw-item span { color: var(--muted); font-size: 14px; }
.cw-score { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; font-size: 18px; }

@media (max-width: 960px) {
  .cw-home { height: auto; min-height: calc(100dvh - var(--header)); }
  .cw-home-grid { grid-template-columns: 1fr; align-items: start; }
  .cw-drop { flex: none; min-height: 220px; }
  .cw-list { overflow: visible; }
}

/* ——— 工作台填满顶栏以下 ——— */
body.cw-has-project .cw-desk {
  --cw-accent: #9f2742;
  --cw-ink: #1d2433;
  --cw-muted: var(--color-text-secondary);
  --cw-line: #ececea;
  --cw-bg: #f5f6f7;
  --cw-surface: #fff;
  --cw-subtle: #fafaf9;
  --cw-high: #c53a3a;
  --cw-high-bg: #fff3f2;
  --cw-mid: #b86b18;
  --cw-mid-bg: #fff8ec;
  --cw-low: #4f6b8a;
  --cw-low-bg: #f2f6fa;
  --cw-ok: #3f7a5a;
  --rail: 220px;
  --side: 400px;
  color: var(--cw-ink);
}

.cw-desk {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  flex: 1;
}

.cw-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--cw-line, #ececea);
  flex: none;
}
.cw-head-meta { min-width: 0; flex: 1; overflow: hidden; }
.cw-head h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-head-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: var(--cw-muted, var(--color-text-secondary));
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}
.cw-head-sub > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  flex-shrink: 0;
}
.cw-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  background: #fff;
  color: var(--cw-ink, #1d2433);
  text-decoration: none;
  flex: none;
}
.cw-iconbtn:hover { background: #fafaf9; color: var(--cw-ink, #1d2433); text-decoration: none; }
.cw-iconbtn svg { display: block; }
.cw-textbtn {
  border: 0;
  background: transparent;
  color: var(--cw-accent, #9f2742);
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
}
.cw-textbtn:hover { text-decoration: underline; }
.cw-primary {
  appearance: none;
  border: 0;
  background: var(--cw-accent, #9f2742);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.cw-primary:hover { filter: brightness(0.96); }
.cw-desk .btn.ghost {
  border-radius: 8px;
  border-color: #e8e9ea;
  color: var(--cw-ink);
}

.cw-course {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.cw-course select {
  width: auto;
  min-width: 140px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e8e9ea;
  background: #fff;
  color: var(--cw-ink, #1d2433);
}
.cw-course select:invalid {
  border-color: #e8e9ea;
  box-shadow: none;
}
.cw-typectl {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  flex-wrap: wrap;
}
.cw-typectl select {
  min-width: 176px;
  font-weight: 600;
}
.cw-type-src {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 8px;
  background: #eef3f8;
  color: #4a6280;
  white-space: nowrap;
}
.cw-type-src.teacher { background: #f4eee4; color: #8a5a18; }
.cw-type-src.ask { background: #f8efe2; color: #a15c12; }
.cw-type-help {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid #d8dde3;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
}
.cw-type-help:hover { border-color: #9f2742; color: #9f2742; }
.cw-type-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(320px, 82vw);
  background: #fff;
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(20, 30, 50, 0.12);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cw-ink, #1d2433);
}
.cw-type-pop p { margin: 0 0 6px; }
.cw-type-pop ul { margin: 0 0 8px; padding-left: 1.1em; }
.cw-type-ask {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff8ee;
  color: #8a5a18;
  font-size: 13px;
  line-height: 1.55;
}
.cw-uncertain { color: var(--cw-mid, #b86b18); font-size: 12px; margin: 6px 0 0; }

.cw-tabs {
  display: flex;
  gap: 4px;
  height: 48px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e9e9e7;
  flex: none;
  align-items: stretch;
}
.cw-tabs button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
  color: var(--cw-muted, var(--color-text-secondary));
  font-size: 14px;
  position: relative;
  border-radius: 0;
}
.cw-tabs button.on {
  color: var(--cw-ink, #1d2433);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}
.cw-tabs button.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--cw-accent, #9f2742);
  border-radius: 2px;
}

.cw-split {
  display: grid;
  grid-template-columns: var(--rail, 220px) minmax(0, 1fr) var(--side, 400px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: var(--cw-bg, #f5f6f7);
}
.cw-split.is-fold { --rail: 52px; }

.cw-rail {
  background: #fafaf9;
  border-right: 1px solid #ececea;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cw-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 14px;
  font-size: 13px;
  color: var(--cw-muted);
  flex: none;
}
.cw-rail-head button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--cw-muted);
  border-radius: 8px;
  font-size: 16px;
}
.cw-rail-head button:hover { background: #eee; color: var(--cw-ink); }
.cw-rail-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 16px;
}
.cw-rail.is-fold .cw-rail-list { padding: 4px 6px 16px; }
.cw-rail .muted { padding: 12px 4px; font-size: 13px; }

.cw-thumb {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
}
.cw-mini {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: 1px solid #ececea;
  outline-offset: -1px;
}
.cw-thumb.on .cw-mini {
  outline: 2px solid var(--cw-accent, #9f2742);
  outline-offset: -2px;
}
.cw-thumb.rel .cw-mini {
  outline: 2px solid rgba(159, 39, 66, 0.35);
  outline-offset: -2px;
}
.cw-thumb.on.rel .cw-mini { outline-color: var(--cw-accent, #9f2742); }
.cw-thumb i {
  display: block;
  padding: 6px 2px 0;
  font-size: 12px;
  font-style: normal;
  color: var(--cw-muted);
  line-height: 1.4;
}
.cw-thumb.on i { color: var(--cw-ink); font-weight: 600; }
.cw-dots {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  z-index: 1;
}
.cw-dots b {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #fff;
}
.cw-dots .d-high { background: #c53a3a; }
.cw-dots .d-mid { background: #b86b18; }

.cw-mini-slide, .cw-mini-slide > * { width: 100%; height: 100%; }
.cw-mini-media {
  display: grid;
  grid-template-columns: 1fr;
  background: #eef0f2;
}
.cw-mini-media.two { grid-template-columns: 1fr 1fr; }
.cw-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cw-mini-layout {
  display: flex;
  flex-direction: column;
  gap: 8%;
  padding: 12% 10%;
  box-sizing: border-box;
  background: #fff;
}
.cw-mini-layout b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
  color: #1d2433;
}
.cw-mini-layout span {
  display: block;
  height: 6px;
  background: #e8e9ea;
  border-radius: 2px;
}
.cw-mini-layout span:last-child { width: 62%; }

.cw-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  margin: 0 0 4px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--cw-muted);
}
.cw-num.on { background: #fff; color: var(--cw-accent); font-weight: 700; box-shadow: 0 0 0 2px var(--cw-accent) inset; }
.cw-num.rel { color: var(--cw-accent); }

.cw-center {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f6f7;
  position: relative;
}
.cw-report {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.cw-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #f5f6f7;
}
.cw-stage:fullscreen {
  background: #f5f6f7;
}
.cw-stage:fullscreen .cw-stage-canvas {
  inset: 24px 24px 64px;
}
.cw-stage-canvas {
  position: absolute;
  inset: 16px 16px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cw-pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
}
.cw-preview-fail {
  max-width: 520px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.cw-preview-fail h3 { margin: 0 0 8px; font-size: 18px; }
.cw-preview-fail p { margin: 0 0 16px; color: var(--color-text-secondary); line-height: 1.6; }
.cw-font-warn {
  position: absolute;
  top: 8px;
  left: 16px;
  right: 16px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: #8a5a12;
  background: #fff6e8;
  border-radius: 8px;
}
.cw-mini-img, .cw-mini-ph {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.cw-mini-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #98a2b3;
}
.cw-fs-hud {
  display: none;
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(29, 36, 51, 0.72);
  color: #fff;
  font-size: 13px;
}
.cw-stage:fullscreen .cw-fs-hud { display: block; }
.cw-stage:fullscreen .cw-toolbar { opacity: 0; }
.cw-stage:fullscreen:hover .cw-toolbar { opacity: 0.92; }
.cw-ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--cw-muted);
}
.cw-ver select {
  border: 1px solid #e8e9ea;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
}
.cw-notes { margin-top: 16px; font-size: 13px; color: var(--color-text-secondary); }
.cw-notes p { white-space: pre-wrap; line-height: 1.6; }
.cw-cmp-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.cw-slide {
  aspect-ratio: 16 / 9;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  padding: 4.2% 4.6%;
  box-sizing: border-box;
}
.cw-slide-imgs {
  display: flex;
  gap: 8px;
  max-height: 34%;
  margin-bottom: 10px;
  flex: none;
}
.cw-slide-imgs.one { max-height: 42%; }
.cw-slide-imgs img {
  max-height: 100%;
  object-fit: contain;
  background: #f5f6f7;
}
.cw-slide-copy { min-height: 0; overflow: auto; flex: 1; }
.cw-preview-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #1d2433;
}
.cw-preview-body {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #1d2433;
}

.cw-toolbar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  color: #1d2433;
  opacity: 0.78;
  transition: opacity 200ms ease;
  z-index: 2;
}
.cw-stage:hover .cw-toolbar,
.cw-toolbar:hover,
.cw-toolbar:focus-within { opacity: 1; }
.cw-toolbar button {
  border: 0;
  background: transparent;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
}
.cw-toolbar button:hover { background: #f0f1f2; }
.cw-toolbar button:disabled { opacity: 0.35; cursor: default; }
.cw-toolbar span { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.cw-toolbar i { width: 1px; height: 14px; background: #e8e9ea; display: block; }

.cw-wait-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 246, 247, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.cw-side {
  background: #fff;
  border-left: 1px solid #ececea;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cw-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid #ececea;
  flex: none;
}
.cw-side-tabs { display: flex; gap: 2px; }
.cw-side-tabs button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--cw-muted);
  font-size: 13px;
  border-radius: 8px;
}
.cw-side-tabs button.on { color: var(--cw-ink); font-weight: 600; background: #f5f6f7; }
.cw-side-close {
  display: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  color: var(--cw-muted);
}
.cw-side-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 28px;
  animation: cwFade 180ms ease;
}
@keyframes cwFade { from { opacity: 0; } to { opacity: 1; } }

.cw-page-kicker {
  font-size: 12px;
  color: var(--cw-muted);
  letter-spacing: 0.04em;
}
.cw-page-sum h2 {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.cw-page-tags {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--cw-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cw-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f5f6f7;
  color: var(--cw-ink);
  font-size: 12px;
  font-weight: 600;
}
.cw-status {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #ececea;
}
.cw-status div {
  display: grid;
  grid-template-columns: 72px 10px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--cw-muted);
}
.cw-status b {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  display: block;
}
.cw-status b.ok { background: #3f7a5a; }
.cw-status b.warn { background: #b86b18; }
.cw-status b.bad { background: #c53a3a; }
.cw-issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.cw-issue-head strong { font-size: 14px; font-weight: 600; }
.cw-issue-head button {
  border: 0;
  background: transparent;
  color: var(--cw-accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.cw-issue-head button.on { color: var(--cw-ink); }

.cw-card {
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 8px;
  padding: 0;
  margin: 0 0 10px;
}
.cw-card-top {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 16px 12px;
  cursor: pointer;
  color: inherit;
}
.cw-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cw-card-meta > span:last-child { font-size: 12px; color: var(--cw-muted); }
.cw-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cw-card-top > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #1d2433;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cw-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--cw-muted);
}
.cw-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--cw-muted);
}
.cw-card-body {
  padding: 0 16px 14px;
  border-top: 1px solid #f0f1f2;
}
.cw-card-body h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-muted);
}
.cw-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}
.cw-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.cw-card-actions button {
  border: 1px solid #e8e9ea;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.cw-card-actions button:hover { background: #fafaf9; }
.cw-card-actions .cw-primary {
  background: var(--cw-accent, #9f2742);
  color: #fff;
  border-color: transparent;
}
.cw-card-actions .cw-primary:hover { background: var(--cw-accent, #9f2742); filter: brightness(0.96); }
.cw-card-actions .cw-link {
  border-color: transparent;
  color: var(--cw-accent);
  font-weight: 600;
}
.cw-opt .cw-card-actions {
  flex-direction: column;
  align-items: stretch;
}
.cw-opt .cw-card-actions .btn,
.cw-opt .cw-card-actions a.btn {
  text-align: center;
}

.cw-sev {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 650;
}
.cw-sev.high { color: #c53a3a; background: #fff3f2; }
.cw-sev.medium { color: #b86b18; background: #fff8ec; }
.cw-sev.low { color: #4f6b8a; background: #f2f6fa; }
.cw-pri { font-size: 13px; color: var(--cw-muted); }

.cw-empty, .cw-wait {
  padding: 28px 8px;
  text-align: center;
  color: var(--cw-muted);
  font-size: 14px;
  line-height: 1.7;
}
.cw-opt section {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #ececea;
}
.cw-opt h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.cw-opt h3 { font-size: 13px; font-weight: 600; color: var(--cw-muted); margin: 0 0 8px; }
.cw-opt p { margin: 0; font-size: 14px; line-height: 1.7; }
.cw-opt-kicker { font-size: 12px; color: var(--cw-muted); margin: 0 0 6px; }
.cw-log {
  padding: 12px 0;
  border-bottom: 1px solid #ececea;
}
.cw-log b { display: block; font-size: 12px; color: var(--cw-muted); margin-bottom: 4px; }
.cw-log p { margin: 0 0 8px; font-size: 14px; }
.cw-log button {
  border: 0;
  background: transparent;
  color: var(--cw-accent);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.cw-fab {
  display: none;
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  border: 0;
  background: #fff;
  color: var(--cw-ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.cw-mask {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 51, 0.18);
  z-index: 3;
}

.cw-hero, .cw-summary, .cw-block {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.cw-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
}
.cw-total { text-align: center; padding-top: 8px; }
.cw-total em { display: block; font-style: normal; font-size: 48px; line-height: 1; font-weight: 700; }
.cw-total span { color: var(--cw-muted); font-size: 12px; }
.cw-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.cw-dim { font-size: 13px; padding: 4px 0; }
.cw-dim-row { display: flex; justify-content: space-between; }
.cw-dim b { font-variant-numeric: tabular-nums; }
.cw-dim small { display: block; color: var(--cw-muted); font-size: 12px; margin-top: 2px; }
.cw-summary h2, .cw-block h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.cw-summary p { margin: 0; line-height: 1.7; font-size: 14px; }

.cw-tops { display: grid; gap: 10px; }
.cw-top {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}
.cw-top .no { font-size: 22px; font-weight: 700; color: #cfd2d6; line-height: 1; }
.cw-top h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.cw-top p { margin: 0 0 8px; color: #1d2433; font-size: 14px; line-height: 1.7; }

.cw-adv { display: grid; gap: 8px; padding: 0; margin: 0; }
.cw-adv li { list-style: none; padding-left: 18px; position: relative; font-size: 14px; line-height: 1.7; }
.cw-adv li::before { content: "＋"; position: absolute; left: 0; color: #3f7a5a; font-weight: 700; }

.cw-dep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cw-dep div { background: #f5f6f7; border-radius: 8px; padding: 10px 12px; }
.cw-dep b { display: block; font-size: 15px; }
.cw-dep span { color: var(--cw-muted); font-size: 12px; }

.cw-map { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.cw-node {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid #e8e9ea;
  cursor: pointer;
}
.cw-node:last-child { border-left-color: transparent; }
.cw-node::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 8px;
  background: #9f2742;
  box-shadow: 0 0 0 3px #fff;
}
.cw-node strong { display: block; }
.cw-node em { font-style: normal; color: var(--cw-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.cw-kind {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  background: #f5f6f7;
}
.cw-node.tone-0::before { background: #3f7a5a; }
.cw-node.tone-1::before { background: #4f6b8a; }
.cw-node.tone-2::before { background: #9f2742; }
.cw-node.tone-3::before { background: #b86b18; }
.cw-node.tone-4::before { background: #6b5b95; }
.cw-node.tone-5::before { background: #3d6b7a; }

.cw-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cw-filters button {
  border: 0;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--cw-muted);
}
.cw-filters button.on { background: #1d2433; color: #fff; }

.cw-qmap { display: flex; flex-direction: column; gap: 0; }
.cw-q {
  padding: 0 0 14px 18px;
  border-left: 2px solid #e8e9ea;
  position: relative;
  cursor: pointer;
}
.cw-q::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  position: absolute;
  left: -5px;
  top: 6px;
  background: #4f6b8a;
}
.cw-q.fact::before { background: #4f6b8a; }
.cw-q.explain::before { background: #3f7a5a; }
.cw-q.mechanism::before { background: #9f2742; }
.cw-q.evaluate::before { background: #b86b18; }
.cw-q.transfer::before { background: #9f2742; }
.cw-q b { font-size: 12px; color: var(--cw-muted); }

.cw-levels { display: grid; gap: 8px; }
.cw-level { display: grid; grid-template-columns: 72px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.cw-level i { height: 8px; background: #e8e9ea; border-radius: 8px; display: block; }
.cw-level i b { display: block; height: 100%; background: #4f6b8a; border-radius: inherit; }

.cw-special { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cw-special button {
  text-align: left;
  padding: 14px;
  border: 1px solid #ececea;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.cw-special button:hover { border-color: #9f2742; }
.cw-special strong { display: block; margin-bottom: 4px; }
.cw-special span { color: var(--cw-muted); font-size: 13px; }

.cw-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff8ec;
  border-radius: 8px;
  color: #b86b18;
  font-size: 13px;
}
.cw-err { color: var(--color-error); font-size: 13px; margin-top: 8px; }

@media (min-width: 1600px) {
  body.cw-has-project .cw-desk { --rail: 220px; --side: 410px; }
}
@media (max-width: 1599px) {
  body.cw-has-project .cw-desk { --rail: 190px; --side: 360px; }
}
@media (max-width: 1279px) {
  .cw-split { grid-template-columns: var(--rail, 190px) minmax(0, 1fr); }
  .cw-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    transform: translateX(110%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 4;
    border-left: 0;
  }
  .cw-split.is-side .cw-side { transform: none; }
  .cw-side-close { display: block; }
  .cw-fab { display: inline-flex; align-items: center; }
  .cw-desk:has(.cw-split.is-side) .cw-mask { display: block; }
  .cw-desk:has(.cw-split.is-side) .cw-fab { display: none; }
}
@media (max-width: 720px) {
  .cw-hero, .cw-dims, .cw-dep, .cw-special, .cw-item { grid-template-columns: 1fr; }
  .cw-split { grid-template-columns: 52px minmax(0, 1fr); }
  .cw-head { flex-wrap: wrap; min-height: 0; }
}

/* ——— 上传/诊断进度弹窗 ——— */
.cw-prog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 36, 51, 0.46);
  backdrop-filter: blur(8px);
}
.cw-prog[hidden] { display: none !important; }
.cw-prog-card {
  width: min(400px, calc(100vw - 32px));
  background: #fff;
  border-radius: 8px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(29, 36, 51, 0.22);
  animation: cwProgIn 220ms ease both;
}
@keyframes cwProgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cw-prog-ring {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
}
.cw-prog-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.cw-prog-ring .track,
.cw-prog-ring .fill {
  fill: none;
  stroke-width: 7;
}
.cw-prog-ring .track { stroke: #f0f1f2; }
.cw-prog-ring .fill {
  stroke: #9f2742;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
}
.cw-prog-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  color: #1d2433;
}
.cw-prog-pct b {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cw-prog-pct span {
  font-size: 14px;
  color: var(--color-text-secondary);
  position: relative;
  top: 8px;
}
.cw-prog-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #1d2433;
}
#cwProgHint {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  min-height: 1.5em;
  word-break: break-all;
}
.cw-prog-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  text-align: left;
}
.cw-prog-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-top: 1px solid #f0f1f2;
}
.cw-prog-steps li:first-child { border-top: 0; }
.cw-prog-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #e8e9ea;
  flex: none;
}
.cw-prog-steps li.on {
  color: #1d2433;
  font-weight: 600;
}
.cw-prog-steps li.on::before {
  background: #9f2742;
  box-shadow: 0 0 0 4px #fff3f2;
  animation: cwProgPulse 1.2s ease-out infinite;
}
.cw-prog-steps li.done { color: #3f7a5a; }
.cw-prog-steps li.done::before { background: #3f7a5a; box-shadow: none; animation: none; }
@keyframes cwProgPulse {
  0% { box-shadow: 0 0 0 0 rgba(159, 39, 66, 0.28); }
  100% { box-shadow: 0 0 0 8px rgba(159, 39, 66, 0); }
}
.cw-prog-err {
  margin: 14px 0 0;
  color: #c53a3a;
  font-size: 13px;
  line-height: 1.6;
}
#cwProgClose {
  margin-top: 16px;
  background: #9f2742;
  border: 0;
}
.cw-opt-caps {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fafaf9;
  border-radius: 8px;
  text-align: left;
}
.cw-opt-caps p { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.cw-opt-caps ul { margin: 0; padding: 0; list-style: none; }
.cw-opt-caps li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 13px;
  color: #3f7a5a;
}
.cw-opt-caps li::before { content: "✓"; position: absolute; left: 0; }
.cw-opt-caps em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--color-text-secondary); }
.cw-exec-drawer {
  margin-top: 16px;
  padding: 16px;
  background: #fafaf9;
  border-radius: 8px;
  text-align: left;
}
.cw-exec-drawer h3 { margin: 0 0 6px; font-size: 16px; }
.cw-exec-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #ececea;
  cursor: pointer;
}
.cw-exec-item b { display: block; font-size: 14px; }
.cw-exec-item small { display: block; white-space: pre-wrap; color: var(--color-text-secondary); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.cw-exec-item em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--color-text-secondary); }
.cw-exec-extra { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }
.cw-exec-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 8px 0 12px; }
.cw-prog-steps li.done { color: #3f7a5a; }
.cw-prog-steps li.done::before { background: #3f7a5a; animation: none; box-shadow: none; }
.cw-prog-steps li.doing { color: #1d2433; font-weight: 600; }
.cw-prog-steps li.doing::before { background: #9f2742; animation: cwProgPulse 1.2s ease-out infinite; }
.cw-prog-steps li.fail { color: #c53a3a; }
.cw-prog-steps li.fail::before { background: #c53a3a; animation: none; }
.cw-compare { padding: 20px 24px 40px; }
.cw-cmp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cw-cmp-head h2 { margin: 0; font-size: 18px; }
.cw-cmp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.cw-cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #ececea;
}
.cw-cmp-row i { display: block; font-style: normal; font-size: 12px; color: var(--color-text-secondary); }
.cw-cmp-row.chg b { color: #9f2742; }

/* ——— 综合诊断 V2 仪表盘 ——— */
.cw-report:has(.cw-dash) { padding: 16px 20px 48px; }
.cw-dash {
  --d-title: #172033;
  --d-ink: #202939;
  --d-body: #526174;
  --d-aux: #8993A4;
  --d-ok: #3E7B5B;
  --d-ok-bg: #F2F8F4;
  --d-warn: #B46A17;
  --d-warn-bg: #FFF7EA;
  --d-risk: #B73A45;
  --d-risk-bg: #FFF2F3;
  --d-info: #496B91;
  --d-info-bg: #F3F6FA;
  --d-accent: #A62846;
  max-width: 1100px;
  color: var(--d-body);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}
.cw-dash h2, .cw-dash h3 { color: var(--d-title); font-weight: 700; }
.cw-dash h2 { font-size: 22px; line-height: 1.4; margin: 0 0 12px; max-width: 820px; }
.cw-dash h3 { font-size: 16px; font-weight: 650; margin: 0 0 12px; }
.cw-dash p, .cw-dash li { max-width: 820px; }
.cw-dash-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--d-aux);
  margin-bottom: 14px;
}
.cw-dash-kicker .cw-textbtn { color: var(--d-aux); font-weight: 500; }
.cw-dash-kicker .cw-textbtn.on { color: var(--d-accent); font-weight: 650; }
.cw-dash-hero, .cw-dash-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.cw-dash-score { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.cw-dash-num { text-align: center; padding-top: 4px; }
.cw-dash-num em {
  display: block;
  font-style: normal;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  color: var(--d-accent);
  letter-spacing: -0.03em;
}
.cw-dash-num span { display: block; margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--d-ink); }
.cw-stdbtn {
  display: inline-block;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--d-aux);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cw-stdbtn.on, .cw-stdbtn:hover { color: var(--d-accent); }
.cw-stdline { margin: 0 0 8px; font-size: 13px; color: var(--d-aux); line-height: 1.5; }
.cw-type {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--d-info-bg);
  color: var(--d-info);
  font-size: 12px;
  font-weight: 650;
}
.cw-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.cw-pills span {
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 550;
}
.cw-pills .ok { background: var(--d-ok-bg); color: var(--d-ok); }
.cw-pills .risk { background: var(--d-risk-bg); color: var(--d-risk); }
.cw-pills .info { background: var(--d-info-bg); color: var(--d-info); }
.cw-priority { margin: 12px 0 0; color: var(--d-ink); font-weight: 600; font-size: 15px; }
.cw-fit { margin: 8px 0 0; font-size: 13px; color: var(--d-info, #4a6280); line-height: 1.55; }
.cw-weights {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f6f7f9;
  border-radius: 8px;
  font-size: 13px;
  color: var(--d-ink);
}
.cw-weights p { grid-column: 1 / -1; margin: 0 0 4px; color: var(--d-aux); font-size: 12px; }
.cw-weights b { font-variant-numeric: tabular-nums; font-weight: 650; }
.cw-dash-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 12px; margin-bottom: 12px; }
.cw-dash-grid > .cw-dash-card { margin: 0; }
.cw-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cw-card-head h3 { margin: 0; }
.cw-judge { margin: 0 0 10px; color: var(--d-ink); font-weight: 600; font-size: 16px; }
.cw-riskline { margin: 0 0 12px; color: var(--d-warn); background: var(--d-warn-bg); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.cw-aux { margin: 8px 0 0; font-size: 13px; color: var(--d-aux); line-height: 1.6; }
.cw-dimv-list { display: grid; gap: 2px; }
.cw-dimv-top {
  display: grid;
  grid-template-columns: 72px 36px 72px;
  grid-template-areas: "lab num band" "bar bar bar" "txt txt txt";
  column-gap: 8px;
  row-gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 4px 10px;
  border-bottom: 1px solid #f0f1f2;
  cursor: pointer;
  color: inherit;
}
.cw-dimv:last-child .cw-dimv-top { border-bottom: 0; }
.cw-dimv-top > span { grid-area: lab; font-size: 13px; color: var(--d-ink); font-weight: 600; }
.cw-dimv-top > strong { grid-area: num; font-size: 15px; color: var(--d-title); font-variant-numeric: tabular-nums; }
.cw-dimv-top > em { grid-area: band; font-style: normal; font-size: 12px; text-align: right; }
.cw-dimv-top > em.priority { color: var(--d-risk); }
.cw-dimv-top > em.improve { color: var(--d-warn); }
.cw-dimv-top > em.good, .cw-dimv-top > em.strong { color: var(--d-ok); }
.cw-dim-bar { grid-area: bar; height: 6px; background: #eceff3; border-radius: 8px; display: block; overflow: hidden; }
.cw-dim-bar b { display: block; height: 100%; border-radius: inherit; background: #8aa0b8; }
.cw-dim-bar b.priority { background: var(--d-risk); }
.cw-dim-bar b.improve { background: var(--d-warn); }
.cw-dim-bar b.good, .cw-dim-bar b.strong { background: var(--d-ok); }
.cw-dimv-top > p {
  grid-area: txt;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--d-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}
.cw-dimv-more { padding: 4px 4px 12px; }
.cw-dimv-more h4 { margin: 0 0 6px; font-size: 12px; color: var(--d-aux); font-weight: 650; }
.cw-dimv-more ul { margin: 0; padding-left: 18px; }
.cw-dimv-more li { font-size: 13px; color: var(--d-body); margin: 0 0 4px; }
.cw-dim-impact { margin: 8px 0; font-size: 13px; color: var(--d-body); }
.cw-fix-list { display: grid; gap: 10px; }
.cw-fix { border: 1px solid #ececea; border-radius: 8px; padding: 12px 14px; }
.cw-fix.must_fix { background: var(--d-risk-bg); border-color: #f3d0d3; }
.cw-fix.should_fix { background: var(--d-warn-bg); border-color: #f3e2c4; }
.cw-fix.later { background: var(--d-info-bg); border-color: #dce4ee; }
.cw-fix-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
.cw-fix-head > b { font-size: 20px; color: #c5ccd6; line-height: 1.1; }
.cw-fix.must_fix .cw-fix-head > b { color: var(--d-risk); }
.cw-fix h3 { margin: 4px 0 6px; font-size: 15px; font-weight: 650; color: var(--d-ink); }
.cw-fix p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cw-fix em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--d-aux); }
.cw-fix-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.cw-fix-sev, .cw-evid {
  font-size: 12px;
  font-weight: 650;
  padding: 1px 7px;
  border-radius: 6px;
  background: #fff;
}
.cw-fix.must_fix .cw-fix-sev { color: var(--d-risk); }
.cw-fix.should_fix .cw-fix-sev { color: var(--d-warn); }
.cw-fix.later .cw-fix-sev { color: var(--d-info); }
.cw-evid.confirmed { color: var(--d-risk); }
.cw-evid.suspected { color: var(--d-warn); }
.cw-fix-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cw-fix-actions button, .cw-morebtn {
  border: 1px solid #e4e6ea;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--d-ink);
}
.cw-fix-actions .cw-link { border-color: transparent; color: var(--d-accent); font-weight: 650; }
.cw-fix-more { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.06); }
.cw-fix-more p { -webkit-line-clamp: unset; display: block; margin: 0 0 8px; }
.cw-fix-more strong { display: block; font-size: 12px; color: var(--d-aux); font-weight: 650; }
.cw-morebtn { width: 100%; margin-top: 10px; }
.cw-flow { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.cw-flow-arrow { color: var(--d-aux); font-size: 12px; padding: 2px 0 2px 16px; }
.cw-flow-step {
  text-align: left;
  border: 1px solid #ececea;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
}
.cw-flow-step strong { display: block; color: var(--d-ink); font-size: 15px; }
.cw-flow-step em { font-style: normal; font-size: 12px; color: var(--d-aux); }
.cw-flow-step span { display: block; font-size: 13px; color: var(--d-body); margin-top: 2px; }
.cw-flow-step b { display: block; margin-top: 6px; font-size: 13px; color: var(--d-warn); font-weight: 650; }
.cw-flow-step.is-risk { background: var(--d-warn-bg); border-color: #f3e2c4; }
.cw-scales { display: grid; gap: 10px; margin-bottom: 12px; }
.cw-scale-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 13px; }
.cw-scale { position: relative; height: 8px; background: #e8edf2; border-radius: 8px; }
.cw-scale i { position: absolute; top: 12px; font-style: normal; font-size: 11px; color: var(--d-aux); }
.cw-scale i:last-of-type { right: 0; }
.cw-scale b {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 8px;
  background: var(--d-accent);
  box-shadow: 0 0 0 3px #fff;
}
.cw-scale-row > em { font-style: normal; font-size: 12px; color: var(--d-ink); text-align: right; }
.cw-keep { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cw-keep li {
  position: relative;
  padding: 0 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--d-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cw-keep li::before { content: "✓"; position: absolute; left: 0; color: var(--d-ok); font-weight: 700; }
.cw-path ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cw-path li {
  position: relative;
  padding: 0 0 12px 22px;
  border-left: 2px solid #ececea;
}
.cw-path li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cw-path li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--d-accent);
}
.cw-path b { display: block; color: var(--d-ink); font-size: 15px; font-weight: 650; }
.cw-path span { display: block; font-size: 14px; color: var(--d-body); }
.cw-path em { font-style: normal; font-size: 12px; color: var(--d-aux); }
.cw-path-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.cw-other ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cw-other button {
  border: 0;
  background: transparent;
  color: var(--d-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  padding: 4px 0;
}
.cw-other button:hover { color: var(--d-accent); }
@media (max-width: 1100px) {
  .cw-dash-grid, .cw-dash-score { grid-template-columns: 1fr; }
}

/* =====================================================================
   视觉收敛层（2026-09-30）：首页 + 诊断台，遵循全站克制规范
   —— 扁平、1px 分隔线、无渐变/发光、控件圆角 ≤6、浮层 ≤8
   ===================================================================== */

/* 首页与诊断台各自带标题，隐藏外层重复的通用页头 */
body.courseware-page .top { display: none; }

/* ---------- 首页 ---------- */
.cw-kicker {
  display: block;
  align-self: flex-start;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--color-primary, var(--color-primary));
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.cw-home h1 { font-size: 28px; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; }
.cw-lead { font-size: 16px; line-height: 1.75; margin: 0 0 20px; max-width: 34em; }
.cw-dims { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.cw-dim {
  padding: 4px 11px;
  border-radius: var(--radius-control, 6px);
  border: 1px solid var(--color-border, var(--color-border));
  background: var(--color-surface, #fff);
  color: var(--color-text-secondary, var(--color-neutral));
  font-size: 13px;
  font-weight: 450;
  white-space: nowrap;
}
.cw-drop {
  min-height: 230px;
  border: 1px dashed var(--color-border-strong, var(--color-border-strong));
  border-radius: var(--radius-overlay, 8px);
  background: var(--color-surface, #fff);
  gap: 8px;
  box-shadow: none;
}
.cw-drop:hover, .cw-drop.on {
  border-color: var(--color-primary, var(--color-primary));
  background: var(--color-surface-hover, #f3f4f6);
  transform: none;
  box-shadow: none;
}
.cw-drop strong { font-size: 19px; font-weight: 650; }
.cw-drop .muted { font-size: 14px; }
.cw-drop-ic {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-overlay, 8px);
  display: grid;
  place-items: center;
  background: var(--color-primary-soft, var(--color-primary-soft));
  color: var(--color-primary, var(--color-primary));
  margin-bottom: 4px;
}
.cw-drop-ic svg { width: 24px; height: 24px; }

/* 最近诊断 / 社区：扁平列表行，1px 分隔线，不用卡片 */
.cw-list { gap: 0; }
.cw-item {
  padding: 14px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border, var(--color-border));
  border-radius: 0;
}
.cw-item:first-child { border-top: 1px solid var(--color-border, var(--color-border)); }
.cw-item:hover { background: var(--color-surface-hover, #f3f4f6); }
.cw-item b { font-size: 15px; font-weight: 600; }
.cw-item span { font-size: 13px; }
.cw-score { font-size: 16px; }
.cw-recent-empty {
  border-radius: var(--radius-control, 6px);
  padding: 32px 20px;
  font-size: 14px;
}
.cw-share-tag {
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}
.cw-bar { border-radius: var(--radius-control, 6px); }

/* ---------- 诊断台 ---------- */
body.cw-has-project .cw-desk { --cw-accent: var(--color-primary); }
.cw-desk { background: var(--cw-bg, #f5f6f7); }
.cw-head {
  align-items: flex-start;
  gap: 22px;
  padding: 14px 22px 12px;
  background: #fff;
  border-bottom: 1px solid var(--cw-line, #ececea);
}
.cw-head h1 { font-size: 20px; }
.cw-head-sub { margin-top: 4px; gap: 8px; flex-wrap: wrap; }
.cw-course { margin-top: 10px; gap: 10px; }
.cw-course select {
  height: 34px;
  padding: 0 30px 0 12px;
  border-radius: var(--radius-control, 6px);
  border-color: var(--cw-line, #e3e5e8);
  box-shadow: none;
  appearance: auto;
}
.cw-course select:hover { border-color: var(--cw-accent, var(--color-primary)); }
.cw-type-src { line-height: 1.4; }
.cw-head-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
.cw-head-actions .btn.ghost,
.cw-head-actions .btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  font-size: 13px;
  background: #fff;
  box-shadow: none;
}
.cw-head-actions .cw-primary {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-control, 6px);
  box-shadow: none;
}
.cw-head-actions .cw-iconbtn { width: 34px; height: 34px; border-radius: var(--radius-control, 6px); }
.cw-uncertain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-control, 6px);
  background: var(--cw-mid-bg, #fff8ec);
  border: 1px solid color-mix(in srgb, var(--cw-mid, #b86b18) 24%, transparent);
  color: var(--cw-mid, #b86b18);
  font-weight: 550;
}
.cw-uncertain::before { content: "⚠"; font-size: 12px; }
.cw-tabs { padding: 0 20px; gap: 2px; background: #fff; }
.cw-tabs button { font-size: 14px; padding: 0 16px; transition: color 120ms ease, background 120ms ease; }
.cw-tabs button:hover { color: var(--cw-ink, #1d2433); background: var(--cw-subtle, #fafaf9); }
.cw-tabs button.on { color: var(--cw-accent, var(--color-primary)); }
