.track-bar { grid-template-columns: 1fr auto; }
.track { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 28px) 64px; }

.lookup { max-width: 460px; margin: 4vh auto; background: var(--paper); border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-1); display: grid; gap: 16px;
  h1 { font-size: 2rem; } p { margin: 0; } }
.recent { display: grid; gap: 8px; margin-top: 6px; }
.recent a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-m); background: var(--wash); text-decoration: none; color: var(--ink); font-weight: 600; &:hover { background: #E6ECE3; } }

.status-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 24px; }
.status-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.status-hero .code { font: 700 1rem var(--f-body); color: var(--muted); margin-bottom: 8px; display: block; }
.eta { text-align: right; background: var(--leaf); color: #fff; border-radius: var(--r-l); padding: 14px 20px;
  b { display: block; font: 800 2.2rem/1 var(--f-display); color: var(--turmeric); } span { font-size: .85rem; opacity: .8; } }
.status-hero.cancelled h1 { color: var(--chili); }

.celebrate { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: color-mix(in oklab, var(--ok) 12%, #fff); border-radius: var(--r-l); margin-bottom: 20px; font-weight: 600;
  svg { width: 42px; height: 42px; flex: none; }
  circle { stroke-dasharray: 126; stroke-dashoffset: 126; animation: draw .6s var(--ease-out) forwards; }
  path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .4s .5s var(--ease-out) forwards; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.track-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } .status-hero { grid-template-columns: 1fr; } .eta { text-align: left; } }
.panel { background: var(--paper); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-1); h2 { font-size: 1.25rem; margin-bottom: 14px; } }
.panel + .panel { margin-top: 18px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--leaf); }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; z-index: 1; transition: all .4s var(--ease-spring);
  svg { width: 14px; height: 14px; opacity: 0; } }
.done .dot { background: var(--leaf); border-color: var(--leaf); color: #fff; svg { opacity: 1; } }
.current .dot { border-color: var(--turmeric); background: var(--turmeric); box-shadow: 0 0 0 0 rgb(244 180 26 / .6); animation: ring 1.8s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 12px rgb(244 180 26 / 0); } }
.timeline strong { display: block; font-size: 1.02rem; }
.timeline .t-desc { color: var(--muted); font-size: .9rem; }
.timeline .t-time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.timeline li:not(.done):not(.current) strong { color: var(--muted); font-weight: 600; }
.just-changed { animation: flash 1.2s; }
@keyframes flash { 0%, 40% { background: rgb(244 180 26 / .25); } }

.track-map { height: 300px; border-radius: var(--r-m); overflow: hidden; margin-bottom: 12px; background: #E4E9E1; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.note { background: #FFF6DA; border-radius: var(--r-m); padding: 12px 14px; font-weight: 550; margin-bottom: 14px; }
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: .95rem; span { color: var(--muted); } }
