/* CALIBRE Play - app pages (/track/<token>, /account). 2026-10-07.
   Same look as the WordPress play theme (calibre-play/assets/play.css): a dark indigo
   playmat, card art the brightest thing on screen, Pokémon-style type colours as
   accents only, orange for the one main action. Loaded LAST in <head>, after
   article.css + calibre-dark.css; selectors start with "html body" to beat them
   (calibre-dark.css uses !important on several of these, so some rules must too).
   Fonts: /wp-content/themes/calibre-play/assets/fonts.css (same origin). */

:root {
  /* palette - copied from play.css */
  --play-bg: #121429;
  --play-mat: #241f48;
  --play-mat-dot: rgba(255, 214, 79, .08);
  --play-card: #1c1f3c;
  --play-card-2: #232750;
  --play-line: rgba(242, 242, 251, .14);
  --play-ink: #f2f2fb;
  --play-muted: #a9abc9;
  --play-faint: #7d80a6;          /* decoration only - under 4.5:1 for text */
  --play-electric: #e3c15f;
  --play-water: #6f9de0;
  --play-fire: #ec7656;
  --play-fire-ink: #f29a7f;
  --play-grass: #5bb98a;
  --play-psychic: #d77aa6;
  --play-ghost: #7b6fc2;
  --play-on: #17162b;
  --play-shadow: 0 5px 0 rgba(0, 0, 0, .45);
  --f-display: "Dela Gothic One", "Arial Black", Impact, system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-brand: "Genos", "Arial Narrow", system-ui, sans-serif;
  --play-r: 16px;

  /* the old token names these pages' inline styles use, re-pointed */
  --ink: var(--play-ink);
  --paper: var(--play-bg);
  --paper-warm: var(--play-card-2);
  --panel: var(--play-card);
  --panel-2: var(--play-card-2);
  --accent: var(--play-fire);
  --accent-dark: var(--play-fire-ink);
  --accent2: var(--play-electric);
  --muted: var(--play-muted);
  --line: var(--play-line);
  color-scheme: dark;
}

html body {
  background: var(--play-bg) !important;
  background-image: none !important;
  color: var(--play-ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html body::before { display: none; }            /* article.css paper texture */
html body ::selection { background: rgba(236, 118, 86, .35); color: #fff; }
html body a { color: var(--play-fire-ink); }
html body a:hover { color: #ffb8a2; }
html body :focus-visible { outline: 3px solid var(--play-water); outline-offset: 3px; }

/* ── top bar */
html body .topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc(50% - 364px));
  background: var(--play-bg);
  border-bottom: 1px solid var(--play-line);
}
html body .topbar .logo {
  font-family: var(--f-brand); font-weight: 700; font-size: 26px; line-height: 1;
  letter-spacing: .14em; color: var(--play-ink); text-decoration: none;
}
html body .topbar .backlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 600 14px/1 var(--f-body); letter-spacing: 0; text-transform: none;
  color: var(--play-ink); text-decoration: none;
  border: 1.5px solid var(--play-line); border-radius: 12px; background: var(--play-card);
}
html body .topbar .backlink:hover { border-color: var(--play-muted); color: var(--play-ink); }

/* ── page column + heading */
html body .ac-main { max-width: 760px; margin: 0 auto; padding: 28px 16px 72px; position: relative; z-index: 2; }
html body .ac-head { margin-bottom: 22px; }
html body .ac-eyebrow { font: 800 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--play-muted); }
html body .ac-title {
  font-family: var(--f-display); font-weight: 400; letter-spacing: .005em; text-wrap: balance;
  font-size: clamp(32px, 7vw, 50px); line-height: 1.05; color: var(--play-ink); margin: 10px 0 8px;
}
html body .ac-sub { font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--play-muted); margin: 0; }

/* messages */
html body .ac-msg { font: 600 15px/1.5 var(--f-body); padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
html body .ac-msg.err { background: color-mix(in srgb, var(--play-fire) 14%, var(--play-card)); color: var(--play-ink); border: 1.5px solid color-mix(in srgb, var(--play-fire) 60%, var(--play-card)); }
html body .ac-msg.ok { background: color-mix(in srgb, var(--play-grass) 14%, var(--play-card)); color: var(--play-ink); border: 1.5px solid color-mix(in srgb, var(--play-grass) 60%, var(--play-card)); }
/* "lost your link?" help - shown only while an error message is showing */
html body .pa-help { display: none; margin: -4px 0 18px; font-size: 15px; color: var(--play-muted); }
html body #ac-msg.err[style*="block"] ~ .pa-help { display: block; }

/* buttons (old classes, new look) */
html body .ac-btn, html body .lp-btn, html body .reveal-btn, html body .reveal-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  appearance: none; cursor: pointer; text-decoration: none; text-align: center;
  font: 800 16px/1.15 var(--f-body); padding: 12px 20px; border-radius: 12px;
  background: var(--play-fire); color: var(--play-on) !important;
  border: 2px solid rgba(0, 0, 0, .25); box-shadow: var(--play-shadow);
  transition: transform .08s, box-shadow .08s, background-color .15s;
}
html body .ac-btn:hover, html body .lp-btn:hover, html body .reveal-btn:hover, html body .reveal-share:hover { background: #f18566; color: var(--play-on) !important; }
html body .ac-btn:active, html body .lp-btn:active, html body .reveal-btn:active, html body .reveal-share:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
html body .ac-btn:disabled, html body .lp-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
html body .lp-btn.lp-ghost,
html body .od-back, html body .reveal-report, html body .pa-copy, html body .ac-link, html body .tk-foot a, html body .sp-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  font: 700 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 0 16px; border-radius: 12px;
  background: var(--play-card); color: var(--play-ink) !important; border: 1.5px solid var(--play-line);
}
html body .lp-btn.lp-ghost:hover, html body .od-back:hover, html body .reveal-report:hover, html body .pa-copy:hover,
html body .ac-link:hover, html body .tk-foot a:hover, html body .sp-link:hover { border-color: var(--play-muted); background: var(--play-card-2); text-decoration: none; }

/* ── order list */
html body .ord-count { font: 600 14px/1.4 var(--f-body); color: var(--play-muted); margin: 0 0 10px; }
html body .ord-row {
  display: block; padding: 16px 16px 14px; margin-bottom: 14px; cursor: pointer;
  background: var(--play-card); border: 1.5px solid var(--play-line); border-radius: var(--play-r);
  box-shadow: var(--play-shadow); color: var(--play-ink);
  transition: border-color .12s, transform .12s;
}
html body .ord-row:hover { border-color: color-mix(in srgb, var(--tone, var(--play-water)) 70%, var(--play-card)); transform: translateY(-1px); }
html body .ord-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 14px; }
html body .ord-top > div:first-child { min-width: 0; }
html body .ord-id { font: 500 13px/1.3 var(--f-data); color: var(--play-muted); overflow-wrap: anywhere; }
html body .ord-name { font: 800 17px/1.3 var(--f-body); color: var(--play-ink); margin-top: 3px; }
html body .ord-meta { font: 400 14px/1.4 var(--f-body); color: var(--play-muted); margin-top: 2px; }
html body .ord-foot { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--play-line); }
html body .ord-todo, html body .ord-view { font: 800 15px/1.3 var(--f-body); }
html body .ord-todo { color: var(--play-electric); margin: 0; }
html body .ord-view { color: var(--play-muted); }
html body .ord-arrow { color: inherit; }
@media (max-width: 480px) {
  html body .ord-top { flex-direction: column-reverse; align-items: flex-start; }
}

/* status chips - colour comes from the stage */
[data-stage="awaiting"] { --tone: var(--play-electric); }
[data-stage="received"], [data-stage="in_queue"], [data-stage="imaging_complete"] { --tone: var(--play-water); }
[data-stage="analysis_complete"], [data-stage="encapsulation"], [data-stage="dispatch_scheduled"] { --tone: var(--play-psychic); }
[data-stage="dispatched"] { --tone: var(--play-grass); }
html body .ord-stage, html body .od-status, html body .pc-cur {
  display: inline-block; white-space: nowrap; text-align: left;
  font: 800 13px/1.2 var(--f-body); padding: 6px 11px; border-radius: 999px;
  color: var(--tone, var(--play-ink));
  background: var(--play-card-2);
  background: color-mix(in srgb, var(--tone, var(--play-muted)) 15%, var(--play-card));
  border: 1.5px solid color-mix(in srgb, var(--tone, var(--play-muted)) 55%, var(--play-card));
}
html body .od-status:empty { display: none; }

/* ── 4-step order tracker: ordered -> received -> graded -> posted back */
html body .pa-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body .pa-steps li {
  position: relative; padding-top: 30px; text-align: center;
  font: 600 13px/1.25 var(--f-body); color: var(--play-muted);
}
html body .pa-steps li::before {          /* the line joining this step to the previous one */
  content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; border-radius: 3px;
  background: var(--play-line);
}
html body .pa-steps li:first-child::before { display: none; }
html body .pa-steps li.done::before, html body .pa-steps li.current::before { background: var(--play-grass); }
html body .pa-dot {
  position: absolute; top: 0; left: 50%; z-index: 1; width: 23px; height: 23px; margin-left: -11.5px; border-radius: 50%;
  background: var(--play-bg); border: 2px solid var(--play-faint);
}
html body .pa-steps li.done { color: var(--play-ink); }
html body .pa-steps li.done .pa-dot { background: var(--play-grass); border-color: var(--play-grass); }
html body .pa-steps li.done .pa-dot::after {   /* tick */
  content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px;
  border: solid var(--play-on); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
html body .pa-steps li.current { color: var(--play-fire-ink); font-weight: 800; }
html body .pa-steps li.current .pa-dot { border-color: var(--play-fire); background: var(--play-card); box-shadow: 0 0 0 4px rgba(236, 118, 86, .22); animation: pa-pulse 2.2s ease-in-out infinite; }
html body .pa-steps li.current .pa-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--play-fire); }
@keyframes pa-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(236, 118, 86, .22); } 50% { box-shadow: 0 0 0 8px rgba(236, 118, 86, .08); } }
html body .pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── order detail */
html body .od-back { margin-bottom: 16px; }
html body .pa-status {
  background-color: var(--play-mat);
  background-image: radial-gradient(var(--play-mat-dot) 1.6px, transparent 1.7px); background-size: 14px 14px;
  border: 1.5px solid var(--play-line); border-radius: 20px; box-shadow: var(--play-shadow);
  padding: 18px 18px 20px; margin-bottom: 18px;
}
html body .od-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 6px; }
html body .od-h { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 5vw, 30px); line-height: 1.1; color: var(--play-ink); overflow-wrap: anywhere; }
html body .od-meta { font: 400 15px/1.45 var(--f-body); color: var(--play-ink); opacity: .85; margin: 0; }
html body .pa-status .pa-steps { margin-top: 18px; }
html body .od-eta {
  margin: 18px 0 0; padding: 10px 14px; border-radius: 12px;
  font: 700 15px/1.4 var(--f-body); color: var(--play-ink);
  background: color-mix(in srgb, var(--play-water) 16%, var(--play-card));
  border: 1.5px solid color-mix(in srgb, var(--play-water) 60%, var(--play-card));
}

/* cards in the order */
html body .ac-card {
  background: var(--play-card) !important; border: 1.5px solid var(--play-line) !important; color: var(--play-ink) !important;
  border-radius: 18px; box-shadow: var(--play-shadow); padding: 4px 18px; margin-bottom: 16px;
}
html body #od-cards:empty { display: none; }
html body .pc { border-top: 1px solid var(--play-line); padding: 18px 0; }
html body .pc:first-child { border-top: 0; }
html body .pc-head { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; margin-bottom: 16px; }
html body .pc-thumb { width: 58px; height: 81px; border-radius: 6px; object-fit: cover; background: var(--play-card-2); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); grid-row: span 2; }
html body .pc-name { font: 800 17px/1.3 var(--f-body); color: var(--play-ink); }
html body .pc-set { font: 400 14px/1.4 var(--f-body); color: var(--play-muted); }
html body .pc-cur { margin: 0; justify-self: end; }
@media (max-width: 520px) {
  html body .pc-head { grid-template-columns: 58px minmax(0, 1fr); }
  html body .pc-thumb { grid-row: span 2; }
  html body .pc-cur { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* per-card timeline */
html body .tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
html body .tl li {
  position: relative; padding: 0 0 14px 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
}
html body .tl li:last-child { padding-bottom: 0; }
html body .tl .tl-at { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
html body .tl .tl-track { grid-column: 1 / -1; }
html body .tl li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--play-line); }
html body .tl li.done::before { background: var(--play-grass); }
html body .tl-dot { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--play-bg); border: 2px solid var(--play-faint); box-sizing: border-box; }
html body .tl li.done .tl-dot { background: var(--play-grass); border-color: var(--play-grass); }
html body .tl li.current .tl-dot { background: var(--play-fire); border-color: var(--play-fire); box-shadow: 0 0 0 4px rgba(236, 118, 86, .22); }
html body .tl-label { font: 400 15px/1.35 var(--f-body); color: var(--play-muted); }
html body .tl li.done .tl-label { color: var(--play-ink); font-weight: 600; }
html body .tl li.current .tl-label { color: var(--play-fire-ink); font-weight: 800; }
html body .tl-at { font: 500 12.5px/1.4 var(--f-data); color: var(--play-muted); margin-top: 2px; }
html body .tl-track { font: 600 14px/1.4 var(--f-body); color: var(--play-muted); margin-top: 3px; }
html body .tl-track a { color: var(--play-fire-ink); display: inline-block; padding: 6px 0; }

/* ── "Send us your cards" + free-label panels */
html body .send-panel {
  background: color-mix(in srgb, var(--play-electric) 9%, var(--play-card));
  border: 1.5px solid color-mix(in srgb, var(--play-electric) 50%, var(--play-card));
  border-radius: 20px; box-shadow: var(--play-shadow); padding: 20px 18px; margin-bottom: 18px;
}
html body .sp-eyebrow { font: 800 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--play-electric); }
html body .sp-h { font: 800 24px/1.15 var(--f-body); color: var(--play-ink); margin: 6px 0 8px; }
html body .sp-lead { font: 400 16px/1.55 var(--f-body); color: var(--play-ink) !important; opacity: .92; margin: 0 0 16px; }
html body .sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
html body .sp-box, html body .sp-pack {
  background: var(--play-bg) !important; border: 1.5px solid var(--play-line) !important; border-radius: 14px; padding: 14px 16px;
}
html body .sp-box { display: flex; flex-direction: column; align-items: flex-start; }
html body .sp-box-l { font: 800 12px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--play-muted); margin-bottom: 8px; }
html body .sp-addr { font: 600 17px/1.5 var(--f-body); color: var(--play-ink); }
html body .sp-ref { font: 500 17px/1.35 var(--f-data); color: var(--play-electric); word-break: break-all; }
html body .sp-note { font: 400 14px/1.5 var(--f-body); color: var(--play-muted); margin-top: 8px; }
html body .sp-note strong { color: var(--play-ink); }
html body p.sp-note[style] { font-size: 15px !important; color: var(--play-ink); opacity: .9; margin: 14px 0 0 !important; }
html body .sp-note a[style] { color: var(--play-fire-ink) !important; }
html body .pa-copy { margin-top: 12px; min-height: 44px; font-size: 14.5px; padding: 0 14px; background: var(--play-card-2); }
html body .pa-copy.is-copied { border-color: var(--play-grass); color: var(--play-grass) !important; }
html body .sp-box .pa-copy { margin-top: auto; }
html body .sp-box .sp-addr + .pa-copy, html body .sp-box .sp-ref + .pa-copy { margin-top: 12px; }
html body .sp-steps { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: sp; }
html body .sp-steps li {
  counter-increment: sp; position: relative; padding: 3px 0 0 40px; min-height: 30px; margin: 0 0 10px;
  font: 400 15px/1.5 var(--f-body); color: var(--play-ink) !important;
}
html body .sp-steps li:last-child { margin-bottom: 0; }
html body .sp-steps li::before {
  content: counter(sp); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; box-sizing: border-box;
  font: 400 13px/1 var(--f-display); color: var(--play-electric); border: 2px solid var(--play-electric); background: var(--play-card);
}
html body .sp-link { margin-top: 14px; }
html body .lp-btn { display: flex; width: 100%; margin: 4px 0 12px; font-size: 17px; min-height: 52px; }
html body .lp-photo {
  display: flex; gap: 12px; align-items: center; cursor: pointer; min-height: 64px;
  background: var(--play-bg) !important; border: 1.5px dashed color-mix(in srgb, var(--play-water) 70%, var(--play-card)) !important;
  border-radius: 14px; padding: 12px 14px; margin: 0 0 12px;
}
html body .lp-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
html body .lp-photo-t, html body .lp-photo-t strong { font: 400 15px/1.5 var(--f-body); color: var(--play-ink) !important; }
html body .lp-photo-t strong { font-weight: 800; }
html body .lp-photo-t span[style] { color: var(--play-fire-ink) !important; font-weight: 800 !important; }
html body .lp-err {
  font: 600 15px/1.45 var(--f-body); color: var(--play-ink); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px;
  background: color-mix(in srgb, var(--play-fire) 16%, var(--play-card)); border: 1.5px solid color-mix(in srgb, var(--play-fire) 60%, var(--play-card));
}
html body .lp-trk { font: 400 15px/1.45 var(--f-body); color: var(--play-muted); margin: 2px 0 12px; }
html body .lp-trk a { color: var(--play-fire-ink); font-family: var(--f-data); }
html body .send-panel a[style*="color:var(--accent)"] { color: var(--play-fire-ink) !important; }
@media (max-width: 560px) { html body .sp-grid { grid-template-columns: 1fr; } }

/* ── grade reveal: a sealed envelope, then the slab label pops in */
html body .pc-head + .reveal { margin: 0 0 20px; }
html body .reveal {
  margin-top: 18px; padding: 22px 16px; text-align: center; border-radius: 18px;
  background-color: var(--play-mat);
  background-image: radial-gradient(var(--play-mat-dot) 1.6px, transparent 1.7px); background-size: 14px 14px;
  border: 1.5px solid color-mix(in srgb, var(--play-electric) 55%, var(--play-card));
  box-shadow: var(--play-shadow);
}
html body .reveal-eyebrow { font: 800 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--play-electric); }
html body .reveal-hint { font: 600 16px/1.45 var(--f-body); color: var(--play-ink); margin: 8px 0 16px; }
html body .reveal-btn { font-size: 17px; padding: 14px 26px; min-height: 52px; animation: pa-glow 2.4s ease-in-out infinite; }
@keyframes pa-glow { 0%, 100% { box-shadow: var(--play-shadow), 0 0 0 0 rgba(227, 193, 95, 0); } 50% { box-shadow: var(--play-shadow), 0 0 0 7px rgba(227, 193, 95, .18); } }
html body .reveal.is-shown .reveal-shown {
  display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 18px 24px; align-items: center; text-align: left;
  animation: none;
}
html body .pa-slab {
  position: relative; width: 100%; max-width: 210px; margin: 0 auto; padding: 8px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(225, 232, 245, .7));
  box-shadow: 0 0 0 2px rgba(242, 242, 251, .55), 0 8px 0 rgba(0, 0, 0, .45), inset 0 0 18px rgba(255, 255, 255, .9);
}
html body .pa-label {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 6px; text-align: left;
  background: #fbfaf7; border: 2px solid #c8553d; border-radius: 6px; padding: 5px 5px 5px 8px; color: #17162b;
}
html body .pa-scan + .pa-label, html body .pa-label + .pa-scan { margin-top: 8px; }
html body .pa-brand { font: 700 14px/1 var(--f-brand); letter-spacing: .2em; }
html body .pa-nm { font: 800 12px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
html body .pa-meta { font: 500 10px/1.3 var(--f-data); color: #545675; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .pa-gbox { background: #c8553d; color: #fff; border-radius: 4px; display: grid; place-items: center; align-content: center; text-align: center; padding: 3px 2px; }
html body .pa-gbox span { font: 800 8px/1.1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
html body .pa-gbox b { font: 400 22px/1.05 var(--f-display); }
html body .pa-scan { position: relative; aspect-ratio: 63 / 88; border-radius: 5% / 3.6%; overflow: hidden; background: #e9e9ef; box-shadow: 0 10px 18px rgba(0, 0, 0, .28); }
html body .pa-scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
html body .pa-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .9) 45%, rgba(255, 120, 200, .55) 52%, rgba(120, 220, 255, .55) 58%, transparent 72%);
  background-size: 260% 260%; animation: pa-sway 5s ease-in-out infinite;
}
@keyframes pa-sway { 0%, 100% { background-position: 30% 50%; } 50% { background-position: 70% 50%; } }
html body .pa-res { min-width: 0; }
html body .reveal-grade {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(60px, 15vw, 84px); line-height: 1;
  color: var(--play-electric); margin: 6px 0 4px; outline: none;
}
html body .reveal-grade small { font: 800 22px/1 var(--f-body); color: var(--play-muted); }
html body .pa-cert { font: 500 14px/1.4 var(--f-data); color: var(--play-muted); margin: 0 0 14px; overflow-wrap: anywhere; }
html body .pa-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html body .reveal-report { margin-top: 0; }
html body .reveal-share { font-size: 15px; padding: 10px 18px; }
@media (max-width: 560px) {
  html body .reveal.is-shown .reveal-shown { grid-template-columns: 1fr; text-align: center; }
  html body .pa-slab { max-width: 214px; }
  html body .pa-actions { justify-content: center; }
  html body .pa-actions > * { flex: 1 1 100%; }
}
/* just revealed: slab drops in, the grade stamps down, confetti (script) */
html body .reveal.pa-just .pa-slab { animation: pa-slab-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
html body .reveal.pa-just .reveal-grade { animation: pa-stamp .5s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
html body .reveal.pa-just .pa-actions { animation: pa-fade .4s ease .55s both; }
@keyframes pa-slab-in { 0% { opacity: 0; transform: translateY(24px) rotate(-7deg) scale(.82); } 60% { opacity: 1; transform: translateY(-4px) rotate(2deg) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes pa-stamp { 0% { opacity: 0; transform: scale(2.1); } 60% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes pa-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html body .pa-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147483000; }

/* ── account: sign-in + filters */
html body .ac-login { padding: 22px 20px; }
html body .ac-login > p:first-child { font-family: var(--f-body) !important; font-size: 16px !important; color: var(--play-ink) !important; }
html body .ac-login label { display: block; font: 700 15px/1.3 var(--f-body); color: var(--play-ink); margin-bottom: 8px; }
html body .ac-login input,
html body .ord-search, html body .ord-sel, html body .ord-date {
  background: var(--play-card-2) !important; color: var(--play-ink) !important; border: 1.5px solid var(--play-line) !important;
  border-radius: 12px; font: 400 16px/1.3 var(--f-body); min-height: 48px; padding: 10px 14px;
}
html body .ac-login input { width: 100%; }
html body .ac-login input::placeholder, html body .ord-search::placeholder { color: var(--play-muted) !important; opacity: .85; }
html body .ac-login input:focus, html body .ord-search:focus, html body .ord-sel:focus, html body .ord-date:focus {
  border-color: var(--play-water) !important; outline: none; box-shadow: 0 0 0 3px rgba(111, 157, 224, .3);
}
html body .ac-login .ac-sub { font-size: 14.5px !important; margin-top: 16px; }
html body .ac-login .ac-sub a { color: var(--play-fire-ink) !important; font-weight: 700; }
html body .pa-alt { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--play-line); font-size: 14.5px; color: var(--play-muted); }
@media (max-width: 520px) { html body .ac-login .ac-btn { width: 100%; } }
html body .ac-bar { margin: 4px 0 20px; }
html body .ac-who { font: 400 15px/1.4 var(--f-body); color: var(--play-muted); overflow-wrap: anywhere; }
html body .ac-who b { color: var(--play-ink); font-weight: 700; }
html body .ord-filters { gap: 10px; margin-bottom: 14px; }
html body .ord-sel { flex: 1 1 170px; }
html body .ord-date { flex: 1 1 140px; min-width: 0; }
html body .ord-clear { margin-left: auto; }
html body .ord-sel option { background: var(--play-card-2); color: var(--play-ink); }
html body .ord-dash { color: var(--play-muted); }
html body .ord-clear { min-height: 44px; padding: 0 10px; color: var(--play-fire-ink); font: 700 14.5px/1 var(--f-body); }
html body .ord-again {
  margin-top: 20px; padding: 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--play-ghost) 22%, var(--play-card)) !important;
  border: 1.5px solid color-mix(in srgb, var(--play-ghost) 60%, var(--play-card)) !important;
}
html body .oa-h { font: 800 17px/1.3 var(--f-body); color: var(--play-ink); }
html body .oa-sub { font: 400 15px/1.45 var(--f-body); color: var(--play-ink); opacity: .85; }

/* empty / no-match states */
html body #orders-empty, html body #orders-nomatch {
  padding: 18px; border-radius: 16px; border: 1.5px dashed var(--play-line); background: var(--play-card);
  color: var(--play-ink); font-size: 16px;
}

/* track footer */
html body .tk-foot { margin-top: 30px; }

/* ── share menu from /assets/share.js (fallback when the phone's share sheet isn't available) */
html body #cwp-share-sheet { background: rgba(8, 9, 20, .72) !important; }
html body #cwp-share-sheet > div {
  background: var(--play-card) !important; border: 1.5px solid var(--play-line); border-bottom: 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .55) !important;
}
html body #cwp-share-sheet > div > div:first-child { background: var(--play-line) !important; }
html body #cwp-share-sheet > div > div:nth-child(2) { color: var(--play-muted) !important; font-family: var(--f-body) !important; font-weight: 800 !important; }
html body #cwp-share-sheet .cwp-sh { color: var(--play-ink) !important; font-family: var(--f-body) !important; }
html body #cwp-share-sheet .cwp-sh:hover, html body #cwp-share-sheet .cwp-sh:focus-visible { background: var(--play-card-2); }
html body #cwp-share-sheet .cwp-sh-close {
  background: var(--play-card-2) !important; color: var(--play-ink) !important; border: 1.5px solid var(--play-line) !important;
  font-family: var(--f-body) !important; font-weight: 800 !important; min-height: 48px;
}

@media (max-width: 420px) {
  html body .topbar .logo { font-size: 22px; }
  html body .topbar .backlink { font-size: 13.5px; padding: 0 12px; }
  html body .pa-steps li { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* "Tell us which cards you're sending" panel (8 Oct 2026) */
html body .nm-panel { margin-bottom: 16px; border-color: color-mix(in srgb, var(--play-electric) 45%, var(--play-line)); }
html body .nm-row { display: block; margin: 0 0 12px; }
html body .nm-in { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; min-height: 48px; padding: 12px 14px; font: 500 16px/1.3 var(--f-body); color: var(--play-ink); background: var(--play-card-2); border: 1.5px solid var(--play-line); border-radius: 12px; }
html body .nm-in::placeholder { color: var(--play-faint); }
html body .nm-in:focus { outline: 3px solid var(--play-electric); outline-offset: 1px; border-color: transparent; }
html body .nm-err { color: #ff9b85; font-size: 14px; margin: 4px 0 0; }
html body .nm-done { font: 700 16px/1.4 var(--f-body); color: var(--play-grass); margin: 0 0 14px; }
html body .nm-panel { scroll-margin-top: 96px; }  /* jump-to lands below the sticky top bar */
