/* Knowledges › Enchantment › XP progression and Anvil level-cost conversion. */
.ek-xptab { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ek-xp-intro, .ek-xp-note { max-width: 82ch; }
.ek-xp-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.ek-xp-card .kit-card__head { display: flex; align-items: center; }
.ek-xp-card .kit-card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.ek-xp-mode-row { max-width: 430px; }
.ek-xp-mode-row .kit-seg { width: 100%; }
.ek-xp-mode-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 660px; }
.ek-xp-mode-panel[hidden] { display: none; }
.ek-xp-mode-panel .kit-field { min-width: 0; }
.ek-xp-mode-panel .text-input, .ek-xp-anvil__fields .text-input { width: 100%; min-height: 42px; }
.ek-xp-status { min-height: 18px; margin: 0; font-size: var(--fs-xs); line-height: 1.5; }
.ek-xp-status.is-ok { color: var(--status-success); }
.ek-xp-status.is-error { color: var(--status-error); }
.ek-xp-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ek-xp-fact { min-height: 72px; }
.ek-xp-progress { display: flex; flex-direction: column; gap: 6px; max-width: 660px; }
.ek-xp-progress__label { color: var(--text-muted); font-size: var(--fs-xs); }
.ek-xp-progress__track { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--bg-inset); }
.ek-xp-progress__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mc-glint-light)); transition: width 120ms ease-out; }
.ek-xp-anvil__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 660px; }
.ek-xp-source { max-width: 90ch; }
@media (max-width: 560px) {
  .ek-xp-mode-panel, .ek-xp-anvil__fields { grid-template-columns: minmax(0, 1fr); }
  .ek-xp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
