/* JMS progress (0.44): shared by the apps, SiteLegal, the hub and jmsservices.co.uk. Each stylesheet sets --jp (its
   brand colour); this file draws the card, the scenes, the checklist and the busy button. Reduced motion: still. */
.jp { --jp-c: var(--jp, var(--brand, #2B50C8)); position: relative; margin-top: 16px; padding: 14px 16px 12px; border-radius: 16px; text-align: left;
  background: color-mix(in srgb, var(--jp-c) 6%, transparent); border: 1px solid color-mix(in srgb, var(--jp-c) 28%, transparent); overflow: hidden;
  animation: jp-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.jp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--jp-c) 10%, transparent) 50%, transparent 65%);
  background-size: 250% 100%; animation: jp-sheen 2.6s linear infinite; }
.jp-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.jp-scene { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--jp-c); background: color-mix(in srgb, var(--jp-c) 12%, transparent); }
.jp-scene svg { width: 42px; height: 42px; overflow: visible; }
.jp-meta { min-width: 0; }
.jp-label { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; }
.jp-time { margin: 2px 0 0; font-size: 13px; opacity: .72; }
.jp-secs { font-variant-numeric: tabular-nums; font-weight: 700; }
.jp-pct { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; color: var(--jp-c); }
.jp-track { position: relative; height: 8px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, currentColor 12%, transparent); }
.jp-fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); border-radius: inherit; transition: transform .25s ease-out;
  background: linear-gradient(90deg, var(--jp-c), color-mix(in srgb, var(--jp-c) 55%, #ffffff)); }
.jp-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px); background-size: 22.6px 22.6px; animation: jp-stripes .8s linear infinite; }
.jp-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; position: relative; }
.jp-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; opacity: .55; transition: opacity .3s; }
.jp-steps li.is-on, .jp-steps li.is-done { opacity: 1; }
.jp-steps li.is-on .jp-step { font-weight: 700; }
.jp-mark { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); }
.is-on .jp-mark { border-color: color-mix(in srgb, var(--jp-c) 25%, transparent); border-top-color: var(--jp-c); animation: jp-spin .8s linear infinite; }
.is-done .jp-mark { background: var(--jp-c); border-color: var(--jp-c); animation: jp-pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.is-done .jp-mark::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.jp-slow { position: relative; margin: 10px 0 0; font-size: 13px; font-weight: 600; }
.jp-long .jp-scene { animation: jp-breathe 1.8s ease-in-out infinite; }
.jp-done { border-color: var(--jp-c); }
.jp-done .jp-fill::after, .jp-done::before { animation: none; display: none; }
.jp-compact { padding: 10px 12px; }
.jp-compact .jp-scene { width: 36px; height: 36px; border-radius: 10px; } .jp-compact .jp-scene svg { width: 26px; height: 26px; }
.jp-compact .jp-time { display: none; } .jp-compact .jp-track { margin-top: 8px; }
.row > .jp, .inline > .jp { flex: 1 0 100%; }
form.jp-running :is(input, select, textarea, label:has(input), .chip-grid):not(.jp *) { opacity: .55; pointer-events: none; transition: opacity .3s; }
.jp-busy { position: relative; cursor: progress !important; }
.jp-busy::before { content: ""; display: inline-block; vertical-align: -.15em; width: 1em; height: 1em; margin-right: .2em; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: jp-spin .7s linear infinite; }

/* Scenes */
.jp-sweep { transform-origin: 32px 32px; animation: jp-spin 2.2s linear infinite; }
.jp-blip { transform-box: fill-box; transform-origin: center; animation: jp-blip 2.2s ease-in-out infinite; } .jp-blip.b2 { animation-delay: .7s; } .jp-blip.b3 { animation-delay: 1.4s; }
.jp-bub { transform-box: fill-box; transform-origin: bottom left; animation: jp-bubble 2.4s ease-in-out infinite; } .jp-bub.b2 { transform-origin: bottom right; animation-delay: 1.2s; }
.jp-dot { animation: jp-type 1.2s ease-in-out infinite; } .jp-dot.d2 { animation-delay: .15s; } .jp-dot.d3 { animation-delay: .3s; }
.jp-scan { animation: jp-scan 1.8s ease-in-out infinite alternate; }
.jp-star { transform-box: fill-box; transform-origin: center; animation: jp-star 2.5s ease-in-out infinite; }
.jp-star.s2 { animation-delay: .2s; } .jp-star.s3 { animation-delay: .4s; } .jp-star.s4 { animation-delay: .6s; } .jp-star.s5 { animation-delay: .8s; }
.jp-sheet { animation: jp-shuffle 2.4s ease-in-out infinite; } .jp-sheet.s2 { animation-delay: .2s; } .jp-sheet.s3 { animation-delay: .4s; }
.jp-lens { animation: jp-lens 3s ease-in-out infinite; }
.jp-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jp-draw 2.4s ease-in-out infinite; }
[data-scene="mail"] .jp-blip, [data-scene="docs"] .jp-blip { animation-name: jp-ping; }

@keyframes jp-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes jp-sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes jp-stripes { to { background-position: 22.6px 0; } }
@keyframes jp-spin { to { transform: rotate(360deg); } }
@keyframes jp-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes jp-breathe { 50% { transform: scale(1.06); } }
@keyframes jp-blip { 0%, 100% { opacity: .25; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.15); } }
@keyframes jp-ping { 0%, 100% { opacity: 0; transform: scale(.4); } 50%, 80% { opacity: 1; transform: scale(1); } }
@keyframes jp-bubble { 0%, 100% { transform: scale(.94); opacity: .55; } 30%, 60% { transform: scale(1); opacity: 1; } }
@keyframes jp-type { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes jp-scan { from { transform: translateY(0); } to { transform: translateY(30px); } }
@keyframes jp-star { 0%, 100% { fill: transparent; transform: scale(.9); } 35%, 70% { fill: currentColor; transform: scale(1.1); } }
@keyframes jp-shuffle { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -4px); } }
@keyframes jp-lens { 0%, 100% { transform: translate(-22px, 8px); } 50% { transform: translate(4px, 0); } }
@keyframes jp-draw { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

@media (max-width: 420px) { .jp-head { grid-template-columns: auto minmax(0, 1fr); } .jp-pct { grid-column: 2; justify-self: start; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .jp, .jp::before, .jp-fill::after, .jp-mark, .jp-scene, .jp-scene *, .jp-busy::before { animation: none !important; }
  .jp-fill, .jp-steps li { transition: none; } .jp::before { display: none; } .jp-tick { stroke-dashoffset: 0; } .jp-blip, .jp-star { opacity: 1; fill: currentColor; }
}
@media (forced-colors: active) { .jp-fill { background: Highlight; } .is-done .jp-mark { background: Highlight; } }
