/* RevPad order tracker (revpad-track.js). Uses the site tokens from revpad.css. */
.tk-wrap{margin:0 0 28px}
.tk{background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(14,42,92,.08);overflow:hidden}
.tk-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.tk-k{margin:0;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.tk-h{margin:4px 0 6px;font-size:1.6rem;line-height:1.2;color:var(--ink)}
.tk-d{margin:0;color:var(--ink-2);max-width:46ch}
.tk-eta{background:var(--bg-2);border-radius:12px;padding:10px 14px;min-width:150px}
.tk-eta span{display:block;font-size:.78rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.tk-eta b{font-size:1.1rem;color:var(--ink)}

/* phase bar */
.tk-phases{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;text-align:center}
.tk-phases li{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:.8rem;font-weight:700}
.tk-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--bg-2);border:2px solid var(--line);color:var(--muted);font-size:.85rem;transition:background .4s,border-color .4s,transform .4s}
.tk-phases li.done .tk-dot{background:var(--green);border-color:var(--green);color:#fff}
.tk-phases li.done{color:var(--ink-2)}
.tk-phases li.now{color:var(--ink)}
.tk-phases li.now .tk-dot{background:var(--navy-2);border-color:var(--navy-2);color:#fff;animation:tk-beat 1.6s ease-in-out infinite}
.tk-bar{height:8px;border-radius:8px;background:var(--bg-2);margin:14px 0 18px;overflow:hidden}
.tk-bar span{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,var(--green),var(--green-hi));transition:width 1.4s cubic-bezier(.34,1.2,.64,1);position:relative}
.tk-bar span::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);animation:tk-shine 2.4s linear infinite}
@keyframes tk-beat{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(42,91,176,.45)}50%{transform:scale(1.08);box-shadow:0 0 0 8px rgba(42,91,176,0)}}
@keyframes tk-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* scene */
.tk-scene{border-radius:14px;overflow:hidden;background:#EAF0F8}
.tk-svg{display:block;width:100%;height:auto}
.tk-wall{fill:#E7EDF6}.tk-truss{fill:none;stroke:#C7D2E3;stroke-width:3}.tk-beam{stroke:#B4C1D6;stroke-width:4}
.tk-floor{fill:#CBD5E4}.tk-floorline{stroke:#AEBBD0;stroke-width:2}
.tk-gantry{fill:#F2B705}.tk-cable{stroke:#5D6B85;stroke-width:2}.tk-hook{fill:none;stroke:#5D6B85;stroke-width:3}
.tk-trolley{transition:transform 1s ease}
.tk-scene[data-stage="2"] .tk-trolley{animation:tk-trolley 4s ease-in-out infinite}
@keyframes tk-trolley{0%,100%{transform:translateX(-60px)}50%{transform:translateX(60px)}}

.tk-pc{opacity:0;transition:opacity .5s ease}
.tk-pc.on{opacity:1}
.tk-shell{fill:#7F8EA6;stroke:#55637C;stroke-width:2}
.tk-ribs line{stroke:#6A7891;stroke-width:2}
.tk-drop.now{animation:tk-drop .9s cubic-bezier(.34,1.4,.64,1)}
@keyframes tk-drop{from{transform:translateY(-120px)}to{transform:none}}
.tk-door{fill:#2B3448}.tk-win{fill:#2B3448}
.tk-open.lit .tk-win{fill:#FFE59A}.tk-open.lit .tk-door{fill:#3C4A66}
.tk-cut.now .tk-door,.tk-cut.now .tk-win{animation:tk-cut .8s ease-out}
@keyframes tk-cut{from{opacity:0}to{opacity:1}}
.tk-spark{stroke:#FFB703;stroke-width:2.5;stroke-linecap:round;animation:tk-spark .7s ease-out infinite}
.tk-spark[data-i="1"]{animation-delay:.1s}.tk-spark[data-i="2"]{animation-delay:.2s}.tk-spark[data-i="3"]{animation-delay:.3s}.tk-spark[data-i="4"]{animation-delay:.15s}.tk-spark[data-i="5"]{animation-delay:.25s}.tk-spark[data-i="6"]{animation-delay:.05s}
@keyframes tk-spark{0%{opacity:1;stroke-dasharray:4 20;stroke-dashoffset:0}100%{opacity:0;stroke-dasharray:4 20;stroke-dashoffset:-16}}
.tk-wire{fill:none;stroke:#F2B705;stroke-width:3;stroke-linecap:round;stroke-dasharray:600;stroke-dashoffset:0}
.tk-pipe{fill:none;stroke:#2A8BE0;stroke-width:4;stroke-linecap:round;stroke-dasharray:600;stroke-dashoffset:0}
.tk-systems.now .tk-wire,.tk-systems.now .tk-pipe{animation:tk-draw 1.6s ease-out}
@keyframes tk-draw{from{stroke-dashoffset:600}to{stroke-dashoffset:0}}
.tk-foamfill{fill:#F7D9A8;opacity:.85}
.tk-foam.now .tk-foamfill{animation:tk-foam 1.2s ease-out;transform-box:fill-box;transform-origin:bottom}
@keyframes tk-foam{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.tk-lit.now .tk-win{animation:tk-glow 1.2s ease-out}
@keyframes tk-glow{0%{fill:#2B3448}60%{fill:#FFF3C4}100%{fill:#FFE59A}}
.tk-plank{fill:#3E6E9E}
.tk-plank:nth-child(odd){fill:#386492}
.tk-siding.now .tk-plank{animation:tk-plank .5s ease-out both;transform-box:fill-box;transform-origin:left}
.tk-siding.now .tk-plank[data-i="1"]{animation-delay:.08s}.tk-siding.now .tk-plank[data-i="2"]{animation-delay:.16s}.tk-siding.now .tk-plank[data-i="3"]{animation-delay:.24s}.tk-siding.now .tk-plank[data-i="4"]{animation-delay:.32s}.tk-siding.now .tk-plank[data-i="5"]{animation-delay:.4s}.tk-siding.now .tk-plank[data-i="6"]{animation-delay:.48s}
@keyframes tk-plank{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tk-trim{fill:none;stroke:#1E3350;stroke-width:3}
.tk-box.done .tk-shell{fill:#3E6E9E}
.tk-blue{fill:#1F4E8C}.tk-plandraw{fill:none;stroke:#DCE8FA;stroke-width:2;stroke-dasharray:900;stroke-dashoffset:0}
.tk-plan.now .tk-plandraw{animation:tk-plandraw 2.4s ease-out}
@keyframes tk-plandraw{from{stroke-dashoffset:900}to{stroke-dashoffset:0}}
.tk-plantext{fill:#3C4A66;font:700 13px system-ui,sans-serif}
.tk-bed{fill:#2B3448}.tk-wheel{fill:#1A2233;stroke:#8C99AE;stroke-width:3}
.tk-scene[data-stage="9"] .tk-lift{animation:tk-lift 2.6s ease-in-out infinite}
@keyframes tk-lift{0%,100%{transform:translateY(-6px)}50%{transform:translateY(0)}}
.tk-clip{fill:#fff;stroke:#AEBBD0;stroke-width:2}.tk-clipclip{fill:#8C99AE}
.tk-tick{fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:0}
.tk-qc.now .tk-tick{animation:tk-tick .5s ease-out both}
.tk-qc.now .tk-tick[data-i="1"]{animation-delay:.5s}.tk-qc.now .tk-tick[data-i="2"]{animation-delay:1s}
@keyframes tk-tick{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
.tk-cline{stroke:#C7D2E3;stroke-width:3;stroke-linecap:round}
.tk-lens circle{fill:rgba(255,255,255,.35);stroke:#14213D;stroke-width:3}.tk-lens line{stroke:#14213D;stroke-width:5;stroke-linecap:round}
.tk-lens{animation:tk-lens 4s ease-in-out infinite}
@keyframes tk-lens{0%,100%{transform:translate(200px,150px)}50%{transform:translate(440px,170px)}}
.tk-tagbox{fill:var(--green)}.tk-tag text{fill:#fff;font:700 13px system-ui,sans-serif}
.tk-tag.on{animation:tk-pop .6s cubic-bezier(.34,1.6,.64,1)}
@keyframes tk-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}

/* road */
.tk-sky{fill:#CFE6FA}.tk-sun{fill:#FFD166}.tk-hill{fill:#8FD460}.tk-hill.far{fill:#B9E59A}
.tk-tree rect{fill:#7A5A3A}.tk-tree circle{fill:#4E9A2A}
.tk-road{fill:#3C4555}.tk-dashes rect{fill:#F2F5FA}
.tk-trees{animation:tk-scroll 9s linear infinite}
.tk-dashes{animation:tk-scroll2 .9s linear infinite}
@keyframes tk-scroll{from{transform:translateX(0)}to{transform:translateX(-780px)}}
@keyframes tk-scroll2{from{transform:translateX(0)}to{transform:translateX(-70px)}}
.tk-bounce{animation:tk-bounce .5s ease-in-out infinite alternate}
@keyframes tk-bounce{from{transform:translateY(0)}to{transform:translateY(-2px)}}
.tk-cab{fill:var(--green)}.tk-glass{fill:#CFE6FA}.tk-bumper{fill:#8C99AE}
.tk-wheel.spin{stroke-dasharray:6 6;animation:tk-spin .6s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes tk-spin{to{transform:rotate(360deg)}}

/* delivered */
.tk-grass{fill:#8FD460}.tk-pad{fill:#B4BCC9}.tk-path{fill:none;stroke:#D8C7A4;stroke-width:8;stroke-linecap:round}
.tk-flag line{stroke:#14213D;stroke-width:2}.tk-flag path{fill:var(--green)}
.tk-conf{animation:tk-conf 3.2s linear infinite backwards}
@keyframes tk-conf{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(300px) rotate(540deg)}}
.tk-conf{transform-box:fill-box;transform-origin:center}

/* map */
.tk-mapbox{margin-top:16px;background:var(--bg-2);border-radius:14px;padding:12px}
.tk-map{display:block;width:100%;height:auto}
.tk-land{fill:#DCE5F2;stroke:#AEBBD0;stroke-width:.8}.tk-states{fill:none;stroke:#C2CDE0;stroke-width:.5}
.tk-route{fill:none;stroke:#9AA7BE;stroke-width:2.5;stroke-dasharray:4 5;stroke-linecap:round}
.tk-route.done{stroke:var(--green);stroke-width:3.5;transition:stroke-dashoffset 1.6s ease}
.tk-pin.from circle{fill:var(--navy-2);stroke:#fff;stroke-width:2}
.tk-pin.to path{fill:#E4572E;stroke:#fff;stroke-width:1.5}.tk-pinhole{fill:#fff}
.tk-vandot{fill:var(--green);stroke:#fff;stroke-width:2}.tk-vanicon{fill:#fff}
.tk-pulse{fill:var(--green);opacity:.35;animation:tk-pulse 1.8s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes tk-pulse{from{transform:scale(.6);opacity:.5}to{transform:scale(2);opacity:0}}
.tk-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;font-size:.85rem;color:var(--ink-2)}
.tk-lg::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.tk-lg.from::before{background:var(--navy-2)}.tk-lg.to::before{background:#E4572E}
.tk-seen{margin:6px 0 0;font-size:.85rem;color:var(--muted)}

/* steps */
.tk-more{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.tk-more summary{cursor:pointer;font-weight:700;color:var(--ink)}
.tk-steps{list-style:none;margin:12px 0 0;padding:0}
.tk-steps li{display:flex;gap:12px;padding:8px 0;position:relative;color:var(--muted)}
.tk-steps li:not(:last-child)::before{content:"";position:absolute;left:10px;top:30px;bottom:-6px;width:2px;background:var(--line)}
.tk-steps li.done::before{background:var(--green)}
.tk-ck{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid var(--line);background:var(--bg);margin-top:1px}
.tk-steps li.done .tk-ck{background:var(--green);border-color:var(--green)}
.tk-steps li.now .tk-ck{border-color:var(--navy-2);background:var(--navy-2);box-shadow:0 0 0 4px rgba(42,91,176,.18)}
.tk-steps li.done,.tk-steps li.now{color:var(--ink)}
.tk-steps b{display:block}
.tk-at{font-size:.8rem;color:var(--muted)}
.tk-note{margin:4px 0 0;font-size:.9rem;color:var(--ink-2);background:var(--bg-2);border-radius:8px;padding:6px 10px}

/* lookup page */
.tk-look{max-width:520px;margin:0 auto}
.tk-look form{display:grid;gap:14px;margin-top:18px}
.tk-look label{display:grid;gap:6px;font-weight:700;color:var(--ink)}
.tk-look input{min-height:48px;border:1px solid var(--line);border-radius:10px;padding:0 14px;font-size:1rem;background:var(--bg);color:var(--ink)}
.tk-look input:focus{outline:2px solid var(--navy-2);outline-offset:1px}
.tk-look .btn{justify-content:center;width:100%}
.tk-look .btn[disabled]{opacity:.6;cursor:wait}
#tk-msg{min-height:1.4em;color:#B3261E;margin:0}
.tk-hint{color:var(--muted);font-size:.92rem}
.tk-hero{max-width:640px;margin:0 auto 8px}
.tk-hero svg{display:block;width:100%;height:auto}

@media (max-width:560px){
  .tk{padding:16px;border-radius:14px}
  .tk-h{font-size:1.3rem}
  .tk-eta{width:100%}
  .tk-phases{gap:2px}
  .tk-phases li{font-size:.66rem}
  .tk-dot{width:26px;height:26px;font-size:.72rem}
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tk-scene{background:#16223A}}
@media (prefers-reduced-motion:reduce){
  .tk *,.tk *::before,.tk *::after,.tk-hero *{animation:none !important;transition:none !important}
}
#rp-tracker:not([hidden]) ~ #or-body .or-steps{display:none}
#rp-tracker{margin-bottom:24px}
