/* ===================================================
   Ranking Dashboard — Report-Quality Visual Styles
   =================================================== */

/* --- Fonts --- */
.ranking-dashboard,
.ranking-dashboard * {
  font-family: 'Noto Sans KR', 'Fira Sans', system-ui, sans-serif;
}

/* --- Report Hero Banner --- */
.report-hero {
  background: linear-gradient(135deg, #0f1629 0%, #1a1040 40%, #0d1a2d 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
}

.report-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.report-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.report-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e2e8f0, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.report-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(167, 139, 250, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.report-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.report-hero-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  min-width: 100px;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  white-space: nowrap;
}

/* --- Model Selector --- */
.model-selector-card {
  padding: 24px;
}

.model-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.model-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dim);
  text-align: left;
}

.model-tab:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--surface-hover);
}

.model-tab.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(99, 102, 241, 0.15);
}

.model-tab-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.model-tab.active .model-tab-icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.model-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-tab-info strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.model-tab-info small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.model-detail {
  margin-top: 4px;
}

.model-params {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.param-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  font-size: 0.82rem;
}

.param-label {
  color: var(--text-dim);
  font-weight: 500;
}

.param-val {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}

.param-desc {
  width: 100%;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* --- Insight Cards --- */
.card-insight {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: none;
}

.card-insight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-insight-gold {
  background: linear-gradient(135deg, #1a1520, #201a10);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.card-insight-blue {
  background: linear-gradient(135deg, #0f1629, #101a30);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

.card-insight-red {
  background: linear-gradient(135deg, #1a1015, #201015);
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.08), inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

.insight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-insight-gold .insight-icon { background: rgba(212, 175, 55, 0.12); color: #D4AF37; }
.card-insight-blue .insight-icon { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.card-insight-red .insight-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.card-insight .card-title { margin-bottom: 12px; }
.card-insight .card-metric { font-size: 2rem; line-height: 1.1; }

.insight-char {
  display: flex;
  align-items: center;
  gap: 14px;
}

.insight-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
  flex-shrink: 0;
}

.card-insight .card-subtitle { margin-top: 4px; }
.card-insight .card-subtitle strong { color: var(--text); }

/* --- Statistical Tests Panel --- */
.stat-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.stat-test-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.stat-test-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.stat-test-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-test-body {
  flex: 1;
  min-width: 0;
}

.stat-test-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.stat-test-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-style: italic;
}

.stat-test-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.stv {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.stv strong {
  color: var(--text);
}

.stat-test-verdict {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.verdict-reject {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border-left: 3px solid var(--red);
}

.verdict-accept {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border-left: 3px solid var(--green);
}

.r2-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.r2-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #f59e0b);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* --- Significance Badges --- */
.sig-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.sig-high {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.sig-mid {
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow);
}

.sig-low {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.sig-ns {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

/* --- Lift Chart --- */
.lift-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.lift-row + .lift-row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.lift-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.lift-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lift-label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.lift-bar-area {
  flex: 1;
}

.lift-bar-bg {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.lift-baseline {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.lift-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.lift-val {
  min-width: 44px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.lift-sig {
  min-width: 36px;
  text-align: center;
}

/* --- Confidence Interval Chart --- */
.ci-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.ci-row + .ci-row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ci-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.ci-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  flex-shrink: 0;
}

.ci-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ci-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.ci-bar-area {
  flex: 1;
}

.ci-track {
  position: relative;
  height: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.ci-range {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 6px;
  border: 1px solid;
}

.ci-point {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.ci-vals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px;
}

.ci-val-main {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ci-val-range {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --- Weight Chart (Enhanced with dual lines) --- */
.weight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}

.weight-row + .weight-row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.weight-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.weight-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.weight-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.weight-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.weight-bar-area {
  flex: 1;
}

.weight-dual {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weight-dual-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wdl-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 24px;
  text-align: right;
}

.wdl-actual {
  color: rgba(99, 102, 241, 0.6);
}

.wdl-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar-track-lg {
  height: 8px;
  border-radius: 4px;
}

.bar-fill-actual {
  background: linear-gradient(90deg, var(--accent), #818cf8);
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.weight-val {
  min-width: 50px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header .card-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon-staff { background: rgba(212, 175, 55, 0.1); color: #D4AF37; }
.section-icon-student { background: rgba(99, 102, 241, 0.1); color: #818cf8; }

.section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-left: auto;
}

/* --- Character Tiles --- */
.char-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.char-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.char-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.char-tile-top { border-color: rgba(255, 215, 0, 0.15); }

.char-tile-visual {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--bg);
}

.char-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.char-tile:hover .char-tile-img { transform: scale(1.05); }

.char-tile-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.char-tile-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  z-index: 2;
}

.medal-gold {
  background: linear-gradient(135deg, #D4AF37, #f5d06b) !important;
  color: #1a1000 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.medal-silver {
  background: linear-gradient(135deg, #9ca3af, #d1d5db) !important;
  color: #1a1a1a !important;
  border-color: #9ca3af !important;
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.3);
}

.medal-bronze {
  background: linear-gradient(135deg, #b45309, #d97706) !important;
  color: #fff !important;
  border-color: #b45309 !important;
  box-shadow: 0 0 12px rgba(180, 83, 9, 0.3);
}

.char-tile-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--tile-accent, var(--accent));
  border-left-color: var(--tile-accent);
}

.char-tile-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.char-tile-name { font-size: 1.1rem; font-weight: 700; }
.char-tile-race { font-size: 0.75rem; color: var(--text-dim); margin-top: 1px; margin-bottom: 0; }
.char-tile-delta { flex-shrink: 0; }

.char-tile-score-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.char-tile-score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.char-tile-stats { gap: 5px; margin-top: auto; }
.char-stat-row { font-size: 0.78rem; padding: 2px 0; }
.char-stat-row + .char-stat-row { border-top: 1px solid rgba(255, 255, 255, 0.03); }
.char-stat-highlight { color: var(--green) !important; font-weight: 700 !important; }

/* --- Rank Change Pills --- */
.rank-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 6px;
}

.rank-change.rank-up { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.rank-change.rank-down { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.rank-change.rank-same { background: rgba(255, 255, 255, 0.04); color: var(--text-dim); }

/* --- Table --- */
.ranking-table th {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}

.ranking-table tbody tr { transition: background 0.15s; }
.ranking-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.ranking-table tbody tr:hover { background: rgba(99, 102, 241, 0.06); }
.tr-top { background: rgba(212, 175, 55, 0.03) !important; }
.tr-top:hover { background: rgba(212, 175, 55, 0.07) !important; }

.td-char {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.td-name { font-weight: 600; }
.td-race { color: var(--text-dim); }
.td-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.td-dim { color: var(--text-dim); }

.rank-badge {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

/* --- Comparison Chart --- */
.dual-bar-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.dual-bar-group + .dual-bar-group { border-top: 1px solid rgba(255, 255, 255, 0.04); }

.dual-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.dual-bar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.dual-bar-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.dual-bar-rank { font-weight: 800; font-size: 0.82rem; margin-right: 4px; }

.dual-bar-tracks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dual-bar-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dual-bar-line-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 28px;
  text-align: right;
}

.dual-bar-line-label-c { color: rgba(34, 197, 94, 0.7); }
.dual-bar-line .bar-track { flex: 1; }
.dual-bar-line .bar-value { min-width: 56px; font-size: 0.8rem; }

/* --- Footer --- */
.report-footer {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-method {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
}

.footer-sep {
  color: var(--border);
  display: none;
}

.report-footer code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.loaded .card {
  animation: fadeSlideUp 0.4s ease both;
}

.loaded .card:nth-child(1) { animation-delay: 0s; }
.loaded .card:nth-child(2) { animation-delay: 0.04s; }
.loaded .card:nth-child(3) { animation-delay: 0.08s; }
.loaded .card:nth-child(4) { animation-delay: 0.12s; }
.loaded .card:nth-child(5) { animation-delay: 0.16s; }
.loaded .card:nth-child(6) { animation-delay: 0.2s; }
.loaded .card:nth-child(7) { animation-delay: 0.24s; }
.loaded .card:nth-child(8) { animation-delay: 0.28s; }
.loaded .card:nth-child(9) { animation-delay: 0.32s; }
.loaded .card:nth-child(10) { animation-delay: 0.36s; }
.loaded .card:nth-child(11) { animation-delay: 0.4s; }
.loaded .card:nth-child(12) { animation-delay: 0.44s; }

/* --- Print --- */
@media print {
  body { background: #fff !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .header, .refresh-btn, .nav-links, .loading-overlay, .error-banner, .model-selector-card { display: none !important; }
  .dashboard { padding: 0 !important; max-width: 100% !important; gap: 12px !important; }
  .card { break-inside: avoid; border: 1px solid #ddd !important; box-shadow: none !important; background: #fff !important; }
  .report-hero { background: linear-gradient(135deg, #f0f0ff, #e8e0f8) !important; padding: 20px !important; }
  .report-title { -webkit-text-fill-color: #111 !important; color: #111 !important; background: none !important; }
  .card-metric { -webkit-text-fill-color: #333 !important; background: none !important; }
  .char-tile-visual { height: 100px; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .report-hero-inner { flex-direction: column; text-align: center; }
  .report-hero-stats { width: 100%; justify-content: center; }
  .model-tabs { flex-direction: column; }
  .stat-tests-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .report-hero { padding: 24px 16px; }
  .report-title { font-size: 1.2rem; }
  .report-hero-stats { flex-direction: column; gap: 10px; }
  .hero-stat { flex-direction: row; justify-content: space-between; padding: 10px 16px; }
  .char-grid { grid-template-columns: 1fr !important; }
  .char-tile-visual { height: 120px; }
  .weight-row-left { min-width: 120px; }
  .weight-avatar { display: none; }
  .dual-bar-label { min-width: 100%; margin-bottom: 4px; }
  .dual-bar-group { flex-wrap: wrap; }
  .dual-bar-tracks { width: 100%; }
  .section-header { flex-wrap: wrap; }
  .ci-label { min-width: 110px; }
  .ci-avatar { display: none; }
  .lift-label { min-width: 100px; }
  .lift-avatar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loaded .card { animation: none !important; }
}
