/* Track a car or a container (frontend/pages/track). Site tokens, Bone and classic, day and night; everything
   rounded (rule 11). Phone first: one column, the steps stand up; from 760px they lie down. */
.tk {
    --tk-strong: var(--bn-strong, #0e2c4f); --tk-on: var(--bn-on-strong, #f1efea); --tk-on-2: var(--bn-on-strong-muted, #b9c6d8);
    --tk-card: var(--bn-card, var(--cbp-surface, #ffffff)); --tk-tile: var(--bn-tile, var(--cbp-bg-2, #eef2f7));
    --tk-ink: var(--bn-text, var(--cbp-ink, #15263d)); --tk-body: var(--bn-body, var(--cbp-body, #46586f)); --tk-muted: var(--bn-muted, var(--cbp-muted, #7d8ca3));
    --tk-line: var(--bn-line, var(--cbp-line, #e3eaf3)); --tk-hot: var(--bn-hot, #d92d48); --tk-good: var(--bn-good, #1e6b47); --tk-good-bg: var(--bn-good-bg, #ddebe1);
    --tk-warn: var(--bn-warn, #7a4f0c); --tk-warn-bg: var(--bn-warn-bg, #f3e6cc);
    --tk-r: 28px; --tk-ease: cubic-bezier(.2, .8, .2, 1);
    padding-bottom: 72px; color: var(--tk-body);
}
html[data-theme="dark"] .tk { --tk-strong: #232323; --tk-good: #9ee0bb; --tk-good-bg: #24382d; --tk-warn: #f2c46b; --tk-warn-bg: #3a3122; }
html[data-theme="dark"]:not(.bone) .tk { --tk-card: #1f1f1f; --tk-tile: #2a2a2a; --tk-ink: #f1f1f1; --tk-body: #bdbdbd; --tk-line: #333; }
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }

/* the band with the search */
.tk-band { position: relative; overflow: hidden; isolation: isolate; margin: 0 12px; padding: 112px 18px 40px; border-radius: 0 0 36px 36px;
    background: var(--tk-strong); color: var(--tk-on); text-align: center; }
.tk-band::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -280px; border-radius: 46% 54% 61% 39% / 44% 39% 61% 56%; background: rgba(241, 239, 234, .07); }
.tk-band::after { content: ''; position: absolute; z-index: -1; width: 360px; height: 360px; left: -130px; bottom: -230px; border-radius: 50%; background: rgba(217, 45, 72, .16); }
.tk-eyebrow { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(241, 239, 234, .1); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tk-on-2); }
.tk-band h1 { margin: 0 auto; max-width: 760px; font-size: clamp(32px, 5.6vw, 60px); font-weight: 900; font-stretch: 118%; line-height: 1.03; letter-spacing: -.025em; color: var(--tk-on); }
.tk-band p { margin: 14px auto 0; max-width: 560px; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--tk-on-2); }
.tk-form { width: min(640px, 100%); margin: 26px auto 0; display: grid; gap: 10px; }
.tk-seg { justify-self: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(241, 239, 234, .1); }
.tk-seg-b { position: relative; margin: 0; cursor: pointer; }
.tk-seg-b input { position: absolute; opacity: 0; pointer-events: none; }
.tk-seg-b span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; font-weight: 800; color: var(--tk-on-2); transition: background .2s, color .2s; }
.tk-seg-b span svg { width: 18px; height: 18px; }
.tk-seg-b input:checked + span { background: var(--tk-on); color: #15263d; }
.tk-seg-b input:focus-visible + span { outline: 3px solid rgba(241, 239, 234, .5); outline-offset: 2px; }
.tk-field { display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--tk-card); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
.tk-field input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--tk-ink);
    font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; outline: none; }
.tk-field input::placeholder { color: var(--tk-muted); opacity: .6; font-weight: 700; }
.tk-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk-hot) 50%, transparent), 0 24px 50px -24px rgba(0, 0, 0, .55); }
.tk-go { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--tk-hot); color: #fff;
    font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; transition: transform .14s, filter .14s; }
.tk-go:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tk-go svg { width: 18px; height: 18px; }

/* the result */
.tk-body { width: min(920px, calc(100% - 24px)); margin: -18px auto 0; position: relative; z-index: 1; display: grid; gap: 14px; }
.tk-card { border-radius: var(--tk-r); background: var(--tk-card); border: 1px solid var(--tk-line); box-shadow: 0 30px 60px -36px rgba(14, 44, 79, .4); padding: 20px; }
.tk-car { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.tk-photo { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--tk-tile); display: grid; place-items: center; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-photo-none svg { width: 56px; height: 56px; color: var(--tk-muted); }
.tk-head h2 { margin: 6px 0 8px; font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; line-height: 1.1; color: var(--tk-ink); letter-spacing: -.01em; }
.tk-src { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #fff; }
.tk-src--copart { background: #1a5fb4; } .tk-src--iaai { background: #c8102e; }
.tk-vin { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--tk-tile); font-size: 14px; }
.tk-vin span { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--tk-muted); }
.tk-vin b { font-weight: 800; color: var(--tk-ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; word-break: break-all; }

/* the car's photos (owner, 2026-10-24): one big photo, the sections as a switch, a strip under it */
.tk-gal { margin-top: 18px; display: grid; gap: 10px; }
.tk-gal-tabs { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--tk-tile); max-width: 100%; }
.tk-gal-tabs[hidden] { display: none; }
.tk-gal-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent;
    color: var(--tk-body); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.tk-gal-tab i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tk-line);
    color: var(--tk-ink); font-style: normal; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tk-gal-tab[aria-selected="true"] { background: var(--tk-card); color: var(--tk-ink); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.tk-gal-tab[aria-selected="true"] i { background: var(--tk-strong); color: var(--tk-on); }
.tk-gal-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--tk-hot) 50%, transparent); outline-offset: 1px; }
.tk-gal-stage { position: relative; border-radius: 22px; overflow: hidden; background: var(--tk-tile); aspect-ratio: 4 / 3; }
.tk-gal-big { display: block; width: 100%; height: 100%; cursor: zoom-in; touch-action: pan-y; }
.tk-gal-big img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; -webkit-user-drag: none; user-select: none; }
/* while the next photo comes: the tile breathes under the old one (a designed wait, rule 7) */
.tk-gal-big.is-loading img { opacity: .55; }
.tk-gal-big.is-loading { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%) var(--tk-tile) 0 0 / 200% 100%; animation: tk-shine 1.2s linear infinite; }
@keyframes tk-shine { to { background-position: -200% 0; } }
.tk-gal-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
    background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; pointer-events: none; }
.tk-gal-tag b { font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tk-gal-tag span { font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.tk-gal-nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #151412; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: transform .15s, background .15s; }
.tk-gal-nav[hidden] { display: none; }
.tk-gal-nav svg { width: 20px; height: 20px; }
.tk-gal-nav:hover { transform: scale(1.06); background: #fff; }
.tk-gal-nav:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.tk-gal-prev { left: 12px; } .tk-gal-next { right: 12px; }
.tk-gal-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tk-gal-strip[hidden] { display: none; }
.tk-gal-strip a { flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--tk-tile); scroll-snap-align: center;
    opacity: .62; outline: 0; transition: opacity .2s, box-shadow .2s; }
.tk-gal-strip a img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.tk-gal--js .tk-gal-strip a:not(.is-ok) { background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--tk-ink) 9%, transparent) 50%, transparent 70%) var(--tk-tile) 0 0 / 200% 100%;
    animation: tk-shine 1.2s linear infinite; }
.tk-gal-strip a:hover, .tk-gal-strip a.is-on { opacity: 1; }
.tk-gal-strip a.is-on { box-shadow: inset 0 0 0 3px var(--tk-ink); }
.tk-gal-strip a.is-on img { border-radius: 9px; scale: .9; }
.tk-gal-strip a:focus-visible { opacity: 1; box-shadow: inset 0 0 0 3px var(--tk-hot); }
/* without script, every section is its own row with its name */
.tk-gal-sec { flex: 0 0 auto; align-self: center; padding: 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-muted); }
.tk-gal--js .tk-gal-sec { display: none; }
.tk-gal:not(.tk-gal--js) .tk-gal-strip a:first-of-type { opacity: 1; }

/* "Watch it live": the small globe already turning */
.tk-live { position: relative; display: block; height: 220px; margin: 16px 0 0; border-radius: 22px; overflow: hidden; isolation: isolate; text-decoration: none !important;
    background: radial-gradient(ellipse at 50% 45%, #dfe8f3, #c9d8e8); box-shadow: inset 0 0 0 1px var(--tk-line); -webkit-tap-highlight-color: transparent; }
html[data-theme="dark"] .tk-live { background: radial-gradient(ellipse at 50% 45%, #0b1626, #050b16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tk-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tk-live::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, rgba(8, 20, 38, .45)); pointer-events: none; }
.tk-live-go { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: #15263d; font-size: 14px; font-weight: 900; line-height: 1; box-shadow: 0 8px 22px -10px rgba(8, 20, 38, .6); transition: transform .15s; }
.tk-live-go i { width: 9px; height: 9px; border-radius: 50%; background: #e8334e; animation: tk-live 1.6s infinite; }
@keyframes tk-live { 0% { box-shadow: 0 0 0 0 rgba(232, 51, 78, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(232, 51, 78, 0); } }
.tk-live:hover .tk-live-go, .tk-live:focus-visible .tk-live-go { transform: translateY(-1px) scale(1.03); }
.tk-live:focus-visible { outline: 3px solid color-mix(in srgb, var(--tk-hot) 50%, transparent); outline-offset: 2px; }
.tk-live-ship { position: absolute; right: 14px; bottom: 18px; z-index: 1; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }

/* the full views: one photo, and the voyage */
html.tk-noscroll, html.tk-noscroll body { overflow: hidden !important; }
.tk-lb, .tk-vy { position: fixed; inset: 0; z-index: 100001; background: rgba(5, 5, 5, .94); display: grid; place-items: center; }
.tk-vy { background: #050b16; }
.tk-lb[hidden], .tk-vy[hidden] { display: none; }
.tk-lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); border-radius: 16px; object-fit: contain; -webkit-user-drag: none; }
.tk-vy iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tk-lb-n { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff;
    font-size: 13px; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-lb-b { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
    cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s; }
.tk-lb-b svg { width: 22px; height: 22px; }
.tk-lb-b:hover { background: rgba(255, 255, 255, .24); }
.tk-lb-b:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.tk-lb-x { top: 16px; right: 16px; }
.tk-lb-p { left: 16px; top: 50%; translate: 0 -50%; } .tk-lb-n2 { right: 16px; top: 50%; translate: 0 -50%; }
.tk-boxhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tk-boxic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--tk-strong); color: var(--tk-on); flex: none; }
.tk-boxic svg { width: 26px; height: 26px; }
.tk-kicker { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-muted); }
.tk-boxhead h2 { margin: 2px 0 0; font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--tk-ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tk-count { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--tk-tile); font-size: 13.5px; font-weight: 800; color: var(--tk-ink); }

/* the journey: stands up on a phone, lies down from 760px */
.tk-steps { list-style: none; margin: 20px 0 6px; padding: 0; display: grid; gap: 0; position: relative; }
.tk-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--tk-muted); }
.tk-steps li i { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tk-tile); border: 3px solid var(--tk-line); }
.tk-steps li i svg { width: 15px; height: 15px; color: #fff; }
.tk-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 38px; bottom: -8px; width: 3px; border-radius: 3px; background: var(--tk-line); }
.tk-steps li.is-done { color: var(--tk-ink); }
.tk-steps li.is-done i { background: var(--tk-good); border-color: var(--tk-good); }
html[data-theme="dark"] .tk-steps li.is-done i svg { color: #10291c; }
.tk-steps li.is-done:not(:last-child)::after { background: var(--tk-good); }
.tk-steps li.is-now { color: var(--tk-ink); font-weight: 900; }
.tk-steps li.is-now i { border-color: var(--tk-hot); background: var(--tk-card); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tk-hot) 45%, transparent); animation: tk-ping 1.8s ease-out infinite; }
.tk-steps li.is-now i::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tk-hot); }
@keyframes tk-ping { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.tk-facts { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-facts div { padding: 12px 14px; border-radius: 16px; background: var(--tk-tile); min-width: 0; }
.tk-facts dt { font-size: 11.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--tk-muted); }
.tk-facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 800; color: var(--tk-ink); overflow-wrap: anywhere; }
.tk-facts a { color: inherit; text-decoration: underline; text-decoration-color: var(--tk-hot); text-underline-offset: 3px; }
.tk-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--tk-tile); font-size: 14.5px; line-height: 1.5; }
.tk-own { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; font-weight: 600; }
.tk-own a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 13px; background: var(--bn-go, #268255); color: #fff !important; font-weight: 800; text-decoration: none !important; }
.tk-own a svg { width: 16px; height: 16px; }
.tk-sub { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--tk-muted); }
.tk-sub svg { width: 18px; height: 18px; }
.tk-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-events li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--tk-tile); font-size: 14px; }
.tk-events time { font-size: 12px; font-weight: 800; color: var(--tk-muted); }
.tk-events b { color: var(--tk-ink); font-weight: 800; }
.tk-events span { color: var(--tk-body); font-size: 13px; }
.tk-checked { margin: 10px 2px 0; font-size: 12.5px; font-weight: 700; color: var(--tk-muted); }

.tk-msg { display: flex; gap: 14px; align-items: flex-start; }
.tk-msg-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex: none; }
.tk-msg-ic svg { width: 22px; height: 22px; }
.tk-msg--none .tk-msg-ic { background: var(--tk-tile); color: var(--tk-ink); }
.tk-msg--warn .tk-msg-ic { background: var(--tk-warn-bg); color: var(--tk-warn); }
.tk-msg b { display: block; font-size: 18px; color: var(--tk-ink); }
.tk-msg p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.tk-hint { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tk-hint-c { display: grid; gap: 4px; }
.tk-hint-c svg { width: 26px; height: 26px; color: var(--tk-hot); }
.tk-hint-c b { font-size: 16px; color: var(--tk-ink); }
.tk-hint-c p { margin: 0; font-size: 14px; }

@media (min-width: 760px) {
    .tk-band { padding: 136px 22px 70px; }
    .tk-body { margin-top: -34px; }
    .tk-card { padding: 26px; }
    .tk-car { grid-template-columns: 300px 1fr; gap: 24px; }
    .tk-car.tk-car--gal { grid-template-columns: 1fr; }
    .tk-gal-stage { aspect-ratio: 16 / 10; }
    .tk-gal-strip a { width: 104px; }
    .tk-live { height: 260px; }
    .tk-steps { grid-template-columns: repeat(var(--n), 1fr); margin-top: 26px; }
    .tk-steps li { flex-direction: column; text-align: center; gap: 10px; padding: 0 4px; font-size: 13.5px; }
    .tk-steps li:not(:last-child)::after { left: calc(50% + 18px); right: calc(-50% + 18px); top: 13px; bottom: auto; width: auto; height: 3px; }
    .tk-facts { grid-template-columns: repeat(3, 1fr); }
    .tk-events li { grid-template-columns: 110px 1fr; align-items: baseline; }
    .tk-events li span { grid-column: 2; }
    .tk-hint { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .tk-field { flex-wrap: wrap; }
    .tk-field input { flex: 1 1 100%; text-align: center; }
    .tk-go { flex: 1 1 100%; justify-content: center; }
    .tk-facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .tk-gal-nav { width: 38px; height: 38px; }
    .tk-gal-tab { min-height: 36px; padding: 0 11px; font-size: 13px; }
    .tk-live { height: 190px; }
    .tk-lb-p, .tk-lb-n2 { top: auto; bottom: 14px; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .tk *, .tk-steps li.is-now i { animation: none !important; transition: none !important; } }
