/* AGENT FX — the crew around the device, the wires into its back, the design canvas, the QR wire and
   the quiet code strip in the chat. One easing,
   three durations, transform/opacity/dash-offset only; reduced-motion keeps the states, drops motion. */
:root { --fx-ease: cubic-bezier(.2,.8,.2,1); --fx-fast: .18s; --fx-mid: .32s; --fx-slow: .6s; }

/* the device sits above the wires, and glides aside while the crew works */
.stage { --fx: #FFD731; }
.stage .frame { z-index: 2; transition: transform var(--fx-slow) var(--fx-ease), box-shadow var(--fx-slow) var(--fx-ease); }
.stage .frame.full { transition: left var(--fx-slow) var(--fx-ease), top var(--fx-slow) var(--fx-ease), right var(--fx-slow) var(--fx-ease), bottom var(--fx-slow) var(--fx-ease), border-radius var(--fx-slow); }
/* a web page keeps the whole stage while the crew works; the aura inside its edge carries the colour */
.stage.fx-run .frame.full { left: 0; top: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: none; }
/* on a web page the wires run over the page, into the box being built (on a phone they go into its back) */
.stage.fx-web .fx-back { z-index: 5; }
/* the crew's row, centred over the page: a dark pill keeps it legible on a white page */
.stage.fx-web .fx-layer::before { content: ""; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: var(--fx-roww, 500px); height: 84px; border-radius: 999px;
  background: rgba(10,10,13,.78); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,.35); opacity: 0; transition: opacity var(--fx-mid) var(--fx-ease); }
.stage.fx-web.fx-run .fx-layer::before { opacity: 1; }
.stage.fx-web .fx-name { top: 30px; color: #c9c5bb; }
.stage.fx-web .fx-say { top: 104px; padding: 4px 10px; border-radius: 999px; background: rgba(10,10,13,.85); color: #f3efe6; width: auto; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
/* the box the crew is working in, outlined in the working agent's colour */
.dz.web .dz-b { transition: box-shadow .35s var(--fx-ease); }
.dz.web .dz-b.hot { box-shadow: 0 0 0 2px var(--c, #FF7AC6), 0 0 28px -2px color-mix(in srgb, var(--c, #FF7AC6) 60%, transparent); }
.stage .qrside { transition: opacity var(--fx-mid) var(--fx-ease), transform var(--fx-mid) var(--fx-ease); }
.stage.fx-run .qrside { opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(12px); }

/* ── behind the device: wires and sparks ── */
.fx-back { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fx-mesh, .fx-wire, .fx-sparks { opacity: 0; transition: opacity var(--fx-slow) var(--fx-ease); }
.stage.fx-run .fx-mesh, .stage.fx-run .fx-wire, .stage.fx-run .fx-sparks { opacity: 1; }
/* the wire into the QR card once the crew has stepped back */
.fx-qrwire { --c: var(--qa, #FFD731); opacity: 0; transition: opacity .8s var(--fx-ease) .35s; }
.fx-qrwire.on { opacity: 1; }
.fx-qrwire .glow { stroke: var(--c); stroke-width: 8; opacity: .07; }
.fx-qrwire .base { stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1.4; }
.fx-qrwire .flow { stroke: var(--c); stroke-width: 1.6; stroke-dasharray: 2 16; opacity: .8; animation: fx-flow 2.4s linear infinite; }
.fx-qrspark { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; offset-rotate: 0deg; offset-anchor: center; opacity: 0;
  box-shadow: 0 0 5px 1px var(--qa, #FFD731); width: 5px; height: 5px; }
.fx-qrspark.on { animation: fx-travel 3.2s cubic-bezier(.5,0,.5,1) 1s infinite; }
.fx-wires { position: absolute; left: 0; top: 0; overflow: visible; }
.fx-wires path { fill: none; stroke-linecap: round; }
.fx-link { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 2 5; }
.fx-wire .glow { stroke: var(--c); stroke-width: 10; opacity: 0; transition: opacity var(--fx-slow); }
.fx-wire .base { stroke: color-mix(in srgb, var(--c) 22%, transparent); stroke-width: 1.25; transition: stroke var(--fx-slow), stroke-width var(--fx-slow); }
.fx-wire .flow { stroke: var(--c); stroke-width: 2; stroke-dasharray: 4 8; opacity: 0; transition: opacity var(--fx-mid); }
.fx-wire.on .glow { opacity: .13; }
.fx-wire.on .base { stroke: color-mix(in srgb, var(--c) 70%, transparent); stroke-width: 1.6; }
.fx-wire.on .flow { opacity: 1; animation: fx-flow 1.1s linear infinite; }
.fx-wire.done .base { stroke: color-mix(in srgb, var(--c) 42%, transparent); }
@keyframes fx-flow { to { stroke-dashoffset: -24; } }
.fx-hand { stroke: var(--c); stroke-width: 2.4; stroke-dasharray: .22 1; stroke-dashoffset: .22; animation: fx-hand 1.1s var(--fx-ease) forwards; filter: drop-shadow(0 0 4px var(--c)); }
.fx-hand.rev { animation-name: fx-hand-rev; stroke-dashoffset: -1; }
@keyframes fx-hand { from { stroke-dashoffset: .22; opacity: 1; } 85% { opacity: 1; } to { stroke-dashoffset: -1; opacity: 0; } }
@keyframes fx-hand-rev { from { stroke-dashoffset: -1; opacity: 1; } 85% { opacity: 1; } to { stroke-dashoffset: .22; opacity: 0; } }
.fx-sparks { position: absolute; inset: 0; }
.fx-spark { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: 0; border-radius: 50%; background: #fff; offset-rotate: 0deg; offset-anchor: center;
  box-shadow: 0 0 6px 2px var(--c), 0 0 14px 4px color-mix(in srgb, var(--c) 50%, transparent); animation: fx-travel 1.5s cubic-bezier(.5,0,.6,1) infinite; opacity: 0; }
@keyframes fx-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ── in front: the crew ── */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.fx-agent { --c: #FFD731; position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity var(--fx-mid) var(--fx-ease); }
.stage.fx-run .fx-agent { opacity: .55; }
.stage.fx-run .fx-agent.skip { opacity: .18; }
.stage.fx-run .fx-agent.on, .stage.fx-run .fx-agent.done { opacity: 1; }
.fx-agent > * { position: absolute; left: 0; transform: translateX(-50%); }
.fx-orb { top: -21px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: color-mix(in srgb, var(--c) 70%, #8d8a82); background: #141418;
  border: 1px solid color-mix(in srgb, var(--c) 30%, #2a2a31); transform: translateX(-50%) scale(.7);
  transition: transform var(--fx-slow) cubic-bezier(.3,1.5,.5,1), color var(--fx-mid), background var(--fx-mid), border-color var(--fx-mid), box-shadow var(--fx-mid); }
.stage.fx-run .fx-orb { transform: translateX(-50%) scale(1); }
.fx-orb svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.fx-agent.on .fx-orb { color: #111; background: var(--c); border-color: transparent; transform: translateX(-50%) scale(1.16);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent), 0 0 34px 6px color-mix(in srgb, var(--c) 55%, transparent); }
.fx-agent.done .fx-orb { color: var(--c); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.fx-halo { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); opacity: 0; }
.fx-agent.on .fx-halo { opacity: 1; animation: fx-pulse 1.8s ease-in-out infinite; }
@keyframes fx-pulse { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
.fx-ring { position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--c); border-right-color: color-mix(in srgb, var(--c) 40%, transparent); opacity: 0; }
.fx-agent.on .fx-ring { opacity: 1; animation: fx-spin 1.1s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-tick { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--c); color: #111; font: 700 9px/15px var(--sans, system-ui); text-align: center; transform: scale(0); transition: transform var(--fx-mid) var(--fx-ease); z-index: 2; }
.fx-agent.done .fx-tick { transform: scale(1); }
.fx-name { top: 28px; font-size: 11px; letter-spacing: .02em; color: #a8a49b; white-space: nowrap; }
.fx-agent.on .fx-name { color: var(--c); font-weight: 600; }
.fx-say { top: 44px; width: 104px; text-align: center; font-size: 10.5px; line-height: 1.3; color: #d8d4ca; opacity: 0; transition: opacity var(--fx-mid); }
.fx-agent.on .fx-say { opacity: .8; }

/* the device takes the working agent's colour */
.fx-aura { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; z-index: 7;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fx) 70%, transparent), inset 0 0 40px color-mix(in srgb, var(--fx) 22%, transparent); transition: opacity var(--fx-slow) var(--fx-ease); }
.stage.fx-on .fx-aura { opacity: 1; animation: fx-breathe 2.4s ease-in-out infinite; }
.stage.fx-on .frame:not(.full) { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px #2a2a30, 0 0 0 8px #141418, 0 0 70px -4px color-mix(in srgb, var(--fx) 60%, transparent); }
.stage.fx-fail { --fx: #FF8A4C; }
.stage.fx-done .fx-aura { opacity: 1; --fx: #3FD68A; animation: fx-flash 1.6s var(--fx-ease) 1 forwards; }
@keyframes fx-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fx-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.fx-scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; z-index: 8; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #B18CFF 16%, transparent) 70%, color-mix(in srgb, #B18CFF 70%, transparent) 99%, transparent); transform: translateY(-110%); }
.fx-scan.on { opacity: 1; animation: fx-scan 1.8s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes fx-scan { 0% { transform: translateY(-110%); } 100% { transform: translateY(480%); } }

/* the design score */
.fx-score { position: absolute; right: 18px; top: 58px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(18,18,22,.9); border: 1px solid #2a2a31;
  color: #f3efe6; transform: translateY(-8px) scale(.9); opacity: 0; transition: transform var(--fx-slow) cubic-bezier(.3,1.6,.5,1), opacity var(--fx-mid) var(--fx-ease); }
.fx-score.in { transform: none; opacity: 1; }
.fx-score svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.fx-score circle { fill: none; stroke-width: 4; } .fx-score .bg { stroke: #2a2a31; }
.fx-score .fg { stroke: #B18CFF; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset 1.1s var(--fx-ease) .15s; }
.fx-score.in .fg { stroke-dashoffset: calc(119.4 - 119.4 * var(--p) / 100); }
.fx-score b { font: 600 20px/1 var(--sans, system-ui); margin-left: -38px; width: 34px; text-align: center; }
.fx-score span { font-size: 11.5px; color: #a8a49b; margin-left: 4px; }

/* ── the code strip in the chat: small, quiet, fast ── */
.codestrip { flex: none; padding: 0 14px; }
.fx-strip { --c: #FFD731; max-height: 0; opacity: 0; overflow: hidden; margin: 0; border-radius: 12px; background: #0c0c0f; border: 1px solid transparent;
  transition: max-height var(--fx-mid) var(--fx-ease), opacity var(--fx-mid) var(--fx-ease), margin var(--fx-mid) var(--fx-ease), border-color var(--fx-mid); }
.fx-strip.in { max-height: 140px; opacity: 1; margin: 2px 0 10px; border-color: #202026; }
.fx-strip.fade { opacity: 0; transition-duration: .8s; }
.fx-strip-top { display: flex; align-items: center; gap: 8px; padding: 7px 11px 3px; font: 10.5px/1.3 var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); color: #6f6c66; }
.fx-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); animation: fx-breathe 1.2s ease-in-out infinite; }
.fx-code-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-code-stat { flex: none; }
.fx-code-body { position: relative; height: 64px; overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 45%); mask: linear-gradient(180deg, transparent, #000 45%); }
.fx-strip.term .fx-code-body { display: none; }
.fx-lines { position: absolute; left: 0; right: 0; bottom: 4px; font: 10.5px/15px var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); color: #bdb9b0; opacity: .72; }
.fx-lines .l { display: flex; white-space: pre; }
.fx-lines .l i { flex: none; width: 30px; padding-right: 9px; text-align: right; font-style: normal; color: #3a3942; }
.fx-lines .l span { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.fx-lines em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; margin: 0; }
.fx-lines .k { color: #C792EA; } .fx-lines .s { color: #A5E09A; } .fx-lines .j { color: #7FB4FF; } .fx-lines .n { color: #FFB86B; }
.fx-lines .t { color: #FFD76A; } .fx-lines .f { color: #82E0D6; } .fx-lines .c { color: #5d5a55; font-style: italic; }
.fx-caret { display: inline-block; width: 6px; height: 11px; margin-left: 1px; vertical-align: -1px; background: var(--c); box-shadow: 0 0 6px var(--c); animation: fx-blink 1s steps(1) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }
.fx-term { display: none; padding: 2px 11px 8px; font: 10.5px/1.7 var(--mono, ui-monospace, monospace); color: #bdb9b0; }
.fx-strip.term .fx-term { display: block; }
.fx-tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tl .pr { color: var(--c); } .fx-tl .st { display: inline-block; min-width: 12px; }
.fx-tl.ok .st { color: #3FD68A; } .fx-tl.bad .st { color: #FF8A4C; } .fx-tl .nt { color: #6f6c66; }
.fx-tl .sp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #4FD1C5; border-top-color: transparent; vertical-align: -1px; animation: fx-spin .8s linear infinite; }

/* ── the design canvas: the device before the first build lands ── */
.dz { --bg: #0e0e11; --sf: #17171c; --sf2: #24242b; --ln: #2a2a31; --ink: #f3efe6; --mu: #8d8a82; --ac: #FFD731; --onac: #111; --rl: 16px; --pink: #FF7AC6;
  position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; gap: 12px; padding: 62px 18px 96px;
  font-family: -apple-system, system-ui, sans-serif; clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.7,0,.2,1); }
.dz.reveal { clip-path: inset(0 0 100% 0); }
.dz-b { position: relative; flex: none; opacity: 0; border-radius: var(--rl); outline: 1.5px dashed transparent; outline-offset: 0; transition: opacity .35s var(--fx-ease), background .45s var(--fx-ease), outline-color .35s; }
.dz-b > * { opacity: 0; transition: opacity .45s var(--fx-ease); }
.dz.idle .dz-b { opacity: .22; outline-color: var(--ln); }
.dz.idle .dz-b > * { opacity: .5; }
.dz-b.wire { opacity: 1; outline-color: color-mix(in srgb, var(--pink) 70%, transparent); }
.dz-b.fill { outline-color: transparent; }
.dz-b.fill > * { opacity: 1; }
.dz-b.fill > *:nth-child(2) { transition-delay: .08s; } .dz-b.fill > *:nth-child(3) { transition-delay: .16s; }
.dz-b.fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-100%); animation: dz-shine 1.1s var(--fx-ease) .2s 1 forwards; }
@keyframes dz-shine { to { transform: translateX(100%); } }
.dz-b.touch { animation: dz-touch .9s var(--fx-ease); }
@keyframes dz-touch { 0% { outline-color: var(--pink); } 100% { outline-color: transparent; } }
.dz-ln { display: block; height: 8px; border-radius: 4px; background: var(--sf2); }
.dz-ln.ac { background: var(--ac); }
.w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.dz-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dz-head { padding: 4px 2px; }
.dz-kick { width: 90px; height: 8px; border-radius: 4px; background: var(--sf2); margin-bottom: 10px; }
.dz-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-b.fill.dz-hero, .dz-b.fill.dz-list, .dz-b.fill.dz-seg { background: var(--sf); }
.dz-hero { display: flex; gap: 14px; align-items: center; padding: 16px; }
.dz-ring { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 6px solid var(--ac); border-right-color: var(--sf2); }
.dz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dz-card { background: var(--sf); border-radius: calc(var(--rl) - 4px); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dz-card b { display: block; height: 16px; width: 45%; border-radius: 5px; background: var(--ink); opacity: .85; }
.dz-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; }
.dz-seg span { flex: 1; height: 26px; border-radius: 9px; }
.dz-seg span.on { background: var(--sf2); }
.dz-list { overflow: hidden; }
.dz-row { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--ln); }
.dz-row:last-child { border-bottom: 0; }
.dz-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sf2); }
.dz-btn { height: 50px; border-radius: 999px; display: grid; place-items: center; }
.dz-b.fill.dz-btn { background: var(--ac); }
.dz-btn .dz-ln { width: 30%; background: color-mix(in srgb, var(--onac) 55%, transparent); }
.dz-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 82px; border-radius: 0; display: flex; padding: 12px 8px 0; border-top: 1px solid transparent; }
.dz-b.fill.dz-tabbar { background: var(--sf); border-top-color: var(--ln); }
.dz-tabbar span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.dz-tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--sf2); }
.dz-tabbar span.on i { background: var(--ac); }
.dz-tabbar em { font-style: normal; font-size: 10px; color: var(--mu); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 12px; }
.dz-tabbar span.on em { color: var(--ink); }
/* the web page version */
.dz.web { padding: 0 0 40px; gap: 0; }
.dz-nav { display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 32px; border-radius: 0; border-bottom: 1px solid transparent; }
.dz-b.fill.dz-nav { border-bottom-color: var(--ln); }
.dz-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--ac); }
.dz-links { display: flex; gap: 22px; font-size: 13px; color: var(--mu); }
.dz-links span { min-width: 44px; height: 10px; border-radius: 5px; }
.dz-links span:empty { background: var(--sf2); }
.dz-links span.on { color: var(--ink); }
.dz-pill { margin-left: auto; width: 96px; height: 34px; border-radius: 999px; background: var(--ac); }
.dz-pill.big { margin-left: 0; width: 150px; height: 44px; margin-top: 8px; }
.dz-whero { margin: 48px 48px 0; display: flex; flex-direction: column; gap: 14px; }
.dz-whero .dz-title { font-size: 44px; }
.dz-whero .dz-ln { height: 10px; }
.dz-grid { margin: 36px 48px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dz-grid .dz-card { padding: 20px; gap: 14px; }
.dz-grid .dz-card b { height: 28px; }
.dz-table { margin: 20px 48px 0; }
.dz-b.fill.dz-table { background: var(--sf); }
.dz-table .dz-row { display: grid; grid-template-columns: 3fr 2fr 1fr; gap: 20px; padding: 16px 20px; }
/* the designer's hand: a selection box with handles and a named cursor */
.dz-sel { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid var(--pink); border-radius: 6px; pointer-events: none; opacity: 0; z-index: 5;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 12%, transparent); transition: transform .55s var(--fx-ease), width .55s var(--fx-ease), height .55s var(--fx-ease), opacity .3s; }
.dz.live .dz-sel.on { opacity: 1; }
.dz-sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--pink); border-radius: 2px; }
.dz-sel i:nth-child(1) { left: -4px; top: -4px; } .dz-sel i:nth-child(2) { right: -4px; top: -4px; } .dz-sel i:nth-child(3) { left: -4px; bottom: -4px; } .dz-sel i:nth-child(4) { right: -4px; bottom: -4px; }
.dz-tag { position: absolute; left: -1.5px; top: -21px; padding: 2px 7px; border-radius: 5px 5px 5px 0; background: var(--pink); color: #111; font: 600 10.5px/15px -apple-system, system-ui, sans-serif; white-space: nowrap; }
.dz-cur { --c: #FF7AC6; position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: flex-start; pointer-events: none; opacity: 0; transition: transform .7s var(--fx-ease), opacity .3s; }
.dz.live .dz-cur { opacity: 1; }
.dz-cur svg { width: 17px; height: 17px; fill: var(--c); stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.dz-cur span { margin: 12px 0 0 -2px; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #111; font: 600 10.5px/15px -apple-system, system-ui, sans-serif; white-space: nowrap; }
.dz-note { position: absolute; left: 0; right: 0; bottom: 104px; text-align: center; font-size: 12.5px; color: var(--mu); opacity: 0; transition: opacity .4s; }
.dz.web .dz-note { bottom: 40px; }
.dz.idle .dz-note { opacity: .9; }

/* narrow stages: names only for the working agent */
@media (max-width: 1100px) { .fx-name, .fx-say { display: none; } .fx-agent.on .fx-name { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .stage .frame, .fx-back, .fx-agent, .fx-orb, .fx-halo, .fx-ring, .fx-wire *, .fx-aura, .fx-scan, .fx-code, .fx-caret, .fx-chk, .fx-score, .fx-score .fg, .fx-tl .sp, .dz, .dz-b, .dz-b::after, .dz-sel, .dz-cur, .fx-qrwire *, .fx-dot { animation: none !important; transition: none !important; }
  .fx-scan.on { opacity: .6; transform: translateY(160%); }
}
