html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #303133;
}

#report-root {
  min-height: 100vh;
}

.report-standalone {
  min-height: 100vh;
  background: linear-gradient(180deg, #faf5ff, #fff 360px);
}

.loading-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #8b5cf6;
}

.loading-view .loading-spinner,
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(139, 92, 246, .15);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: talent-report-spin 1s linear infinite;
}

.loading-view p {
  margin-top: 14px;
  font-size: 14px;
  color: #6b7280;
}

@keyframes talent-report-spin {
  to { transform: rotate(360deg); }
}

.error-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.error-container {
  width: min(92vw, 420px);
  text-align: center;
  background: #fff;
  border: 1px solid #f0ecfb;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(88, 52, 160, .12);
  padding: 34px 26px;
}

.error-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #8b5cf6;
  background: #f5f3ff;
}

.error-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1f2937;
}

.error-message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.error-btn.ghost {
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.el-card {
  position: relative;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: hidden;
}

.el-card__header {
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.el-card__body {
  padding: 18px;
}

.el-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 6px;
}

.el-tag.is-round {
  border-radius: 999px;
}

.el-tag--primary { color: #6d28d9; background: #ede9fe; }
.el-tag--success { color: #047857; background: #d1fae5; }
.el-tag--warning { color: #b45309; background: #fef3c7; }
.el-tag--info { color: #4b5563; background: #f3f4f6; }
.el-tag--primary.el-tag--dark { color: #fff; background: #8b5cf6; }

.el-progress {
  display: flex;
  align-items: center;
  width: 100%;
}

.el-progress-bar {
  flex: 1;
  min-width: 0;
}

.el-progress-bar__outer {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 999px;
}

.el-progress-bar__inner {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #a78bfa, #8b5cf6);
  border-radius: 999px;
  transition: width .8s ease;
}

.el-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 14px;
  color: #4b5563;
}

.el-text strong {
  font-size: 16px;
  color: #1f2937;
}

.score-pct {
  margin-left: 1px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

.evidence-collapse {
  margin-top: 10px;
}

.evidence-collapse .el-collapse-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.evidence-collapse .el-collapse-item__header::-webkit-details-marker {
  display: none;
}

.evidence-collapse .el-collapse-item__header::after {
  content: "▾";
  color: #9ca3af;
  transition: transform .2s ease;
}

.evidence-collapse[open] .el-collapse-item__header::after {
  transform: rotate(180deg);
}

.el-collapse-item__content {
  padding: 2px 0 0;
}

.el-alert {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  border-radius: 10px;
}

.el-alert--info.is-light {
  background: #f5f3ff;
  border-color: #ede9fe;
}

.el-alert__title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #6d28d9;
}

.el-alert__content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #6b7280;
}

.meta-time {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #8b5cf6;
  background: #fff;
  border-radius: 999px;
}

.chart-legend .legend-item.none .dot {
  background: #f3f4f6;
}

@media (prefers-reduced-motion: reduce) {
  .loading-view .loading-spinner,
  .loading-spinner {
    animation: none;
  }
}
