/* =========================================================
   📈 MINHA EVOLUÇÃO — identidade PlayNaVaga (claro + índigo)
========================================================= */

.study-evolution {
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(400px 160px at 100% 0%, rgba(139, 92, 246, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  color: #1e293b;
}

.study-evolution--loading {
  opacity: 0.7;
}

.study-evo-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(255, 255, 255, 0));
}

.study-evo-head-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.study-evo-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.study-evo-hero__text {
  min-width: 0;
  flex: 1;
}

.study-evo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.study-evo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.study-evo-badge--skill {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.study-evo-badge--muted {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.study-evo-hero-tip {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.study-evo-head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.study-evo-action-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: #fff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.study-evo-action-btn:hover:not(.study-evo-action-btn--primary) {
  background: #eef2ff;
  color: #4338ca;
}

.study-evo-action-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
}

.study-evo-action-btn--primary:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32);
}

.study-evo-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.study-evo-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 2px solid rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.study-evo-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}

.study-evo-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.study-evo-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.study-evo-head-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.study-evo-chip {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.16);
  text-align: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.study-evo-chip__val {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  color: #4338ca;
}

.study-evo-chip__lbl {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.study-evo-chip__sub {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #d97706;
}

.study-evo-insights {
  display: none;
}

.study-evo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px 18px 18px;
}

@media (min-width: 720px) {
  .study-evo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .study-evo-panel--wide {
    grid-column: 1 / -1;
  }
  .study-evo-panel--half {
    grid-column: span 1;
  }
}

.study-evo-panel {
  padding: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.study-evo-collapse__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  user-select: none;
}

.study-evo-collapse__head::-webkit-details-marker {
  display: none;
}

.study-evo-collapse__head > span:first-child {
  flex: 1;
  text-align: left;
}

.study-evo-collapse__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6366f1;
  border-bottom: 2px solid #6366f1;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.study-evo-collapse[open] .study-evo-collapse__chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.study-evo-collapse__badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  letter-spacing: 0.04em;
  text-transform: none;
}

.study-evo-collapse__pro {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  letter-spacing: 0.06em;
}

.study-evo-collapse__body {
  padding: 0 16px 14px;
  border-top: 1px solid #f1f5f9;
}

.study-evo-plan-banner {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.study-evo-plan-link {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

.study-evo-plan-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

.study-evo-collapse__head:hover {
  background: rgba(99, 102, 241, 0.05);
}

.study-evo-analytics-link {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font-size: 12px;
}

.study-evo-analytics-link a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
}

.study-evo-analytics-link a:hover {
  color: #4338ca;
  text-decoration: underline;
}

.study-evo-pro-lock {
  text-align: center;
  padding: 18px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px dashed rgba(99, 102, 241, 0.28);
}

.study-evo-pro-lock__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.study-evo-pro-lock p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.study-evo-pro-lock .study-evo-action-btn--primary:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
}

.study-evo-mot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 560px) {
  .study-evo-mot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.study-evo-mot-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.study-evo-mot-card--up {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.study-evo-mot-card__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.study-evo-mot-card strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
  margin-bottom: 2px;
}

.study-evo-mot-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.study-evo-bar--inline {
  margin-top: 6px;
  grid-template-columns: 1fr;
}

.study-evo-map-legend--sub {
  margin-top: -6px;
  font-size: 10px;
  color: #94a3b8;
}

.study-evo-weak {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  font-size: 12px;
  color: #881337;
}

.study-evo-weak + .study-evo-weak {
  margin-top: 8px;
}

.study-evo-ach-teaser {
  text-align: center;
}

.study-evo-panel__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}

.study-evo-panel--ach {
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(251, 191, 36, 0.08), transparent),
    #fff;
}

/* ——— Ritmo de hoje ——— */
.study-evo-rhythm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.study-evo-ring {
  --pct: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#6366f1 calc(var(--pct) * 1%), #e2e8f0 0);
  position: relative;
}

.study-evo-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.study-evo-ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.1;
}

.study-evo-ring__num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #4338ca;
}

.study-evo-ring__lbl {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.study-evo-rhythm__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.study-evo-rhythm__line {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.study-evo-rhythm__sub {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.study-evo-rhythm__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  grid-column: 1 / -1;
}

.study-evo-rhythm-btn {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  color: #4338ca;
  cursor: pointer;
}

.study-evo-rhythm-btn:hover:not(.study-evo-rhythm-btn--go) {
  background: #eef2ff;
  color: #4338ca;
}

.study-evo-rhythm-btn--go {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
}

.study-evo-rhythm-btn--go:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 5px 16px rgba(99, 102, 241, 0.38);
}

/* ——— Curva recente ——— */
.study-evo-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -2px;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.study-evo-chart-scroll::-webkit-scrollbar {
  height: 4px;
}

.study-evo-chart-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 999px;
}

.study-evo-chart-wrap {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: start;
  min-width: min(100%, 280px);
}

.study-evo-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 64px;
  margin-top: 14px;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
}

.study-evo-chart-main {
  min-width: 0;
}

.study-evo-chart-plot {
  position: relative;
  border-left: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 4px;
}

.study-evo-chart-avg {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed rgba(99, 102, 241, 0.45);
  pointer-events: none;
  z-index: 2;
}

.study-evo-chart-avg span {
  position: absolute;
  right: 0;
  top: -14px;
  font-size: 9px;
  font-weight: 800;
  color: #6366f1;
  background: #fff;
  padding: 0 4px;
}

.study-evo-trend {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.study-evo-trend__bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  min-height: 3px;
  transition: height 0.35s ease;
}

.study-evo-trend__bar--low {
  background: linear-gradient(180deg, #fca5a5, #ef4444);
}

.study-evo-trend__bar--mid {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

.study-evo-trend__bar--high {
  background: linear-gradient(180deg, #86efac, #22c55e);
}

.study-evo-trend__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.study-evo-trend__plot {
  width: 100%;
  max-width: 32px;
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.study-evo-trend__val {
  display: block;
  min-height: 12px;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.study-evo-trend__day {
  margin-top: 4px;
  font-size: 8px;
  color: #94a3b8;
  white-space: nowrap;
  text-align: center;
}

/* ——— Carreira, barras, mapa ——— */
.study-evo-career__lead {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.study-evo-ladder {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.study-evo-ladder__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.study-evo-ladder__item.is-done {
  color: #475569;
}

.study-evo-ladder__item.is-current {
  color: #4338ca;
  font-weight: 800;
}

.study-evo-ladder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.study-evo-ladder__item.is-done .study-evo-ladder__dot {
  background: #818cf8;
}

.study-evo-ladder__item.is-current .study-evo-ladder__dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.study-evo-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.study-evo-bar {
  display: grid;
  grid-template-columns: 108px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.study-evo-bar__label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.study-evo-bar__track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.study-evo-bar__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.study-evo-bar__fill--pt {
  background: linear-gradient(90deg, #6366f1, #a78bfa);
}

.study-evo-bar__fill--pc {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.study-evo-bar__fill--goal {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.study-evo-bar__fill--xp {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.study-evo-bar__pct {
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  color: #4338ca;
}

.study-evo-career__next {
  margin: 10px 0 0;
  font-size: 12px;
  color: #475569;
}

.study-evo-map-legend {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.study-evo-formula {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.study-evo-delta {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.study-evo-delta--up {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.study-evo-delta--down {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.study-evo-delta--mid {
  background: #f1f5f9;
  color: #64748b;
}

.study-evo-subject + .study-evo-subject {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.study-evo-subject__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

.study-evo-subject__name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.study-evo-subject__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: visible;
}

.study-evo-subject__fill {
  height: 100%;
  border-radius: inherit;
}

.study-evo-subject__fill--good {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.study-evo-subject__fill--mid {
  background: linear-gradient(90deg, #fcd34d, #f59e0b);
}

.study-evo-subject__fill--low {
  background: linear-gradient(90deg, #fca5a5, #ef4444);
}

.study-evo-subject__global {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: #64748b;
  border-radius: 1px;
  transform: translateX(-1px);
}

.study-evo-subject__nums {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
}

.study-evo-subject__meta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
}

.study-evo-ach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #4338ca;
}

.study-evo-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}

.study-evo-ach {
  padding: 10px 8px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  opacity: 0.55;
  filter: grayscale(0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.study-evo-ach.is-unlocked {
  opacity: 1;
  filter: none;
  background: #fff;
}

.study-evo-ach.is-unlocked.is-new {
  animation: studyEvoAchPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.study-evo-ach--bronze.is-unlocked {
  border-color: rgba(180, 130, 70, 0.45);
  box-shadow: 0 4px 14px rgba(180, 130, 70, 0.12);
}

.study-evo-ach--silver.is-unlocked {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 4px 14px rgba(148, 163, 184, 0.15);
}

.study-evo-ach--gold.is-unlocked {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.study-evo-ach__icon {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.study-evo-ach__title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  color: #334155;
}

.study-evo-ach__desc {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.3;
}

.study-evo-journey {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.study-evo-journey + .study-evo-journey {
  margin-top: 8px;
}

.study-evo-journey__name {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.study-evo-journey__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.study-evo-journey__prior {
  color: #94a3b8;
  text-decoration: line-through;
}

.study-evo-journey__recent {
  color: #15803d;
}

.study-evo-journey__meta {
  margin: 6px 0 0;
  font-size: 10px;
  color: #94a3b8;
}

.study-evo-exam {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  padding: 8px 10px;
  background: #fffbeb;
  border-radius: 10px;
  border: 1px solid #fde68a;
}

.study-evo-empty {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

@keyframes studyEvoAchPop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes studyEvoFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes studyEvoCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.study-evolution--enter {
  animation: studyEvoCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.study-evolution--enter .study-evo-head {
  animation: studyEvoFadeUp 0.45s ease both;
}

.study-evolution--enter .study-evo-collapse {
  animation: studyEvoFadeUp 0.48s ease both;
}

.study-evolution--enter .study-evo-collapse:nth-child(1) { animation-delay: 0.04s; }
.study-evolution--enter .study-evo-collapse:nth-child(2) { animation-delay: 0.08s; }
.study-evolution--enter .study-evo-collapse:nth-child(3) { animation-delay: 0.12s; }
.study-evolution--enter .study-evo-collapse:nth-child(4) { animation-delay: 0.16s; }
.study-evolution--enter .study-evo-collapse:nth-child(5) { animation-delay: 0.2s; }
.study-evolution--enter .study-evo-collapse:nth-child(6) { animation-delay: 0.24s; }
.study-evolution--enter .study-evo-collapse:nth-child(7) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .study-evolution--enter,
  .study-evolution--enter .study-evo-head,
  .study-evolution--enter .study-evo-collapse,
  .study-evo-ach.is-unlocked.is-new {
    animation: none !important;
  }
}

/* ——— Mobile ——— */
@media (max-width: 640px) {
  .study-evolution {
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .study-evo-head {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .study-evo-title {
    font-size: 18px;
  }

  .study-evo-head-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .study-evo-head-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .study-evo-chip {
    min-width: 0;
    padding: 8px 4px;
  }

  .study-evo-chip__val {
    font-size: 16px;
  }

  .study-evo-head-actions {
    width: 100%;
  }

  .study-evo-head-actions .study-evo-action-btn {
    flex: 1;
    min-height: 40px;
    font-size: 13px;
  }

  .study-evo-head-actions .study-evo-action-btn--primary {
    flex: 2;
  }

  .study-evo-badges {
    gap: 4px;
  }

  .study-evo-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .study-evo-grid {
    padding: 10px 12px 14px;
    gap: 10px;
  }

  .study-evo-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .study-evo-rhythm {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .study-evo-ring {
    width: 80px;
    height: 80px;
  }

  .study-evo-ring__num {
    font-size: 20px;
  }

  .study-evo-rhythm__stats {
    width: 100%;
    text-align: left;
  }

  .study-evo-rhythm__cta {
    flex-direction: column;
  }

  .study-evo-rhythm-btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 12px;
  }

  .study-evo-bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
  }

  .study-evo-bar__label {
    grid-column: 1 / -1;
  }

  .study-evo-bar__pct {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .study-evo-bar__track {
    grid-column: 1;
    grid-row: 2;
  }

  .study-evo-map-legend {
    font-size: 10px;
  }

  .study-evo-trend__val {
    font-size: 8px;
  }

  .study-evo-trend__day {
    font-size: 7px;
  }

  .study-evo-ach-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .study-evo-ach-head .study-evo-action-btn {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }

  .study-evo-ach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .study-evo-ach {
    padding: 8px 6px;
  }

  .study-evo-ach__icon {
    font-size: 20px;
  }

  .study-evo-subject__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .study-evo-formula {
    font-size: 10px;
    word-break: break-word;
  }

  .study-evo-subject__nums {
    flex-direction: column;
    gap: 2px;
  }

  .study-evo-journey__flow {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .study-evo-head-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-evo-ach-grid {
    grid-template-columns: 1fr 1fr;
  }
}
