.motion-picker {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 4px;
  font: .78rem var(--mono); color: var(--soft); border-bottom: 1px solid #ffffff24; padding-bottom: 7px;
}
.motion-picker > span { margin-right: auto; }
.motion-picker button { background: transparent; color: var(--soft); border: 1px solid transparent; border-radius: 5px; padding: 5px 9px; min-height: 34px; font: 600 .83rem var(--sans); }
.motion-picker button[aria-pressed=true] { color: var(--white); border-color: #d5d5d585; background: #0c0c0c80; }
.motion-picker button:hover { border-color: #ffffff69; }
.showcase[data-motion=switchboard] { background: radial-gradient(ellipse at 74% 38%, #404040 0%, transparent 58%), linear-gradient(116deg,#191919,#232323); }
.showcase[data-motion=orbit] { background: radial-gradient(ellipse at 69% 45%, #363636 0%, transparent 58%), linear-gradient(116deg,#131313,#1c1c1c); }
.showcase[data-motion=paper] { background: radial-gradient(ellipse at 76% 36%, #4f4f4f 0%, transparent 56%), linear-gradient(119deg,#1f1f1f,#2f2f2f); }
#replay:not([data-motion=rails]) :is(#git-map,.field) { opacity: 0; visibility: hidden; pointer-events: none; }
.motion-study { position: absolute; inset: 0; color: var(--white); }
.motion-study[hidden] { display: none; }
.instrument { width: 100%; height: 100%; overflow: visible; display: block; font: 550 var(--dial-type,15px) var(--mono); fill: #ededed; }
.instrument text { paint-order: stroke; stroke: #202020; stroke-width: 2.5px; stroke-linejoin: round; }
.board-floor { fill: #131313; stroke: #5f5f5f; stroke-width: 2px; }
.scope-caps, .source-tag, .instrument .micro { font-size: var(--dial-micro); fill: #c5c5c5; }
.scope-caps { letter-spacing: .045em; }
.jack-labels rect { fill: #272727; stroke: #828282; }
.jack-labels circle { fill: #353535; stroke: #b5b5b5; stroke-width: 2; }
.input-wires, .dispatch-wires, .dependency-wire, .git-output path, .orbit-match {
  fill: none; stroke: #8d8d8d; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}
.dispatch-wires path { stroke: #a8a8a8; opacity: .43; }
.dispatch-wires [data-tail] { opacity: 0; }
.dispatch-wires .live { stroke: #e6e6e6; opacity: 1; stroke-width: 3.7; }
.dependency-wire { stroke-dasharray: 3 6; }
.motion-study:not([data-stage=survey]) .input-wires [data-input=fix], .motion-study:not([data-stage=survey]) .dependency-wire { stroke: #c6c6c6; stroke-width: 3; }
.motion-study:not([data-stage=survey]) [data-slot=fix] rect { fill: #444444; stroke: #bfbfbf; stroke-width: 2; }
.processor rect { fill: #1e1e1e; stroke: #a4a4a4; stroke-width: 2; }
.processor rect + rect { fill: #3e3e3e; stroke: #787878; stroke-width: 1; }
.processor path { fill: #c7c7c7; }
.study-ports circle, .endpoint circle { fill: #252525; stroke: #aaaaaa; stroke-width: 1.8; }
.study-ports .live circle { stroke: #e7e7e7; stroke-width: 3; }
.study-ports [data-port-node=whatsapp] use { color: #dadada; }
.study-ports text { font-size: var(--dial-micro); }
.hub-name { fill: #f2f2f2; font: 700 var(--dial-type) var(--sans); }
.signal-packet { fill: #eeeeee; pointer-events: none; }
.packet-1 { fill: #d3d3d3; }
.packet-2 { fill: #bbbbbb; }
.git-output { display: none; }
.motion-study[data-history=true] :is(.study-ports,.dispatch-wires) { display: none; }
.motion-study[data-history=true] .git-output { display: inline; }
.git-output path { stroke: #d6d6d6; stroke-dasharray: 6 6; }
.motion-study[data-stage=merged] .git-output path { stroke: #e7e7e7; stroke-width: 3.5; stroke-dasharray: none; }
.motion-study[data-stage=answer] .endpoint circle { fill: #414141; }
.orbit text { stroke: #1d1d1d; }
.star-field { fill: #e9e9e9; }
.orbit-scale { fill: none; stroke: #d7d7d7; opacity: .46; stroke-width: .9; }
.orbit-scale ellipse:first-child { stroke-dasharray: 1.4 7; stroke-width: 3; }
.orbit .input-wires { stroke: #a2a2a2; stroke-width: 1.65; }
.orbit .input-wires [data-input=ci] { stroke-dasharray: 2 3; }
.orbit .input-wires [data-input=draft] { stroke: #a4a4a4; }
.orbit .dispatch-wires path { stroke: #999999; }
.orbit .dispatch-wires .live { stroke: #e6e6e6; }
.orbit :is(.study-ports,.endpoint) circle { fill: #282828; stroke: #9f9f9f; }
.orbit .study-ports .live circle { stroke: #e6e6e6; }
.orbit .source-tag { fill: #d2d2d2; }
.observatory circle { fill: #232323; stroke: #b2b2b2; }
.observatory circle + circle { fill: #414141; stroke: #cbcbcb; }
.observatory path { fill: #d7d7d7; }
.orbit-key { font-size: var(--dial-micro); fill: #d8d8d8; }
.orbit-key circle { fill: #adadad; }
.orbit-key [data-slot=fix] { fill: #d1d1d1; }
.orbit-key [data-slot=fix] circle { fill: #d1d1d1; }
.orbit .scan-sweep { opacity: 0; }
.motion-study[data-stage=survey] .scan-sweep { opacity: 1; }
.orbit-match { stroke: #bfbfbf; opacity: 0; stroke-dasharray: 3 4; }
.motion-study[data-stage=blocked] .orbit-match { opacity: .9; }
.motion-study[data-compact=true] .study-ports text { display: none; }
.motion-study[data-compact=true] .instrument.board .scope-caps { font-size: 22px; }
.motion-study[data-compact=true] .jack-labels .micro { display: none; }
.motion-study[data-compact=true] .jack-labels [data-branch] { transform: translateY(12px); }
.motion-study[data-compact=true] .instrument .endpoint text { text-anchor: end; transform: translate(21px,0); }
.paper-scene { position: relative; display: grid; place-items: center; height: 100%; --scan: 1; }
.paper-stack { width: min(74%,430px); position: relative; z-index: 1; }
.paper-under, .paper-sheet {
  box-shadow: 1px 7px 12px #1010103b; border: 1px solid #9c9c9c;
  background: #eaeaea; color: #2d2d2d; border-radius: 3px;
}
.paper-under { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,#cacaca 0 20px,#afafaf 21px,#cacaca 22px); }
.paper-under.one { transform: translate(-3%,3%) rotate(-8deg); }
.paper-under.two { transform: translate(4%,-1%) rotate(5deg); background-color: #d7d7d7; }
.paper-sheet {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(10px,1.8vw,26px); min-height: clamp(184px,17vw,248px);
  background: radial-gradient(ellipse at 0 5%,#f8f8f8,transparent 55%),linear-gradient(110deg,#e3e3e3,#f6f6f6);
  transform: translateY(var(--lift,0px)) rotate(-2deg);
}
.paper-letterhead, .paper-foot, .paper-survey li { display: flex; align-items: center; gap: 6px; }
.paper-letterhead { padding-bottom: 7px; border-bottom: 1px solid #6a6a6a; }
.paper-letterhead .mark { width: 20px; height: 20px; background: #494949; }
.paper-letterhead b { font: 700 1.1rem var(--sans); }
.paper-letterhead span, .paper-foot, .paper-from { font: .73rem/1.15 var(--mono); color: #4b4b4b; }
.paper-letterhead span { margin-left: auto; }
.paper-scene h3 { color: #2d2d2d; font: 400 clamp(25px,2.5vw,42px)/.99 var(--serif); margin: 7px 0; letter-spacing: -.035em; }
.paper-survey ul { list-style: none; padding: 0; margin: 4px 0 6px; position: relative; isolation: isolate; }
.paper-survey ul::before { content:''; position: absolute; z-index: -1; inset: 0 0 auto; height: 33.33%; transform: translateY(calc(var(--scan) * 100%)); background: #bdbdbd; }
.paper-survey li { justify-content: space-between; border-bottom: 1px solid #b5b5b5; padding: 3px 4px; font: 600 .83rem/1.12 var(--sans); }
.paper-survey li span { font: .73rem/1.12 var(--mono); }
.paper-foot { justify-content: space-between; border-top: 1px dashed #9a9a9a; padding-top: 6px; }
.paper-stamp { display: inline-block; color: #4a4a4a; border: 1px solid #777777; font-weight: 700; padding: 2px 5px; transform: rotate(-4deg) scale(var(--stamp)); }
.paper-envelope { position: absolute; z-index: 2; bottom: 8%; right: 8%; width: 25%; height: 19%; display: grid; place-items: end center; overflow: hidden;
  border: 1px solid #858585; border-radius: 2px; background: linear-gradient(145deg,#7d7d7d,#5d5d5d); box-shadow: 0 4px 12px #1010103b;
  color:#f7f7f7; transform: translateX(var(--slip,0px)) rotate(8deg); }
.paper-envelope i { position: absolute; left: 11%; top: -56%; width: 78%; height: 115%; transform: rotate(0deg) skewX(-12deg); clip-path: polygon(0 46%, 100% 46%, 54% 100%); background: #a9a9a9; }
.paper-envelope b { font: 600 .73rem var(--mono); margin-bottom: 5%; }
.motion-study:not([data-stage=survey]) .paper-survey, .motion-study[data-stage=survey] .paper-decision,
.motion-study:is([data-stage=survey],[data-stage=blocked]) .paper-envelope { display: none; }
.paper-decision { margin: 11px 0; }
.paper-decision p { color: #434343; margin: 4px 0 0; font: .91rem/1.25 var(--sans); max-width: 31ch; }
.motion-study[data-stage=merged] .paper-stamp { color: #4c4c4c; border-color: #646464; }
.motion-study:not([data-stage=ask]) .paper-envelope { z-index: 0; }
.graph-space { isolation: isolate; }
@media (max-width:760px) {
  .motion-picker { margin-top: 19px; flex-wrap: wrap; gap: 2px; }
  .motion-picker > span { font-size: .7rem; }
  .motion-picker button { font-size: .75rem; padding: 3px 6px; }
  .motion-picker + .graph-space { margin-top: 4px; }
  .paper-sheet { min-height: 157px; padding: 9px 11px; }
  .paper-stack { width: 76%; }
  .paper-letterhead, .paper-foot { padding-block: 2px; }
  .paper-letterhead span, .paper-foot, .paper-from, .paper-envelope b { font-size: .63rem; }
  .paper-survey li, .paper-survey li span { font-size: .68rem; }
  .paper-decision p { font-size: .77rem; }
  .paper-envelope { right: 4%; bottom: 5%; }
}
@media(max-width:370px) {
  .motion-picker > span { flex-basis: 100%; }
  .motion-picker button { flex: 1; padding: 2px 3px; }
}
.delivery-legend { display: flex; align-items: center; gap: 12px; }
.project-choice { display: inline-flex; align-items: center; gap: 5px; }
.project-choice select {
  min-width: 62px; max-width: 111px; padding: 4px 2px; border: 0; border-bottom: 1px solid #d5d5d578;
  background: transparent; color: inherit; font: 600 .8rem var(--sans); color-scheme: dark;
}
.project-choice select option { color: #f1f1f1; background: #232323; }
.agent-inputs, .agent-actions { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.agent-inputs label { display: grid; gap: 4px; font: .7rem var(--mono); color: var(--soft); }
.source-status { font: .73rem/1.3 var(--mono); color: var(--soft); }
.agent-inputs select, .agent-actions button { border: 1px solid #ffffff54; color: var(--white); background: var(--deep); padding: 5px 8px; border-radius: 4px; font: 550 .85rem var(--sans); color-scheme: dark; }
.agent-actions button:first-child { color: var(--night); background: var(--accent); border-color: var(--accent); }
#agent-receipt { font: .77rem/1.35 var(--mono); color: var(--accent); overflow-wrap: anywhere; }
#agent-receipt:empty, #agent-follow[hidden] { display: none; }
@media(max-width:760px){.delivery-legend{justify-content:space-between;}.delivery-legend span{margin-right:4px;}}
@media (min-width:761px) and (max-height:960px) {
  .hero-body { padding-block: clamp(19px,3vh,30px) clamp(19px,3vh,30px); }
}
