.track { padding-bottom: 4rem; max-width: 640px; }
.track h1 { font-family: var(--font-display); margin: 2rem 0 1rem; }

.lookup { display: flex; gap: 0.75rem; align-items: end; margin-bottom: 0.75rem; }
.lookup .field { flex: 1; }
.field { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.field input { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; text-transform: uppercase; }

.result { display: grid; gap: 1.25rem; margin-top: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.9rem; }
.panel h2 { margin: 0; font-size: 1.05rem; }
.panel p { margin: 0; }

.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.banner { padding: 0.75rem 1rem; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0 0 0.25rem; display: grid; grid-template-columns: repeat(6, 1fr); }
.step { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.5rem; text-align: center; color: var(--muted); }
.step::before { content: ""; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 0.45rem; left: 50%; width: 100%; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.done { color: var(--ink); }
.step.done::before { background: var(--ink); border-color: var(--ink); }
.step.done::after { background: var(--ink); }
.step.current { color: var(--ink); font-weight: 600; }
.step.current::before { background: var(--accent); border-color: var(--accent); }
.step-label { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; max-width: 6.5em; }
@media (max-width: 519px) {
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1rem 1fr; justify-items: start; align-items: start; text-align: left; gap: 0.75rem; padding-bottom: 1.1rem; }
  .step:last-child { padding-bottom: 0; }
  .step::before { margin-top: 0.05rem; }
  .step::after { top: 1rem; left: calc(0.45rem - 1px); width: 2px; height: calc(100% - 1rem); }
  .step-label { font-size: 0.8rem; max-width: none; }
}

.jt-none { font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.row-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.plain li { display: flex; justify-content: space-between; gap: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; }
.sum-total { font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }

.code-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.badge { display: inline-block; padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.badge.ok { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.badge.warn { border-color: var(--accent); color: var(--accent); }

.code-row { flex-wrap: wrap; row-gap: 0.5rem; }
.code-row .code { white-space: nowrap; font-size: 1.1rem; letter-spacing: 0.04em; }
.badge { font-size: 0.65rem; padding: 0.15rem 0.55rem; }
#jt-has .row-btns { justify-content: center; }
#jt-has .btn { padding: 0.4rem 0.95rem; font-size: 0.85rem; }

.code-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
#r-code { white-space: nowrap; }