.preview-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #d9d3c6;
  border-bottom: 1px solid #d9d3c6;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.preview-workspace-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: #003f88;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}
.preview-workspace-nav > a:hover { background: #e8f1fb; }
.preview-workspace-nav > a[aria-current="page"] { color: white; background: #0759b8; border-color: #10283e; }
.preview-feature-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 11px 0 5px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.preview-feature-group { min-width: 0; padding: 8px 10px 9px; border: 1px solid #e3d9c2; border-radius: 9px; background: #fffdf8; }
.preview-feature-group h2 { margin: 0 0 6px; color: #59626b; font-size: 10px; font-weight: 650; line-height: 1.4; }
.preview-feature-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.preview-feature-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; color: #003f88; font-size: 12px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.preview-feature-links a:hover { background: #e8f1fb; }
.preview-feature-links a[aria-current="location"] { border-color: #0759b8; background: #eaf2fc; color: #073a71; }
.preview-workspace-note { margin: 4px 0 14px; color: #58636d; font: 10px/1.6 "PingFang SC", "Microsoft YaHei", sans-serif; }
.preview-workspace-nav a:focus-visible, .preview-feature-links a:focus-visible, .preview-creator-archive > summary:focus-visible { outline: 3px solid #f2672b; outline-offset: 3px; }

/* Preview management has one focused destination at a time. */
body[data-workbench-preview] .workspace-nav,
body[data-workbench-preview] .records-nav { display: none !important; }
body[data-workbench-preview] #todaySecondary > summary { display: none; }
body[data-workbench-preview] #todaySecondary:not([open]) { display: none !important; }
body[data-workbench-preview] #todaySecondary { border: 0; padding: 0; background: none; }
body[data-workbench-preview] #todaySecondary > .today-secondary-content { padding: 0; border: 0; }
body[data-workbench-preview] .day-close { margin-top: 12px; }
body[data-workbench-preview][data-preview-feature="today"] #todaySecondary { display: none !important; }

body[data-workbench-preview][data-preview-feature="schedule"] #today,
body[data-workbench-preview][data-preview-feature="schedule"] .today-plan,
body[data-workbench-preview][data-preview-feature="schedule"] #todaySecondary #decisions,
body[data-workbench-preview][data-preview-feature="schedule"] #todaySecondary .day-close,
body[data-workbench-preview][data-preview-feature="decisions"] #today,
body[data-workbench-preview][data-preview-feature="decisions"] .today-plan,
body[data-workbench-preview][data-preview-feature="decisions"] #todaySecondary #schedule,
body[data-workbench-preview][data-preview-feature="decisions"] #todaySecondary .day-close,
body[data-workbench-preview][data-preview-feature="review"] #today,
body[data-workbench-preview][data-preview-feature="review"] .today-plan,
body[data-workbench-preview][data-preview-feature="review"] #todaySecondary #schedule,
body[data-workbench-preview][data-preview-feature="review"] #todaySecondary #decisions { display: none !important; }

body[data-workbench-preview][data-preview-feature="history"] #workRadar > #workMemory { display: none !important; }
body[data-workbench-preview][data-preview-feature="memory"] #workRadar > .radar-heading,
body[data-workbench-preview][data-preview-feature="memory"] #workRadar > #radarGrid { display: none !important; }
body[data-workbench-preview][data-preview-area="production"] .creator-quick-actions { display: none !important; }

/* Content production: a compact map and exactly one active workspace. */
.preview-stage-nav { display: flex; align-items: stretch; gap: 6px; padding: 10px 0 12px; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.preview-stage-nav a { color: #16416e; text-decoration: none; }
.preview-overview-link,
.preview-stage-link { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 10px; border: 1px solid #e2d5b8; border-radius: 8px; background: #fffdf8; }
.preview-overview-link { justify-content: center; min-width: 55px; font-size: 11px; font-weight: 750; }
.preview-stage-link { flex: 1; }
.preview-stage-link:hover, .preview-overview-link:hover { border-color: #0759b8; background: #eef4fb; }
.preview-stage-link[aria-current="step"], .preview-overview-link[aria-current="page"] { border-color: #0759b8; background: #eaf2fc; box-shadow: inset 0 -2px #0759b8; }
.preview-stage-number { color: #d85a2b; font-size: 10px; font-weight: 800; }
.preview-stage-label { font-size: 11px; font-weight: 700; line-height: 1.4; }
.preview-stage-panel[hidden] { display: none !important; }
.preview-stage-intro { margin: 8px 0 17px; padding: 0 0 12px; border-bottom: 1px solid #e3d9c2; }
.preview-stage-intro h2 { margin: 0 0 5px; color: #203246; font-size: 22px; }
.preview-stage-intro p { margin: 0; color: #66717a; font-size: 12px; line-height: 1.7; }
.preview-production-next { margin: 8px 0 20px; padding: 20px 22px; border: 1px solid #e1d3ad; border-left: 4px solid #0759b8; border-radius: 11px; background: #fff8e4; }
.preview-production-next > p { margin: 0 0 8px; }
.preview-production-next .preview-production-status { max-width: 680px; color: #374a5b; font-size: 13px; line-height: 1.7; }
.preview-production-next .resume-paper { margin: 10px 0 0; }
.preview-production-start { display: inline-flex; align-items: center; margin-top: 4px; text-decoration: none; }
.preview-candidate-list { margin: 14px 0 22px; border: 1px solid #e1d3ad; border-radius: 10px; background: #fffdf8; }
.preview-candidate-list > summary { padding: 14px 16px; color: #29435f; cursor: pointer; font-size: 13px; font-weight: 750; }
.preview-candidate-list[open] { padding-bottom: 14px; }
.preview-candidate-list[open] > summary { border-bottom: 1px solid #e8e0d0; }
.preview-candidate-list .library-shelf { margin: 12px 14px 0; }
.preview-content-list { margin: 12px 0 20px; }
.preview-content-list h3 { margin: 0 0 12px; font-size: 16px; }
.preview-content-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.preview-empty { margin: 0; padding: 16px; border: 1px dashed #d6c9ab; border-radius: 9px; color: #65707a; font-size: 12px; line-height: 1.7; }
.preview-experience-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3d9c2; }
.preview-experience-section .library-shelf { margin: 0; }
.preview-experience-section .library-grid { display: block; }
.preview-stage-next { display: inline-flex; align-items: center; margin: 12px 0 4px; padding: 8px 0; color: #0759b8; font-size: 12px; font-weight: 750; text-decoration: none; }
.preview-stage-next:hover { text-decoration: underline; }
.preview-stage-panel .route-paper[open] { padding-bottom: 13px; }
.preview-stage-panel .benchmark-disclosure { margin-top: 16px; }
.preview-stage-panel > .recent-section { display: none !important; }
.preview-stage-nav a:focus-visible, .preview-candidate-list > summary:focus-visible { outline: 3px solid #f2672b; outline-offset: 3px; }

@media (max-width: 760px) {
  .preview-workspace-nav { gap: 5px; }
  .preview-workspace-nav > a { min-height: 38px; padding: 7px 10px; font-size: 12px; }
  body[data-workbench-preview] .preview-workspace-nav > a { display: none; }
  .preview-feature-nav { grid-template-columns: 1fr; gap: 6px; padding-top: 8px; }
  .preview-feature-group { padding: 7px 9px; }
  .preview-feature-group h2 { margin-bottom: 3px; }
  .preview-feature-links a { min-height: 34px; }
  body[data-workbench-preview] #mobileBottomNav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-workbench-preview] #mobileBottomNav a[aria-current="page"] { color: white; background: var(--blue); }
  body[data-workbench-preview] #mobileBottomNav a[aria-current="page"] span { color: var(--yellow); }
  body[data-preview-area="production"] .preview-feature-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-preview-area="production"] .preview-feature-group:last-child { grid-column: 1 / -1; }
  .preview-stage-nav { overflow-x: auto; padding: 8px 0 10px; }
  .preview-stage-nav a { flex: 0 0 auto; }
  .preview-stage-link { min-width: 114px; }
  .preview-overview-link { min-width: 48px; }
  .preview-stage-number { display: none; }
  .preview-stage-label { font-size: 10px; }
  .preview-stage-intro h2 { font-size: 19px; }
  .preview-production-next { padding: 16px; }
  .preview-content-cards { grid-template-columns: 1fr; }
  .preview-candidate-list .library-shelf { margin: 9px 9px 0; }
}
