/*
 * Mirialabs website: animated figures (.fg, .gm, .orb) and app mock-ups (.mk).
 * Animation states come from website.js: [data-seq] roots get data-step and
 * .is-run; their [data-on] children get .is-on for the steps they list.
 * Nothing here hides content when JS is off: default states are readable.
 */

/* =========================================================
   Figures (diagrams)
   ========================================================= */
.fg { margin: 0; }
.fg-box { position: relative; aspect-ratio: 720 / 440; container-type: inline-size; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--ink); }
.is-soft .fg-box { background: #fff; }
.fg-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fg-svg * { vector-effect: non-scaling-stroke; }
.fg-site { fill: #f7f7f9; stroke: #d6d9df; stroke-width: 1.2; stroke-dasharray: 5 6; }
.fg-area { fill: #fafafb; stroke: #e1e3e8; stroke-width: 1.2; }
.fg-zonebox { fill: rgba(11, 95, 217, .045); stroke: var(--accent); stroke-width: 1.6; }
.fg-wire { stroke: #c4c8d0; stroke-width: 1.6; fill: none; }
.fg-lan { stroke: var(--accent); stroke-width: 2; fill: none; opacity: .35; stroke-dasharray: 1 0; }
.fg-nolink { stroke: #c2c6ce; stroke-width: 1.6; fill: none; stroke-dasharray: 3 6; }
.fg-link { stroke-width: 3; fill: none; opacity: 0; transition: opacity .45s; }
.fg-link.is-ok { stroke: var(--green); }
.fg-link.is-down { stroke: var(--red); stroke-dasharray: 7 7; }
.fg-link.is-on { opacity: 1; }
.no-js .fg-link.is-ok, .fg:not(.is-run) .fg-link.is-ok { opacity: 1; }

.fg-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .75em; padding: .65em 1em .65em .65em; background: #fff; border: 1px solid var(--line); border-radius: 1em; box-shadow: 0 10px 26px -16px rgba(11, 13, 18, .35); font-size: clamp(9.5px, 1.85cqw, 13.5px); line-height: 1.25; white-space: nowrap; transition: border-color .35s, box-shadow .35s, opacity .35s, background .35s; z-index: 2; }
.fg-node b { display: block; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.fg-node small { display: block; color: var(--muted); font-size: .86em; margin-top: .1em; }
.fg-node-ico { width: 2.5em; height: 2.5em; border-radius: .75em; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.fg-node-ico svg { width: 1.35em; height: 1.35em; }
.fg-cloud.is-faded { opacity: .55; }
.fg-label { position: absolute; font-size: clamp(8px, 1.6cqw, 12px); font-weight: 600; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.fg-label.is-ink { color: var(--accent); }

.fg-swap > i { display: none; font-style: normal; }
.fg-swap > i.is-on { display: inline; }
.fg:not(.is-run) .fg-swap > i:first-child { display: inline; }
.fg-swap .is-good, .is-good { color: var(--green) !important; }
.fg-swap .is-muted { color: var(--red); }

.fg-dev { width: 2.6em; height: 2.6em; border-radius: .6em; background: #fff; border: 1px solid #d6d9df; display: grid; place-items: center; flex: none; box-shadow: inset 0 -3px 0 #eceef2; }
.fg-dev span { width: 1.5em; height: .45em; border-radius: .15em; background: #1d3b8f; box-shadow: 0 0 0 1px #0e1f4d inset; }
.fg-queue { position: absolute; right: -.7em; top: -.7em; display: flex; gap: .2em; padding: .25em .35em; border-radius: 1em; background: #fff4e0; border: 1px solid #f3d9a6; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.fg-queue.is-on { opacity: 1; transform: none; }
.fg-queue i { width: .55em; height: .55em; border-radius: 50%; background: #e3a008; opacity: .25; transition: opacity .3s; }
.fg-queue i.is-on { opacity: 1; }

.fg-lock { width: 2.5em; height: 2.5em; border-radius: .75em; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; position: relative; transition: background .3s, color .3s; }
.fg-lock svg { width: 1.3em; height: 1.3em; grid-area: 1 / 1; transition: opacity .25s, transform .3s var(--ease); }
.fg-lock .is-u { opacity: 0; transform: scale(.7); }
.fg-door.is-on { border-color: rgba(23, 160, 93, .45); box-shadow: 0 0 0 4px rgba(23, 160, 93, .10), 0 10px 26px -16px rgba(11, 13, 18, .35); }
.fg-door.is-on .fg-lock { background: #e5f6ec; color: var(--green); }
.fg-door.is-on .fg-lock .is-l { opacity: 0; transform: scale(.7); }
.fg-door.is-on .fg-lock .is-u { opacity: 1; transform: none; }
.fg-door .fg-swap .fg-idle { display: inline; }
.fg-door .fg-swap .fg-act { display: none; }
.fg-door.is-on .fg-swap .fg-idle { display: none; }
.fg-door.is-on .fg-swap .fg-act { display: inline; }
.fg-tap { position: absolute; left: 1.9em; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid var(--green); opacity: 0; pointer-events: none; }
.fg-reader .fg-tap { border-color: var(--accent); }
.fg-node.is-on .fg-tap { animation: fg-tap 1s var(--ease) 1; }
@keyframes fg-tap { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
.fg-reader.is-on { border-color: rgba(11, 95, 217, .5); box-shadow: 0 0 0 4px rgba(11, 95, 217, .10); }

.fg-pulse { position: absolute; left: var(--x0); top: var(--y0); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23, 160, 93, .18); opacity: 0; z-index: 3; pointer-events: none; }
.fg-pulse.is-lan { background: var(--accent); box-shadow: 0 0 0 4px rgba(11, 95, 217, .18); }
.fg-pulse.is-on { animation: fg-move 1.05s cubic-bezier(.45, 0, .3, 1) 1 forwards; }
@keyframes fg-move { 0% { left: var(--x0); top: var(--y0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: var(--x1); top: var(--y1); opacity: 0; } }

.fg-break { position: absolute; transform: translate(-50%, -50%) scale(.4); width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .3s, transform .35s var(--ease); z-index: 3; box-shadow: 0 0 0 5px rgba(229, 72, 77, .15); }
.fg-break svg { width: 14px; height: 14px; stroke-width: 2.6; }
.fg-break.is-on, .fg-break.is-grey { opacity: 1; transform: translate(-50%, -50%); }
.fg-break.is-grey { background: #fff; color: #9aa0aa; border: 1px solid var(--line-2); box-shadow: none; width: 22px; height: 22px; }
.fg-flag { position: absolute; transform: translate(0, -50%); display: inline-flex; align-items: center; gap: .45em; padding: .4em .8em; border-radius: 999px; font-size: clamp(8px, 1.65cqw, 12.5px); font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .35s; z-index: 3; }
.fg-flag svg { width: 1.2em; height: 1.2em; }
.fg-flag.is-red { background: #fdeced; color: #b4232a; }
.fg-flag.is-blue { background: var(--accent-50); color: var(--accent); transform: translate(-50%, -50%); }
.fg-flag.is-on { opacity: 1; }
.fg-up { position: absolute; transform: translateX(-50%); width: 10px; height: 23%; pointer-events: none; z-index: 3; }
.fg-up i { position: absolute; left: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); opacity: 0; }
.fg-up.is-on i { animation: fg-rise 1.1s cubic-bezier(.45, 0, .3, 1) 2 both; }
.fg-up.is-on i:nth-child(2) { animation-delay: .25s; }
.fg-up.is-on i:nth-child(3) { animation-delay: .5s; }
@keyframes fg-rise { 0% { bottom: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }

.fg-apb { position: absolute; left: 50%; top: calc(100% + .6em); transform: translate(-50%, -4px); padding: .3em .7em; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-size: .86em; font-weight: 600; opacity: 0; transition: opacity .35s, transform .35s var(--ease); white-space: nowrap; }
.fg-apb.is-on { opacity: 1; transform: translate(-50%, 0); }

/* zone anti-passback */
.fg-count { position: absolute; transform: translate(-50%, -50%); font-size: clamp(8px, 1.65cqw, 12.5px); color: var(--muted); font-weight: 600; background: #fff; border: 1px solid var(--line); padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.fg-count b { color: var(--ink); margin-left: .3em; }
.fg-rd { position: absolute; transform: translate(-50%, -50%); font-size: clamp(7.5px, 1.5cqw, 11.5px); font-weight: 700; padding: .35em .7em; border-radius: .5em; background: var(--green); color: #fff; z-index: 2; opacity: 0; transition: opacity .25s; letter-spacing: .02em; }
.fg-rd.is-plain { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); opacity: 1; z-index: 1; }
.fg-rd.is-red { background: var(--red); }
.fg-rd.is-on { opacity: 1; }
.fg-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #9aa6ba; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.fg-dot.is-idle { animation: fg-wander 6s ease-in-out infinite; }
.fg-dot.is-b { animation-delay: -2s; animation-duration: 7s; }
.fg-dot.is-c { animation-delay: -4s; animation-duration: 8s; }
@keyframes fg-wander { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -8px); } 66% { transform: translate(-10px, 9px); } }
.fg-person { position: absolute; left: 30%; top: 38%; width: clamp(20px, 4.2cqw, 30px); height: clamp(20px, 4.2cqw, 30px); transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: clamp(9px, 1.7cqw, 13px); font-weight: 700; box-shadow: 0 0 0 4px rgba(11, 95, 217, .16); transition: left 1.1s cubic-bezier(.45, 0, .3, 1), top 1.1s cubic-bezier(.45, 0, .3, 1), opacity .4s; z-index: 4; }
.fg-person i { font-style: normal; }
[data-step="1"] .fg-person.is-a, [data-step="2"] .fg-person.is-a, [data-step="3"] .fg-person.is-a { left: 64%; top: 38%; }
[data-step="4"] .fg-person.is-a { left: 60%; top: 72%; }
[data-step="5"] .fg-person.is-a { left: 30%; top: 72%; }
.fg-person.is-q { background: #f08c00; box-shadow: 0 0 0 4px rgba(240, 140, 0, .18); opacity: 0; }
.fg-person.is-q.is-on { opacity: 1; }
[data-step="3"] .fg-person.is-q { animation: fg-shake .5s .3s 1; }
@keyframes fg-shake { 0%, 100% { margin-left: 0; } 20% { margin-left: -6px; } 40% { margin-left: 6px; } 60% { margin-left: -4px; } 80% { margin-left: 4px; } }
.fg-toast { position: absolute; transform: translate(-50%, 0) scale(.96); display: flex; gap: .7em; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: .9em; padding: .7em 1em .7em .7em; box-shadow: 0 16px 34px -18px rgba(11, 13, 18, .45); font-size: clamp(8px, 1.7cqw, 13px); line-height: 1.25; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .35s var(--ease); z-index: 5; }
.fg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fg-toast > svg { width: 2.2em; height: 2.2em; padding: .5em; border-radius: 50%; flex: none; stroke-width: 2.6; }
.fg-toast.is-red > svg { background: #fdeced; color: var(--red); }
.fg-toast.is-green > svg { background: #e5f6ec; color: var(--green); }
.fg-toast b { display: block; font-weight: 650; }
.fg-toast small { display: block; color: var(--muted); font-size: .88em; }

/* step captions under a figure */
.fg-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 720px) { .fg-steps { grid-template-columns: repeat(4, 1fr); } }
.fg-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0 4px; border-top: 2px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--muted); transition: border-color .35s, color .35s; }
.fg-steps li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 13, 18, .07); color: var(--muted); font-size: 12px; transition: background .35s, color .35s; }
.fg-steps li.is-on { border-top-color: var(--ink); color: var(--ink); }
.fg-steps li.is-on b { background: var(--ink); color: #fff; }

/* dark variant (figure inside a dark section) */
.fg.is-dark .fg-box { background: #0d2250; border-color: var(--dark-line); }
.fg.is-dark .fg-node, .fg.is-dark .fg-count, .fg.is-dark .fg-toast { background: #132c63; border-color: rgba(255, 255, 255, .1); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); }
.fg.is-dark .fg-node b, .fg.is-dark .fg-count b { color: #fff; }
.fg.is-dark .fg-node small, .fg.is-dark .fg-label { color: #8f95a1; }
.fg.is-dark .fg-node-ico, .fg.is-dark .fg-lock { background: rgba(255, 255, 255, .07); color: #e6e8ec; }
.fg.is-dark .fg-dev { background: #1b3a78; border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.fg.is-dark .fg-dev span { background: #3b6fe0; }
.fg.is-dark .fg-lan { stroke: var(--accent-dark); opacity: .45; }
.fg.is-dark .fg-wire { stroke: #3a404c; }
.fg.is-dark .fg-nolink { stroke: #4a505c; }
.fg.is-dark .fg-break.is-grey { background: #132c63; color: #8f95a1; border-color: rgba(255, 255, 255, .14); }
.fg.is-dark .fg-apb { background: rgba(93, 155, 255, .15); color: #9cc2ff; }
.fg.is-dark .fg-door.is-on .fg-lock { background: rgba(23, 160, 93, .18); color: #4cd38a; }
.fg.is-dark .fg-steps li { border-top-color: var(--dark-line); color: #7d838f; }
.fg.is-dark .fg-steps li b { background: rgba(255, 255, 255, .08); color: #a3a8b3; }
.fg.is-dark .fg-steps li.is-on { border-top-color: #fff; color: #fff; }
.fg.is-dark .fg-steps li.is-on b { background: #fff; color: var(--ink); }

/* =========================================================
   Integrations orbit
   ========================================================= */
.orb { --s: min(500px, 86vw); position: relative; width: var(--s); height: var(--s); margin: 0 auto; }
.orb-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line-2); transform: translate(-50%, -50%); }
.orb-ring.is-1 { width: 50%; height: 50%; }
.orb-ring.is-2 { width: 92%; height: 92%; border-style: dashed; }
.orb-hub { position: absolute; left: 50%; top: 50%; width: 21%; height: 21%; transform: translate(-50%, -50%); border-radius: 28%; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11, 13, 18, .35); display: grid; place-items: center; z-index: 2; }
.orb-hub img { width: 64%; height: auto; }
.orb-spin { position: absolute; inset: 0; animation: orb-spin 70s linear infinite; }
.orb-spin.is-2 { animation-duration: 110s; animation-direction: reverse; }
.orb-item { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * .12); height: calc(var(--s) * .12); margin: calc(var(--s) * -.06); transform: rotate(var(--a)) translateY(calc(var(--s) * -.25)) rotate(calc(-1 * var(--a))); }
.orb-spin.is-2 .orb-item { transform: rotate(var(--a)) translateY(calc(var(--s) * -.46)) rotate(calc(-1 * var(--a))); }
.orb-item > span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 30%; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(11, 13, 18, .35); animation: orb-spin 70s linear infinite reverse; }
.orb-spin.is-2 .orb-item > span { animation-duration: 110s; animation-direction: normal; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.is-soft .orb-hub, .is-soft .orb-item > span { background: #fff; }

/* =========================================================
   App mock-ups
   ========================================================= */
.mk { --mk-ink: #0f2757; --mk-muted: #6b7280; --mk-line: #e6e8ee; --mk-blue: #1a5fd0; --mk-soft: #f6f7f9;
    position: relative; background: #fff; border: 1px solid #e2e4ea; border-radius: 18px; overflow: hidden; color: var(--mk-ink);
    font-size: 13px; line-height: 1.4; text-align: left; box-shadow: 0 40px 80px -46px rgba(11, 13, 18, .45), 0 2px 6px -2px rgba(11, 13, 18, .06); }
.mk svg { width: 15px; height: 15px; flex: none; }
.mk b { font-weight: 650; }
.mk small { color: var(--mk-muted); }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--mk-line); }
.mk-head-r { display: flex; gap: 8px; }
.mk-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.mk-pill { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.mk-pill.is-violet { background: #efe9fe; color: #6d4ed8; }
.mk-pill.is-green { background: #e5f6ec; color: #138a50; letter-spacing: 0; font-size: 11px; }
.mk-btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--mk-line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--mk-ink); white-space: nowrap; transition: background .2s, box-shadow .2s, transform .15s; }
.mk-btn-sm svg { width: 14px; height: 14px; }
.mk-btn-sm.is-primary { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; }
.mk-btn-sm.is-on { background: var(--mk-soft); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); transform: scale(.97); }
.mk-btn-sm.is-primary.is-on { background: #154fb0; }
.mk-seg-s { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--mk-soft); gap: 2px; }
.mk-seg-s b { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--mk-muted); white-space: nowrap; }
.mk-seg-s b svg { width: 13px; height: 13px; }
.mk-seg-s b.is-on { background: #fff; color: var(--mk-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.mk-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e0791a; color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.mk-av.is-lg { width: 44px; height: 44px; font-size: 14px; background: #1f2a44; }
.mk-lab { font-size: 11px; font-weight: 700; color: var(--mk-muted); letter-spacing: .05em; text-transform: uppercase; }

/* automation editor */
.mk-auto-body { position: relative; min-height: 410px; }
.mk-ex { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.mk-ex.is-active { opacity: 1; visibility: visible; }
.mk-name { display: grid; gap: 6px; }
.mk-input { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--mk-line); border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; overflow: hidden; white-space: nowrap; }
.mk-caret { width: 1.5px; height: 18px; background: var(--mk-blue); margin-left: 2px; animation: mk-caret 1s steps(1) infinite; }
@keyframes mk-caret { 50% { opacity: 0; } }
.mk-runs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mk-runs small { font-size: 12px; }
.mk-flow { display: grid; gap: 8px; }
.mk-step { display: grid; grid-template-columns: 72px 32px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--mk-line); border-radius: 12px; background: #fff; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mk-ex.is-active .mk-step { opacity: 1; transform: none; }
.mk-ex.is-active .mk-step:nth-child(1) { transition-delay: .5s; }
.mk-ex.is-active .mk-step:nth-child(2) { transition-delay: .9s; }
.mk-ex.is-active .mk-step:nth-child(3) { transition-delay: 1.3s; }
.mk-ex.is-active .mk-step:nth-child(4) { transition-delay: 1.7s; }
.mk-k { font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.mk-step.is-when .mk-k { color: var(--mk-blue); }
.mk-step.is-if .mk-k { color: #b7770a; }
.mk-step.is-then .mk-k { color: #138a50; }
.mk-sico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mk-soft); color: var(--mk-ink); }
.mk-sico.is-logo { background: #fff; border: 1px solid var(--mk-line); }
.mk-step b { display: block; font-size: 13.5px; }
.mk-step small { display: block; font-size: 12px; }
.mk-auto-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--mk-line); font-size: 12.5px; }
.mk-switch { width: 34px; height: 20px; border-radius: 999px; background: #d4d7de; position: relative; flex: none; transition: background .3s; }
.mk-switch i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.mk-ex.is-active .mk-switch { background: #17a05d; transition-delay: 2.3s; }
.mk-ex.is-active .mk-switch i { transform: translateX(14px); transition-delay: 2.3s; }
.mk-on-label { font-weight: 600; }
.mk-ran { display: inline-flex; align-items: center; gap: 5px; color: #138a50; font-weight: 600; opacity: 0; transition: opacity .4s; }
.mk-ex.is-active .mk-ran { opacity: 1; transition-delay: 2.8s; }
.mk-yaml { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--mk-muted); font-weight: 600; }
@media (max-width: 480px) { .mk-yaml { display: none; } .mk-step { grid-template-columns: 50px 30px 1fr; gap: 8px; padding: 9px 10px; } .mk-auto-body { min-height: 440px; } }

/* example picker next to the automation mock */
.ex-list { display: grid; gap: 8px; margin-top: 28px; }
.ex-btn { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: var(--ink); transition: background .2s, border-color .2s; position: relative; overflow: hidden; }
.ex-btn:hover { background: rgba(11, 13, 18, .03); }
.ex-btn.is-on { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.is-soft .ex-btn.is-on { background: #fff; }
.ex-btn .ws-ico { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
.ex-btn b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ex-btn small { display: block; font-size: 13px; color: var(--muted); }
.ex-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); }
.ex-btn.is-on.is-timed::after { animation: ex-bar var(--t, 6.5s) linear forwards; }
@keyframes ex-bar { to { width: 100%; } }

/* calendar */
.mk-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.mk-cal-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mk-muted); font-weight: 600; }
.mk-cal-legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 8px; }
.mk-cal-legend i:first-child { margin-left: 0; }
.mk-week { position: relative; display: grid; grid-template-columns: 42px repeat(7, minmax(0, 1fr)); height: 320px; padding: 0 12px 14px 0; }
.mk-hours { position: relative; margin-top: 30px; }
.mk-hours span { position: absolute; right: 7px; transform: translateY(-50%); font-size: 10px; color: #9aa0ab; font-variant-numeric: tabular-nums; }
.mk-day { display: flex; flex-direction: column; min-width: 0; }
.mk-dname { height: 30px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; color: var(--mk-muted); white-space: nowrap; }
.mk-dname b { font-size: 13px; color: var(--mk-ink); width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; }
.mk-day.is-today .mk-dname b { background: var(--mk-blue); color: #fff; }
.mk-dcol { position: relative; flex: 1; border-left: 1px solid #eef0f3; border-top: 1px solid #eef0f3; background: repeating-linear-gradient(180deg, transparent 0, transparent calc(100% / 7.5 - 1px), #f1f2f5 calc(100% / 7.5 - 1px), #f1f2f5 calc(100% / 7.5)); }
.mk-ev { position: absolute; left: 4%; right: 52%; border-radius: 5px; border-left: 3px solid; padding: 3px 4px; overflow: hidden; opacity: 0; transform: scaleY(.7); transform-origin: top; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.mk-ev.l1, .mk-ev.l2 { left: 50%; right: 4%; }
.mk-ev em { font-style: normal; font-size: 9.5px; font-weight: 650; line-height: 1.15; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ev small { display: block; font-size: 9px; line-height: 1.15; color: inherit; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cal.is-run .mk-ev, .mk-cal:not([data-seq]) .mk-ev, .no-js .mk-ev { opacity: 1; transform: none; }
.c-blue { background: #e8f0fd; border-color: #1a5fd0 !important; color: #1a4fae; }
.c-amber { background: #fdf3df; border-color: #d19210 !important; color: #8a5d04; }
.c-green { background: #e6f6ee; border-color: #17a05d !important; color: #0f6e40; }
.c-violet { background: #f0ebfd; border-color: #6d4ed8 !important; color: #5134b8; }
.mk-cal-legend i.c-blue { background: #1a5fd0; }
.mk-cal-legend i.c-amber { background: #d19210; }
.mk-pop { position: absolute; right: 14px; top: 52px; width: 280px; max-width: calc(100% - 28px); background: #fff; border: 1px solid var(--mk-line); border-radius: 14px; padding: 14px; box-shadow: 0 24px 48px -20px rgba(11, 13, 18, .4); z-index: 5; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.mk-pop.is-on { opacity: 1; transform: none; }
.mk-pop > b { display: block; font-size: 13px; margin-bottom: 10px; }
.mk-pop-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.mk-pop-apps span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; border: 1px solid var(--mk-line); border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.mk-pop-apps svg { width: 18px; height: 18px; }
.mk-pop-url { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 9px; background: var(--mk-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--mk-muted); }
.mk-pop-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-copy { font-family: var(--font); font-style: normal; font-weight: 650; font-size: 11.5px; color: var(--mk-blue); flex: none; }
.mk-copy i { font-style: normal; display: none; align-items: center; gap: 4px; }
.mk-copy i.is-on { display: inline-flex; }
.mk-copy svg { width: 12px; height: 12px; }
@media (max-width: 560px) { .mk-week { height: 260px; grid-template-columns: 30px repeat(7, minmax(0, 1fr)); padding-right: 6px; } .mk-dname { flex-direction: column; gap: 0; height: 40px; font-size: 10px; } .mk-hours { margin-top: 40px; } .mk-hours span { font-size: 8.5px; right: 3px; } .mk-ev em { display: none; } .mk-cal-legend { display: none; } }

@keyframes mk-in { from { opacity: 0; transform: translateY(-10px); background: #eef4fe; } to { opacity: 1; transform: none; background: transparent; } }

/* person + credentials */
.mk-person { padding: 16px; max-width: 420px; margin: 0 auto; }
.mk-person-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--mk-line); margin-bottom: 12px; }
.mk-person-h b { display: block; font-size: 15px; }
.mk-person-h small { display: block; font-size: 12px; }
.mk-creds { display: grid; gap: 6px; margin-top: 8px; }
.mk-cred { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--mk-line); border-radius: 11px; background: #fff; }
.mk-cred b { display: block; font-size: 13px; }
.mk-cred small { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mk-soft); }
.mk-main-tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e8f0fd; color: var(--mk-blue); display: none; }
.mk-main-tag.is-on, .mk-person:not(.is-run) .mk-cred.is-card .mk-main-tag { display: inline-block; animation: ws-sheet .35s var(--ease); }
.mk-make { font-size: 11px; font-weight: 650; padding: 5px 9px; border-radius: 8px; background: var(--mk-blue); color: #fff; display: none; }
.mk-make.is-on { display: inline-block; animation: mk-press 1.6s ease-in-out; }
@keyframes mk-press { 0%, 60% { transform: none; } 70% { transform: scale(.92); } 80%, 100% { transform: none; } }
.mk-cred.is-new { display: none; }
.mk-cred.is-new.is-on { display: grid; animation: mk-in .6s var(--ease); border-color: #b9d0f6; }
.mk-person:not(.is-run) .mk-cred.is-new { display: grid; }
.mk-person-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Android phone */
.mk-phone { width: 270px; max-width: 100%; margin: 0 auto; border-radius: 42px; padding: 10px; background: #111318; box-shadow: 0 40px 80px -40px rgba(11, 13, 18, .6), inset 0 0 0 2px #2a2e37; }
.mk-phone-screen { border-radius: 33px; background: #fff; overflow: hidden; padding: 0 14px 16px; min-height: 500px; display: flex; flex-direction: column; color: #0f2757; font-size: 13px; }
.mk-phone-status { display: flex; justify-content: space-between; align-items: center; height: 34px; font-size: 11.5px; font-weight: 650; padding: 0 6px; }
.mk-phone-notch { width: 12px; height: 12px; border-radius: 50%; background: #111318; }
.mk-phone-h { margin: 6px 0 12px; }
.mk-phone-h small { display: block; font-size: 11.5px; color: #c4262b; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mk-phone-h b { font-size: 22px; letter-spacing: -.03em; font-weight: 700; }
.mk-phone-count { display: flex; align-items: baseline; gap: 6px; }
.mk-phone-count b { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-phone-count span { color: #6b7280; font-size: 13px; }
.mk-phone-count .fg-swap > i { display: none; font-style: normal; }
.mk-phone-count .fg-swap > i.is-on { display: inline; }
.mk-phone:not(.is-run) .mk-phone-count .fg-swap > i:nth-child(4) { display: inline; }
.mk-phone-bar { display: block; height: 6px; border-radius: 6px; background: #eef0f3; margin: 10px 0 14px; overflow: hidden; }
.mk-phone-bar b { display: block; height: 100%; width: 91%; background: #17a05d; border-radius: 6px; transition: width .5s var(--ease); }
[data-step="0"] .mk-phone-bar b { width: 78%; } [data-step="1"] .mk-phone-bar b { width: 83%; } [data-step="2"] .mk-phone-bar b { width: 87%; }
[data-step="3"] .mk-phone-bar b { width: 91%; } [data-step="4"] .mk-phone-bar b { width: 96%; } [data-step="5"] .mk-phone-bar b { width: 100%; }
.mk-phone-list { display: grid; gap: 4px; }
.mk-phone-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f1f2f5; }
.mk-phone-list li .mk-av { background: #1f2a44; width: 30px; height: 30px; font-size: 10.5px; }
.mk-phone-list b { display: block; font-size: 13px; font-weight: 650; }
.mk-phone-list small { display: block; font-size: 11px; color: #6b7280; }
.mk-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d4d7de; display: grid; place-items: center; color: transparent; transition: background .3s, border-color .3s, color .3s; }
.mk-tick svg { width: 12px; height: 12px; stroke-width: 3; }
.mk-phone-list li.is-on .mk-tick, .mk-phone:not(.is-run) .mk-phone-list li:nth-child(-n+3) .mk-tick { background: #17a05d; border-color: #17a05d; color: #fff; }
.mk-phone-nfc { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px; background: #111318; color: #fff; font-size: 12.5px; font-weight: 600; }
.mk-phone-nfc svg { width: 16px; height: 16px; }

/* window chrome around a mock on a stage */
.mk-stage { position: relative; padding: clamp(16px, 4vw, 48px); border-radius: var(--r-xl); background: var(--soft); }
.is-soft .mk-stage { background: #fff; border: 1px solid var(--line); }
.is-dark .mk-stage { background: #0d2250; border: 1px solid var(--dark-line); }

@media (prefers-reduced-motion: reduce) {
    .orb-spin, .orb-item > span { animation: none !important; }
    .mk-ev { opacity: 1; transform: none; }
}

/* unlock schedule day */
.ul { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.ul-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.ul-door { display: flex; align-items: center; gap: 12px; }
.ul-door b { display: block; color: var(--ink); font-size: 15px; }
.ul-door small { display: block; color: var(--muted); font-size: 13px; }
.ul .fg-swap > i { display: none; font-style: normal; }
.ul .fg-swap > i.is-on { display: inline; }
.ul:not(.is-run) .fg-swap > i:nth-child(3) { display: inline; }
.ul-lock { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.ul-lock svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity .3s; }
.ul-lock .is-u { opacity: 0; }
[data-step="2"] .ul-lock { background: #e5f6ec; color: var(--green); }
[data-step="2"] .ul-lock .is-u { opacity: 1; } [data-step="2"] .ul-lock .is-l { opacity: 0; }
.ul-tag { font-size: 12.5px; font-weight: 600; color: #8a5d04; background: #fdf3df; padding: 5px 10px; border-radius: 999px; }
.ul-track { position: relative; height: 44px; border-radius: 12px; background: repeating-linear-gradient(135deg, #f3f4f6 0 8px, #eceef1 8px 16px); }
.ul-seg { position: absolute; top: 0; bottom: 0; }
.ul-seg.is-wait { background: #fdf3df; border-left: 2px solid #d19210; }
.ul-seg.is-open { background: #dff3e8; border-radius: 0 12px 12px 0; display: grid; place-items: center; }
.ul-seg em { font-style: normal; font-size: 12.5px; font-weight: 650; color: #0f6e40; }
.ul-badge { position: absolute; top: -14px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s var(--ease); }
.ul-badge svg { width: 15px; height: 15px; }
.ul-badge.is-on, .ul:not(.is-run) .ul-badge { opacity: 1; transform: none; }
.ul-cursor { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); left: 0; border-radius: 2px; transition: left 1.2s cubic-bezier(.45, 0, .3, 1); }
[data-step="0"] .ul-cursor { left: 6%; } [data-step="1"] .ul-cursor { left: 13.2%; } [data-step="2"] .ul-cursor { left: 52%; } [data-step="3"] .ul-cursor { left: 85%; }
.ul:not(.is-run) .ul-cursor { left: 52%; }
.ul-scale { position: relative; height: 22px; margin-top: 8px; }
.ul-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ul-scale span:first-child { transform: none; } .ul-scale span:last-child { transform: translateX(-100%); }
@media (max-width: 560px) { .ul-scale span:nth-child(even) { display: none; } }

/* presence report */
.mk-report-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding: 18px 18px 8px; border-bottom: 1px solid var(--mk-line); }
.mk-report-chart span { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mk-report-chart i { display: block; width: 100%; max-width: 34px; height: var(--h); border-radius: 6px 6px 2px 2px; background: #1a5fd0; transform-origin: bottom; transform: scaleY(.15); opacity: .4; transition: transform .8s var(--ease), opacity .8s; transition-delay: var(--d); }
.is-visible .mk-report-chart i, .no-js .mk-report-chart i { transform: none; opacity: 1; }
.mk-report-chart small { font-size: 10.5px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-table th { text-align: left; font-size: 11px; color: var(--mk-muted); font-weight: 650; padding: 10px 16px; text-transform: uppercase; letter-spacing: .04em; }
.mk-table td { padding: 10px 16px; border-top: 1px solid #f1f2f5; font-variant-numeric: tabular-nums; }

/* API figure */
.api-fig { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .api-fig { grid-template-columns: 1.1fr 60px .9fr 60px 1fr; } }
.api-col { display: grid; gap: 12px; }
.api-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--ink); }
.api-box b { display: block; font-size: 16px; letter-spacing: -.01em; }
.api-box small { display: block; color: var(--muted); font-size: 13px; }
.api-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.api-box li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.api-box li svg, .api-box.is-small svg { width: 16px; height: 16px; flex: none; }
.api-box.is-small { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.api-hub { background: var(--ink); color: #fff; border-radius: 22px; padding: 22px; text-align: center; box-shadow: 0 24px 48px -24px rgba(11, 13, 18, .6); }
.api-hub span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 10px; background: rgba(255, 255, 255, .1); }
.api-hub span svg { width: 22px; height: 22px; }
.api-hub b { display: block; font-size: 17px; }
.api-hub small { display: block; color: #a3a8b3; font-size: 12.5px; margin-top: 2px; }
.api-wire { position: relative; height: 40px; }
.api-wire::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--line-2); }
@media (min-width: 900px) { .api-wire { height: 2px; } .api-wire::before { left: 0; right: 0; top: 0; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--line-2); } }
.api-wire i { position: absolute; left: calc(50% - 4px); top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: api-v 2.4s linear infinite; }
.api-wire i:nth-child(2) { animation-delay: .8s; } .api-wire i:nth-child(3) { animation-delay: 1.6s; }
@keyframes api-v { from { top: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }
@media (min-width: 900px) { .api-wire i { top: -3px; animation-name: api-h; } @keyframes api-h { from { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } } }
.is-soft .api-box { border-color: transparent; }

/* ---- Itinerary (mock/itinerary): a person's day like a map timeline ---- */
.mk-itin { max-width: 520px; margin: 0 auto; }
.mk-itin-who { display: flex; align-items: center; gap: 10px; }
.mk-itin-who .ws-face, .mk-itin-who .ws-face img { width: 38px !important; height: 38px !important; border-radius: 50%; display: block; object-fit: cover; flex: 0 0 38px; }
.mk-itin-who b { display: block; font-size: 14px; }
.mk-itin-who small { display: block; font-size: 11.5px; color: var(--mk-muted, #64748b); }
.mk-itin-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--mk-line); background: #f8fafc; }
.mk-itin-route > span:not(.mk-itin-arrow) { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--mk-line); font-size: 11.5px; font-weight: 600; }
.mk-itin-route i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mk-itin-arrow { color: #94a3b8; font-size: 12px; }
.mk-itin-list { position: relative; list-style: none; margin: 0; padding: 12px 16px 16px; }
.mk-itin-list > li { display: grid; grid-template-columns: 46px 30px 1fr; }
.mk-itin-time { text-align: right; padding-right: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-itin-time b { display: block; font-size: 12.5px; }
.mk-itin-time small { display: block; font-size: 11px; color: #94a3b8; }
.mk-itin-rail { position: relative; display: flex; justify-content: center; }
.mk-itin-rail svg { width: 14px; height: 14px; position: relative; z-index: 1; }
.is-stop .mk-itin-rail::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--c); }
.mk-itin-pin { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(15,27,45,.25); }
.mk-itin-pin svg { width: 13px; height: 13px; }
.is-live .mk-itin-pin { animation: mk-itin-live 2s ease-out infinite; }
@keyframes mk-itin-live { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(124,58,237,.45); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(124,58,237,0); } }
.mk-itin-place { padding: 3px 0 14px 8px; }
.mk-itin-place b { display: block; font-size: 13.5px; }
.mk-itin-place small { display: block; font-size: 11.5px; color: #64748b; }
.is-move .mk-itin-rail::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px dotted #9aa8bb; margin-left: -1px; }
.is-move .mk-itin-rail svg { margin: 5px 0; padding: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #64748b; }
.mk-itin-move { align-self: center; padding: 6px 0 6px 8px; font-size: 11.5px; color: #64748b; }
.is-lost .mk-itin-move { color: #b45309; }
.is-area .mk-itin-rail svg { width: 16px; height: 16px; margin-top: 2px; color: #334155; }
.mk-itin-area { padding: 2px 0 8px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #334155; }
.mk-itin-area em { margin-left: 8px; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: #94a3b8; }
/* The day appears stop by stop when the figure comes into view. */
[data-reveal] .mk-itin .is-stop { opacity: 0; transform: translateY(6px); transition: opacity .4s ease var(--d), transform .4s ease var(--d); }
[data-reveal].is-visible .mk-itin .is-stop { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] .mk-itin .is-stop { opacity: 1; transform: none; } .is-live .mk-itin-pin { animation: none; } }
/* The person walks down the day: their photo travels along the rail, stop after stop. */
.mk-itin-list > li.mk-itin-walker { display: block; position: absolute; z-index: 2; left: 69px; top: 40px; width: 22px; height: 22px; opacity: 0; pointer-events: none; }
.mk-itin-walker .ws-face, .mk-itin-walker img { width: 22px !important; height: 22px !important; border-radius: 50%; display: block; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(15,27,45,.35); }


/* Asset card (mock/asset.php): warehouse photo, the asset's card, live place and an alert */
.mk-asset { max-width: 500px; margin: 0 auto; }
.mk-asset-stage { position: relative; height: 200px; background: #e9edf3; border-bottom: 1px solid var(--mk-line); overflow: hidden; }
.mk-asset-stage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mk-asset-wave { position: absolute; left: 46%; top: 58%; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(26, 95, 208, .6); opacity: 0; animation: mk-asset-ping 2.4s ease-out infinite; }
@keyframes mk-asset-ping { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) { .mk-asset-wave { animation: none; } }
.mk-asset-name b { display: block; font-size: 14px; }
.mk-asset-name small { display: block; font-size: 11.5px; color: var(--mk-muted); }
.mk-asset-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e8f6ef; color: #0f7a46; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.mk-asset-live i { width: 7px; height: 7px; border-radius: 50%; background: #17a05d; }
.mk-asset-dl { margin: 0; padding: 6px 16px; }
.mk-asset-dl > div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--mk-line); font-size: 12.5px; }
.mk-asset-dl > div:last-child { border-bottom: 0; }
.mk-asset-dl dt { color: var(--mk-muted); }
.mk-asset-dl dd { margin: 0; font-weight: 600; min-width: 0; }
.mk-asset-who { display: flex; align-items: center; gap: 7px; }
.mk-asset-who .ws-face, .mk-asset-who .ws-face img { width: 22px !important; height: 22px !important; border-radius: 50%; display: block; object-fit: cover; flex: 0 0 22px; }
.mk-asset-zones { display: flex; flex-wrap: wrap; gap: 5px; }
.mk-asset-zones span { padding: 2px 8px; border-radius: 999px; background: #ecf2fc; color: #1554b5; font-size: 11.5px; font-weight: 600; }
.mk-asset-foot { display: flex; align-items: center; gap: 7px; padding: 10px 16px; background: var(--mk-soft); border-top: 1px solid var(--mk-line); font-size: 12px; color: var(--mk-muted); }
.mk-asset-foot svg { color: var(--mk-blue); }
.mk-asset-alert { display: flex; align-items: center; gap: 10px; margin: 12px 16px 16px; padding: 10px 12px; border-radius: 12px; background: #fff4e6; border: 1px solid #fcd9ab; }
.mk-asset-alert-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #ffe6c7; color: #e07f0b; display: grid; place-items: center; }
.mk-asset-alert b { display: block; font-size: 12.5px; }
.mk-asset-alert small { display: block; font-size: 11.5px; color: var(--mk-muted); }
@media (max-width: 420px) { .mk-asset-dl > div { grid-template-columns: 104px 1fr; } .mk-asset-stage { height: 150px; } }
