.tracking-route .inner-page { width:min(1200px,calc(100% - 32px)); }
.tracking-route .footer-bottom { color:var(--hv-muted); }
.tracking-page { padding-bottom:32px; color:var(--hv-ink); font-size:15px; }
.tracking-page [hidden], #orders[hidden], #orders [hidden] { display:none !important; }
.tracking-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:24px; }
.tracking-top h1 { flex:1 1 auto; }
main.inner-page .tracking-top h1 { margin:0; font:800 clamp(18px,2.8vw,25px)/1.2 Manrope,system-ui,sans-serif; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.track-number { font:800 17px/1.25 ui-monospace,monospace; }
.track-button, .track-filters button, .track-list-row .order-actions :is(a,button) {
  display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:6px 14px;
  border:1px solid var(--hv-border); border-radius:var(--hv-r-pill); color:var(--hv-ink);
  background:var(--hv-surface); box-shadow:var(--hv-sh-1); font:800 13px/1.3 Manrope,system-ui,sans-serif;
}
.track-button:active, .track-filters button:active, .track-list-row .order-actions :is(a,button):active { box-shadow:var(--hv-press); }
.track-button:focus-visible, .track-filters button:focus-visible, .track-list-row :is(a,button):focus-visible {
  outline:2px solid var(--hv-honey-700); outline-offset:2px;
}
.track-chip {
  display:inline-flex; align-items:center; border-radius:var(--hv-r-pill); padding:4px 10px;
  background:var(--hv-warning-bg); color:var(--hv-warning-ink); font-size:12px; font-weight:800; line-height:1.5;
}
.tracking-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:auto 1fr auto; gap:16px 24px; align-items:start; }
.track-hero {
  grid-column:8/-1; grid-row:1; min-width:0; padding:24px;
  border:1px solid var(--hv-border); border-radius:24px; background:var(--hv-warning-bg); color:var(--hv-warning-ink);
}
.track-hero h2 { color:var(--hv-ink); margin:4px 0 8px; font-size:clamp(25px,3vw,32px); line-height:1.15; letter-spacing:-.03em; }
.track-kicker { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
#tracking-description { color:var(--hv-muted); line-height:1.5; }
#tracking-eta { margin-top:10px; border:1px solid var(--hv-honey-700); }
.track-progress { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:16px; }
.track-cell, .track-step-hex { clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.track-cell { width:23px; height:19px; background:var(--hv-border); }
.track-cell[data-filled], .track-step[data-phase=complete] .track-step-hex { background:var(--hv-honey-500); color:#2a2112; }
.track-paper { border:1px solid var(--hv-border); border-radius:24px; background:var(--hv-surface); color:var(--hv-ink); padding:24px; }
.track-paper h2 { font-size:21px; line-height:1.2; }
.track-journey { grid-column:1/8; grid-row:1/3; }
.track-journey ol { list-style:none; margin:18px 0 0; padding:0; }
.track-step { position:relative; display:grid; isolation:isolate; grid-template-columns:34px 32px minmax(0,1fr); align-items:center; gap:8px; min-height:62px; }
.track-step > div { grid-column:3; grid-row:1; }
.track-step:not(:last-child)::after { content:""; position:absolute; z-index:-1; width:2px; inset:50% auto -50% 16px; background:var(--hv-border); }
.track-step[data-phase=complete]::after { background:var(--hv-honey-500); }
.track-step-hex { width:34px; height:29px; position:relative; display:grid; place-items:center; font-weight:800; background:var(--hv-border); color:var(--hv-ink); }
.track-step[data-phase=upcoming] { color:var(--hv-muted); }
.track-step[data-phase=upcoming] .track-step-hex::after { content:""; position:absolute; inset:2px; background:var(--hv-surface); clip-path:inherit; }
.track-step[data-phase=current] .track-step-hex { background:var(--hv-honey-700); animation:track-pulse 2.8s ease-in-out infinite; }
.track-step time { display:block; font-size:12px; color:var(--hv-muted); }
.track-bee { grid-column:2; grid-row:1; width:34px; height:34px; object-fit:contain; animation:track-hover 3s ease-in-out infinite; }
.track-aside { grid-column:8/-1; grid-row:2; position:sticky; top:16px; display:grid; gap:16px; min-width:0; }
#tracking-live { display:grid; gap:16px; min-width:0; }
#tracking-open-delivery { display:none; }
#tracking-delivery-sheet::backdrop { background:#22180c80; }
.track-sheet-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
#tracking-delivery-sheet .track-paper { padding:14px 0; border:0; border-top:1px dashed var(--hv-border); border-radius:0; background:transparent; }
.track-help { display:flex; justify-content:flex-end; grid-column:1/-1; }
.track-paper p { color:var(--hv-muted); overflow-wrap:anywhere; }
.track-specs { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.track-printing { display:grid; gap:8px; }
.track-printer { width:58px; height:30px; position:relative; margin:8px 0 6px; border-radius:8px; background:var(--hv-ink); }
.track-printer i {
  position:absolute; top:13px; left:12px; width:34px; height:24px; border:1px solid var(--hv-border); border-radius:3px;
  background:repeating-linear-gradient(var(--hv-surface),var(--hv-surface) 4px,var(--hv-warning-bg) 4px,var(--hv-warning-bg) 6px);
  transform-origin:center top; animation:track-feed 3.2s ease-in-out infinite;
}
.track-helper .track-button { margin:12px 8px 0 0; }
.track-helper-bee { float:right; object-fit:contain; }
.track-map { min-height:200px; margin-top:12px; border-radius:12px; overflow:hidden; }
.track-map-bee { width:32px; height:32px; object-fit:contain; }
.track-ticket { border-style:dashed; background:var(--hv-warning-bg); }
.track-ticket .track-button { margin-top:12px; }
.track-ticket .track-digits { margin:6px 0; font:800 32px/1.2 ui-monospace,monospace; letter-spacing:.16em; color:var(--hv-ink); }
.track-stamp { display:inline-block; margin-bottom:6px; padding:4px 11px; border:2px solid var(--hv-success); border-radius:8px; color:var(--hv-success-ink); text-transform:uppercase; letter-spacing:.1em; animation:track-stamp .35s ease-out both; }
.is-delivered { position:relative; overflow:clip; }
.track-burst { position:absolute; inset:34px auto auto 78px; pointer-events:none; }
.track-burst .track-cell { position:absolute; width:9px; height:8px; animation:track-confetti .55s ease-out both; }
#tracking-summary { padding-top:14px; }
#tracking-summary summary { display:list-item; min-height:44px; align-content:center; cursor:pointer; font-weight:800; }
#tracking-receipt h3 { margin-top:12px; font-size:15px; }
#tracking-receipt .track-button { margin-top:12px; }
.track-files { list-style:none; padding:0; margin:0; }
.track-files li { border-bottom:1px dashed var(--hv-border); padding:8px 0; overflow-wrap:anywhere; }
.track-files p, #tracking-receipt p { font-size:13px; }
.track-fees { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:12px 0; border-bottom:1px dashed var(--hv-border); }
.track-fees dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.track-fees :is(dt:last-of-type,dd:last-of-type) { font-weight:800; }
.track-state, #tracking-feedback:not(:empty) { border:1px solid var(--hv-border); padding:8px 14px; background:var(--hv-surface); border-radius:12px; margin:0 0 12px; }
.track-state { color:var(--hv-warning-ink); background:var(--hv-warning-bg); }
#tracking-help-sheet { width:min(420px,calc(100% - 28px)); }
#tracking-help-sheet::backdrop { background:#22180c80; }
#tracking-help-sheet form { float:right; }
#tracking-help-sheet a { margin-top:12px; }
.track-skeleton { display:grid; grid-template-columns:7fr 5fr; min-height:280px; gap:16px; }
.track-skeleton span { border-radius:24px; background:linear-gradient(110deg,var(--hv-surface) 20%,var(--hv-warning-bg) 45%,var(--hv-surface) 70%); background-size:220% 100%; animation:track-load 2s linear infinite; }
.track-filters { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 16px; }
.track-filters button[aria-pressed=true] { background:var(--hv-warning-bg); color:var(--hv-warning-ink); }
#order-history .track-list-heading h2 { font-size:19px; letter-spacing:-.02em; }
.track-list-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:14px 0; border-bottom:1px solid var(--hv-border); }
.track-list-row .track-progress { margin-top:8px; }
.track-list-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.track-list-row .order-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.track-list-row .order-actions a:first-child { background:var(--hv-warning-bg); color:var(--hv-warning-ink); }
.track-empty { display:grid; justify-items:center; text-align:center; gap:8px; }
/* A soft clay badge and the same compact title scale as the address empty state. */
.track-empty-icon { display:grid; place-items:center; width:96px; height:96px; margin-bottom:8px; border-radius:50%; color:var(--hv-honey-ink);
  background:linear-gradient(145deg,#fff8de,#f9e6a5 52%,#edcd73);
  box-shadow:8px 10px 22px #6e50282b,-6px -6px 16px #fffdf6b3,inset 3px 3px 8px #ffffffc7,inset -5px -6px 12px #b0832233; }
.track-empty-icon svg { display:block; width:44px; height:44px; filter:drop-shadow(0 1px 0 #ffffff9e); }
#orders .track-empty h2 { margin:12px 0 0; color:var(--hv-ink); font-family:inherit; font-size:19px; font-weight:700; line-height:1.4; letter-spacing:-.01em; }
[data-theme="dark"] .track-empty-icon { background:linear-gradient(145deg,var(--hv-surface-3),var(--hv-surface));
  box-shadow:7px 9px 20px var(--hv-drop),-4px -4px 12px var(--hv-hi),inset 3px 3px 7px var(--hv-hi),inset -4px -5px 10px var(--hv-shade); }
[data-theme="dark"] .track-empty-icon svg { filter:drop-shadow(0 1px 1px #0006); }
@keyframes track-pulse { 50% { opacity:.7; transform:scale(.92); } }
@keyframes track-hover { 50% { translate:0 -3px; } }
@keyframes track-feed { 0%,100% { scale:1 .35; } 55%,72% { scale:1 1; } }
@keyframes track-load { to { background-position:-220% 0; } }
@keyframes track-stamp { from { transform:scale(1.24) rotate(-7deg); opacity:.3; } }
@keyframes track-confetti { to { transform:translate(var(--burst-x),var(--burst-y)) rotate(50deg); opacity:0; } }
@media(max-width:900px) {
  .tracking-grid { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; }
  .tracking-grid > * { grid-column:1; grid-row:auto; }
  .track-aside { position:static; }
}
@media(max-width:680px) {
  .tracking-top { margin-bottom:12px; }
  .track-hero { position:sticky; top:0; z-index:3; }
  .track-hero, .track-paper { padding:16px; }
  .track-step { min-height:54px; }
  .track-skeleton { grid-template-columns:1fr; }
  #tracking-open-delivery { display:inline-flex; justify-self:start; }
  #tracking-live.track-sheet-content { display:none; }
  #tracking-delivery-sheet { position:fixed; inset:auto 0 0; margin:0; width:100%; max-width:none; max-height:85dvh; padding:18px 16px max(16px,env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; overscroll-behavior:contain; }
  .track-sheet-heading { position:relative; padding-top:8px; touch-action:none; }
  .track-sheet-heading::before { content:""; position:absolute; width:34px; height:4px; border-radius:4px; background:var(--hv-border); inset:0 auto auto calc(50% - 17px); }
}
@media(prefers-reduced-motion:reduce) {
  .tracking-page *, .tracking-page *::before, .tracking-page *::after { animation:none !important; }
}

/* Order rows: details on top, the action buttons in one horizontal row underneath */
.track-list-row { flex-direction:column; align-items:stretch; justify-content:flex-start; gap:12px; }
.track-list-row .order-actions { justify-content:flex-start; }

/* Order journey: clay icon tiles on a wavy honey line */
.journey { --tile:70px; --journey-icon-ink:var(--hv-ink); --wave-top:calc(var(--tile) + 6px); position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:6px 0 0; padding:0 0 4px; list-style:none; }
.journey-wave { position:absolute; left:0; right:0; top:var(--wave-top); width:100%; height:28px; overflow:visible; pointer-events:none; }
.journey-wave path { fill:none; stroke-width:5; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.journey-track { stroke:color-mix(in srgb,var(--hv-border) 65%,var(--hv-muted)); }
.journey-fill { stroke:var(--hv-honey-500); filter:drop-shadow(0 0 4px color-mix(in srgb,var(--hv-honey-500) 45%,transparent)); }
.journey-step { min-width:0; position:relative; display:grid; justify-items:center; align-content:start; gap:6px; text-align:center; }
.journey-tile { display:grid; place-items:center; width:var(--tile); height:var(--tile); border-radius:22px;
  background:var(--hv-surface-2); box-shadow:var(--hv-sh-1); border:1px solid var(--hv-border); box-sizing:border-box; }
.journey-tile svg { width:58%; height:58%; }
.journey-dot { position:relative; z-index:1; width:16px; height:16px; margin-top:13px; border-radius:50%; background:var(--hv-honey-500); border:3px solid var(--hv-surface); box-shadow:0 1px 4px var(--hv-drop); }
.journey-label { max-width:100%; overflow-wrap:anywhere; line-height:1.4; font-size:clamp(11.5px,1.4vw,14px); font-weight:800; color:var(--hv-ink); }
.journey-step[data-state=todo] .journey-tile { background:var(--hv-surface); filter:none; opacity:1; }
.journey-step[data-state=todo] .journey-tile svg { filter:grayscale(.7); opacity:.8; }
.journey-step[data-state=todo] .journey-dot { background:var(--hv-surface); border-color:var(--hv-muted); }
.journey-step[data-state=todo] .journey-label { color:var(--hv-muted); font-weight:700; }
.journey-step[data-state=current] .journey-tile { background:var(--hv-surface-3); border-color:var(--hv-honey-500); box-shadow:0 0 0 2px var(--hv-honey-500),var(--hv-sh-1); }
.journey-step[data-state=final] .journey-tile { background:linear-gradient(150deg,#f2fff3,#dcf3de); }
.journey-step[data-state=final] .journey-dot { background:#2fb457; }
.journey-step:not([data-state=todo]) .journey-tile { animation:journey-pop .5s cubic-bezier(.34,1.45,.64,1) both; animation-delay:calc(var(--i) * .18s); }
@keyframes journey-pop { from { transform:scale(.6); opacity:0; } }
[data-theme="dark"] .journey { --journey-icon-ink:var(--hv-ink); }
@media (max-width:560px) { .journey { --tile:clamp(40px,12vw,52px); } .journey-tile { border-radius:20px; } }
@media (prefers-reduced-motion: reduce) { .journey-tile { animation:none !important; } }

/* Scrolling fix: the side column no longer sticks over the "Need help?" row; help always sits below both columns. */
.track-aside { position:static; align-self:start; }
.track-help { grid-row:3; margin-top:8px; padding-bottom:8px; position:relative; z-index:1; }
@media (max-width: 900px) {
  .tracking-grid > .track-help { grid-row: auto; order: 99; margin-top: 0; }
}

/* The journey: clay pills with an icon each, joined by a curved honey rail */
.track-journey ol { margin-top: 20px; }
.track-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; min-height: 0; padding-bottom: 18px; align-items: center; isolation: isolate; }
.track-step:last-child { padding-bottom: 0; }
.track-step > .track-step-pill { grid-column: 2; grid-row: 1; }
.track-step-hex { grid-column: 1; grid-row: 1; width: 34px; height: 34px; justify-self: center; clip-path: none; border-radius: 50%; font-size: 16px; font-weight: 800;
  background: #fff; border: 3px solid var(--hv-border); color: #2a2112; box-shadow: 0 2px 6px #6e502826; }
.track-step[data-phase=complete] .track-step-hex, .track-step[data-phase=current] .track-step-hex { background: var(--hv-honey-500); border-color: #fff; animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--hv-honey-500) 35%, transparent), 0 2px 8px #b9831a55; }
.track-step[data-phase=upcoming] .track-step-hex::after { display: none; }
.track-step:not(:last-child)::after { z-index: -1; content: ""; position: absolute; inset: auto; left: 10px; top: 50%; width: 10px; height: calc(100% + 0px); background: none;
  border: 6px solid var(--hv-border); border-right: 0; border-radius: 40px 0 0 40px / 50% 0 0 50%; }
.track-step[data-phase=complete]:not(:last-child)::after { border-color: var(--hv-honey-500); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--hv-honey-500) 60%, transparent)); background: none; }
.track-step-pill { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 18px 8px 12px; border-radius: 999px;
  background: linear-gradient(150deg, #fffdf6, #f6ecd6);
  box-shadow: 6px 8px 16px #6e502822, -5px -5px 12px #fffdf6a0, inset -3px -4px 8px #a774200d, inset 3px 4px 8px #fffdf6b3; }
.track-step[data-phase=complete] .track-step-pill, .track-step[data-phase=current] .track-step-pill { background: linear-gradient(150deg, #fff6d2, #f8e08c); }
.track-step[data-phase=current] .track-step-pill { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hv-honey-500) 55%, transparent), 6px 8px 16px #6e502822, inset 3px 4px 8px #fffdf6b3; }
.track-step-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; }
.track-step-icon svg { width: 44px; height: 44px; }
.track-step[data-phase=upcoming] .track-step-icon { filter: grayscale(.85); opacity: .5; }
.track-step-pill strong { font-size: 17px; }
.track-step-pill time { margin-top: 2px; }
.track-step-pill .track-bee { margin-left: auto; width: 38px; height: 38px; grid-column: auto; grid-row: auto; }
[data-theme="dark"] .track-step-pill { background: var(--hv-surface-2); box-shadow: var(--hv-sh-1); }
[data-theme="dark"] .track-step[data-phase=complete] .track-step-pill, [data-theme="dark"] .track-step[data-phase=current] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 22%, var(--hv-surface-2)); }
@media (max-width: 520px) { .track-step-pill { min-height: 60px; gap: 10px; padding-right: 12px; } .track-step-icon { width: 42px; height: 42px; } .track-step-icon svg { width: 36px; height: 36px; } .track-step-pill strong { font-size: 15.5px; } }
.track-step:not(:last-child)::after { left: 2px; width: 18px; }

/* Journey, refined: a clean rail, quiet cards, one clear current step. */
.track-journey ol { margin-top: 22px; }
.track-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; }
.track-step:not(:last-child)::after {
  left: 18.5px; top: calc((100% - 14px) / 2); width: 3px; height: 100%; inset-inline-end: auto; border: 0; border-radius: 3px; filter: none;
  background: var(--hv-border);
}
.track-step[data-phase=complete]:not(:last-child)::after { background: var(--hv-honey-500); filter: none; border: 0; }
.track-step-hex {
  width: 28px; height: 28px; font-size: 14px; line-height: 1; border: 0; box-shadow: none; background: #fff; color: transparent;
  outline: 2px solid var(--hv-border); outline-offset: -2px;
}
.track-step[data-phase=complete] .track-step-hex { background: var(--hv-honey-500); color: #2a2112; outline: 0; box-shadow: none; }
.track-step[data-phase=current] .track-step-hex { background: var(--hv-honey-500); color: #2a2112; outline: 0; box-shadow: 0 0 0 5px color-mix(in srgb, var(--hv-honey-500) 30%, transparent); }
.track-step-pill {
  min-height: 64px; padding: 8px 16px 8px 10px; gap: 14px; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px var(--hv-border), 0 8px 20px -12px #6e502840;
}
.track-step[data-phase=complete] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 10%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hv-honey-500) 40%, transparent), 0 8px 20px -12px #6e502840; }
.track-step[data-phase=current] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 20%, #fff); box-shadow: 0 0 0 2px var(--hv-honey-500), 0 14px 28px -14px #b9831a99; }
.track-step[data-phase=upcoming] .track-step-pill { background: #fff; box-shadow: 0 0 0 1px var(--hv-border); }
.track-step-icon { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--hv-honey-500) 16%, #fff); }
.track-step-icon svg { width: 30px; height: 30px; }
.track-step[data-phase=upcoming] .track-step-icon { background: #f4efe2; filter: none; opacity: 1; }
.track-step[data-phase=upcoming] .track-step-icon svg { filter: grayscale(1); opacity: .45; }
.track-step-pill strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.track-step[data-phase=upcoming] .track-step-pill strong { color: var(--hv-muted); font-weight: 600; }
.track-step-pill time { font-size: 12.5px; }
.track-step-pill .track-bee { width: 34px; height: 34px; }
[data-theme="dark"] .track-step-pill, [data-theme="dark"] .track-step[data-phase=upcoming] .track-step-pill { background: var(--hv-surface-2); box-shadow: 0 0 0 1px var(--hv-border); }
[data-theme="dark"] .track-step[data-phase=complete] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 14%, var(--hv-surface-2)); }
[data-theme="dark"] .track-step[data-phase=current] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 24%, var(--hv-surface-2)); box-shadow: 0 0 0 2px var(--hv-honey-500); }
[data-theme="dark"] .track-step-icon, [data-theme="dark"] .track-step[data-phase=upcoming] .track-step-icon { background: var(--hv-surface-3); }
[data-theme="dark"] .track-step-hex { background: var(--hv-surface-2); }
@media (max-width: 520px) { .track-step-pill { min-height: 58px; } .track-step-icon { width: 40px; height: 40px; } .track-step-pill strong { font-size: 15.5px; } }

/* Journey in the reference style: big round clay pills, colourful icons, a curved glowing rail with ringed dots */
.track-journey ol { position: relative; isolation: isolate; margin-top: 24px; }
.track-rail { position: absolute; left: 0; top: 0; z-index: -1; overflow: visible; pointer-events: none; }
.track-rail path { fill: none; stroke-width: 7; stroke-linecap: round; }
.rail-todo { stroke: #e9e3d3; }
.rail-done { stroke: var(--hv-honey-500); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--hv-honey-500) 70%, transparent)); }
.track-step { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding-bottom: 20px; }
.track-step:not(:last-child)::after { display: none; }
.track-step-hex { width: 30px; height: 30px; font-size: 15px; font-weight: 800; outline: 0; background: #fff; color: transparent; border: 4px solid #d9d2bf; box-shadow: 0 2px 6px #6e502826; }
.track-step[data-phase=complete] .track-step-hex, .track-step[data-phase=current] .track-step-hex {
  background: var(--hv-honey-500); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--hv-honey-500), 0 4px 12px #e0a21c88; }
.track-step[data-phase=current] .track-step-hex { animation: track-pulse 2.8s ease-in-out infinite; }
.track-step-pill { min-height: 84px; padding: 10px 28px 10px 14px; gap: 18px; border-radius: 999px; background: linear-gradient(150deg, #fffdf8, #f5eddb);
  box-shadow: 7px 9px 20px #6e502822, -5px -5px 14px #fffdf6c0, inset -3px -4px 9px #a774200d, inset 3px 4px 9px #fffdf6b3; }
.track-step[data-phase=complete] .track-step-pill { background: linear-gradient(150deg, #fff8d6, #f9e39a);
  box-shadow: 8px 10px 22px #c9951f40, -5px -5px 14px #fffdf6c0, inset -3px -4px 9px #d9a62a22, inset 3px 4px 9px #fffbe6b3; }
.track-step[data-phase=current] .track-step-pill { background: linear-gradient(150deg, #fff3bd, #f6d46a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hv-honey-500) 55%, transparent), 10px 12px 26px #c9951f55, inset 3px 4px 9px #fffbe6b3; }
.track-step[data-phase=upcoming] .track-step-pill { background: linear-gradient(150deg, #fffdfa, #f4efe4); }
.track-step-icon { width: 58px; height: 58px; border-radius: 0; background: none; }
.track-step-icon svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 5px #6e502833); }
.track-step[data-phase=upcoming] .track-step-icon { background: none; }
.track-step[data-phase=upcoming] .track-step-icon svg { filter: grayscale(.6) drop-shadow(0 3px 4px #6e50281a); opacity: .6; }
.track-step-pill strong { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.track-step[data-phase=upcoming] .track-step-pill strong { color: var(--hv-ink); font-weight: 700; }
[data-theme="dark"] .track-step-pill, [data-theme="dark"] .track-step[data-phase=upcoming] .track-step-pill { background: var(--hv-surface-2); box-shadow: var(--hv-sh-1); }
[data-theme="dark"] .track-step[data-phase=complete] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 22%, var(--hv-surface-2)); }
[data-theme="dark"] .track-step[data-phase=current] .track-step-pill { background: color-mix(in srgb, var(--hv-honey-500) 32%, var(--hv-surface-2)); box-shadow: 0 0 0 3px var(--hv-honey-500); }
[data-theme="dark"] .rail-todo { stroke: var(--hv-border); }
@media (max-width: 520px) {
  .track-step { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
  .track-step-pill { min-height: 70px; padding: 8px 18px 8px 10px; gap: 12px; }
  .track-step-icon { width: 46px; height: 46px; } .track-step-icon svg { width: 42px; height: 42px; }
  .track-step-pill strong { font-size: 16.5px; }
  .track-step-hex { width: 26px; height: 26px; font-size: 13px; border-width: 3px; }
}

/* Right-sized: tighter pills, a slim closed Order summary, and Need help right under it (desktop and phone) */
.track-aside > .track-help { grid-column: auto; grid-row: auto; margin: 0; padding: 0; justify-content: flex-end; }
.tracking-grid > .track-help { display: none; }
.track-step-pill { min-height: 72px; padding: 8px 24px 8px 12px; gap: 16px; }
.track-step-icon { width: 50px; height: 50px; }
.track-step-icon svg { width: 46px; height: 46px; }
.track-step-pill strong { font-size: 17.5px; }
.track-step { padding-bottom: 16px; }
#tracking-summary { padding: 18px 24px; border-radius: 22px; }
#tracking-summary > summary { cursor: pointer; font-size: 17px; font-weight: 800; }
#tracking-summary[open] > summary { margin-bottom: 12px; }
.track-paper.track-journey { padding-bottom: 20px; }
@media (max-width: 520px) { .track-step-pill { min-height: 64px; } .track-step-icon { width: 42px; height: 42px; } .track-step-icon svg { width: 38px; height: 38px; } }

/* Need help? bee link + the support ticket button in the help sheet */
.track-help-button, .track-ticket { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.track-help-button img, .track-ticket img { width: 26px; height: auto; filter: drop-shadow(0 2px 3px rgba(110, 80, 28, .25)); }
.track-ticket { background: var(--hv-honey-grad, linear-gradient(180deg, #ffe495, #f5c542)); color: #2a2112; margin-bottom: 8px; }
#tracking-help-sheet .track-button { margin-top: 6px; }
.order-actions .order-help { display: inline-flex; align-items: center; gap: 6px; }
.order-actions .order-help img { width: 22px; height: auto; filter: drop-shadow(0 2px 2px rgba(110, 80, 28, .25)); }

/* Need help? redesigned: a warm clay pill, the bee on its own round badge, and an arrow that nudges on hover */
.track-help-button {
  gap: 12px; min-height: 56px; padding: 6px 20px 6px 8px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #2a2112;
  background: var(--hv-honey-grad, linear-gradient(180deg, #ffe9a6, #f5c542));
  box-shadow: 0 10px 18px -8px rgba(160, 110, 20, .45), 0 3px 6px rgba(160, 110, 20, .18), inset 0 2px 3px rgba(255, 255, 255, .75), inset 0 -3px 6px rgba(190, 130, 20, .25);
  transition: transform .18s cubic-bezier(.34, 1.5, .64, 1), box-shadow .18s ease;
}
.track-help-button img {
  box-sizing: content-box; width: 30px; height: auto; padding: 8px 9px 8px 8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff, #fff4d2 75%);
  box-shadow: 0 3px 6px rgba(120, 80, 10, .22), inset 0 2px 3px #fff, inset 0 -2px 4px rgba(190, 130, 20, .2);
}
.track-help-button::after {
  content: ""; width: 10px; height: 10px; margin-left: 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(-45deg); transition: transform .18s ease;
}
.track-help-button:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -8px rgba(160, 110, 20, .5), 0 4px 8px rgba(160, 110, 20, .2), inset 0 2px 3px rgba(255, 255, 255, .75), inset 0 -3px 6px rgba(190, 130, 20, .25); }
.track-help-button:hover::after { transform: translateX(3px) rotate(-45deg); }
.track-help-button:active { transform: scale(.97); box-shadow: inset 0 3px 8px rgba(160, 110, 20, .35); }
.track-help-button:focus-visible { outline: none; box-shadow: 0 0 0 3px #fffaf0, 0 0 0 6px #b97d12; }
[data-theme="dark"] .track-help-button { color: #fff3d6; background: linear-gradient(180deg, #6a4d17, #4a350f); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7), inset 0 2px 3px rgba(255, 226, 150, .18), inset 0 -3px 6px rgba(0, 0, 0, .35); }
[data-theme="dark"] .track-help-button img { background: radial-gradient(circle at 34% 28%, #fff7e0, #f1d68a 80%); }
@media (prefers-reduced-motion: reduce) { .track-help-button, .track-help-button::after { transition: none; } }
