:root {
  color-scheme: light;
  --bg: #f2f4f6; --panel: #ffffff; --line: #e1e5e9; --text: #14171b; --muted: #5b6570; --faint: #8a939c;
  --teal: #0b7c87; --teal-soft: #e8f5f6; --teal-line: #b9dfe2; --good: #1d8a4f; --good-soft: #e6f4ec; --warn: #935d0f;
  --shadow: 0 1px 2px rgba(20, 23, 27, .05), 0 8px 24px rgba(20, 23, 27, .06); --on-teal: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--teal); }
.top { background: #ffffff; border-bottom: 3px solid #0b7c87; }
.brand { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; padding: 16px; text-decoration: none; }
.logo { position: relative; width: 116px; aspect-ratio: 349 / 96; flex: none; }
.logo img, .logo .lab { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo .lab { background: #14171b; -webkit-mask: url(/logo-lab.png) center / 100% 100% no-repeat; mask: url(/logo-lab.png) center / 100% 100% no-repeat; }
.brand-sub { color: #5b6570; font-size: 14px; border-left: 1px solid #e1e5e9; padding-left: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 8px; }
.loading { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.eyebrow { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 0 0 6px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.refs { color: var(--muted); margin: 0; }
.refs b { color: var(--text); font-weight: 600; }

/* lookup */
.find h1 { margin-bottom: 4px; }
.find p.lead { color: var(--muted); margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid var(--teal); background: var(--teal); color: var(--on-teal); }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal-line); }
.btn.wide { width: 100%; }
.err { color: #c0392b; margin: 12px 0 0; }
.hint { color: var(--faint); font-size: 13px; margin: 14px 0 0; }

/* shipments */
.ships { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ship-tab { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 38px; }
.ship-tab[aria-selected="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 22px 0 6px; list-style: none; padding: 0; }
.step { position: relative; text-align: center; padding-top: 34px; font-size: 13px; color: var(--faint); }
.step::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step .dot { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--panel); border: 3px solid var(--line); z-index: 1; }
.step b { display: block; color: var(--muted); font-size: 14px; }
.step[data-on="done"] .dot { background: var(--teal); border-color: var(--teal); }
.step[data-on="done"] .dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.step[data-on="done"]::before, .step[data-on="now"]::before { background: var(--teal); }
.step[data-on="now"] .dot { border-color: var(--teal); }
.step[data-on="now"] .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--teal); animation: beat 1.6s ease-in-out infinite; }
.step[data-on="done"] b, .step[data-on="now"] b { color: var(--text); }
@keyframes beat { 50% { transform: scale(.55); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .step[data-on="now"] .dot::after { animation: none; } }
.track { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; margin: 20px 0 0; }
.track .lbl { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.track .num { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0; }
.track .num a, .track .num span.n { font-size: 19px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; text-decoration: none; color: var(--teal); }
.copy { border: 1px solid var(--teal-line); background: transparent; color: var(--teal); border-radius: 8px; font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.track .sub { color: var(--muted); font-size: 14px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; padding-top: 0; }
.items .sku { color: var(--faint); font-size: 12px; }
.qty { background: var(--bg); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.again { text-align: center; margin: 8px 0 0; }
.foot { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
.foot .addr { color: var(--faint); }
@media (max-width: 520px) {
  main { padding-top: 16px; }
  .card { padding: 18px; border-radius: 12px; }
  h1 { font-size: 22px; }
  .acts .btn { flex: 1 1 100%; }
  .track .num a, .track .num span.n { font-size: 17px; }
}
