/* ==========================================================================
   Sync — the OpsSync agent (markup is built by js/agent.js)
   A small probe-bot with a CRT head: amber phosphor eyes on deep glass, the
   OpsSync mark spinning on its antenna, a scope probe with a coiled cable.
   ≥ 900px: lives in a document-absolute layer and flies between [data-perch]es.
   < 900px: docked bottom-right, above content and below the nav (z 50).
   Idle life is CSS only (2–3 frame cycles with steps()); JS drives flights.
   ========================================================================== */

.sync {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 45;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.sync[data-state="off"] { visibility: hidden; }

/* The agent's anchor is a point: the middle of its feet. JS translates it. */
.sync__agent {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transition: opacity 200ms linear;
}
.sync.is-fading .sync__agent { opacity: 0; }

.sync__btn {
  position: absolute;
  left: -36px;
  top: -92px;
  width: 72px;
  height: 92px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sync__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 14px; }
.sync[data-state="flying"] .sync__btn,
.sync[data-state="power"] .sync__btn { pointer-events: none; }

.sync__tilt,
.sync__rig {
  position: relative;
  display: block;
  width: 72px;
  height: 92px;
}
.sync__tilt { transform-origin: 50% 42%; transition: transform 320ms var(--ease-out); }
.sync[data-state="flying"] .sync__tilt { transition: none; }
.sync__rig { transform-origin: 50% 100%; }

.sync__bot { width: 72px; height: 92px; overflow: visible; }

/* Antenna tip: the brand mark, always spinning (site.css .spin; slows under reduced motion). */
.sync__markwrap {
  position: absolute;
  left: 27px;
  top: 0;
  width: 18px;
  height: 18px;
}
.sync__markwrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 158, 40, 0.22), rgba(241, 158, 40, 0));
}
.sync__mark { position: relative; width: 18px; height: 18px; }
.sync[data-state="flying"] .sync__mark { animation-duration: 0.3s; animation-timing-function: linear; }
.sync[data-state="walking"] .sync__mark { animation-duration: 1.4s; }
@media (hover: hover) {
  .sync__btn:hover .sync__mark { animation-duration: 1s; }
}

/* ---------- Idle life (2–3 frame cycles) ---------- */
.sync__head,
.sync__markwrap { animation: sync-bob 1.8s steps(1, end) infinite; }
@keyframes sync-bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

.sync .e-open {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sync-blink 5.6s steps(1, end) infinite;
}
@keyframes sync-blink {
  0%, 44% { transform: scaleY(1); }
  45.5% { transform: scaleY(0.12); }
  47%, 90% { transform: scaleY(1); }
  91.5% { transform: scaleY(0.12); }
  93% { transform: scaleY(1); }
  94.5% { transform: scaleY(0.12); }
  96%, 100% { transform: scaleY(1); }
}

/* No mouse: the eyes look around on their own. With a mouse, JS aims them. */
.sync:not(.has-pointer) .sync__scan { animation: sync-scan 9s steps(1, end) infinite; }
@keyframes sync-scan {
  0% { transform: translate(0, 0); }
  28% { transform: translate(-1.5px, 0); }
  40% { transform: translate(0, 0); }
  66% { transform: translate(1.5px, 0.5px); }
  78%, 100% { transform: translate(0, 0); }
}

.sync__led,
.sync__halo { animation: sync-led 2.4s steps(1, end) infinite; }
@keyframes sync-led {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}
.sync[data-state="flying"] .sync__led,
.sync[data-state="flying"] .sync__halo { animation-duration: 0.36s; }
.sync[data-expr="asleep"] .sync__led,
.sync[data-expr="asleep"] .sync__halo { animation-duration: 4.2s; }

/* ---------- Expressions ---------- */
.sync .e { display: none; }
.sync[data-expr="neutral"] .e-open,
.sync[data-expr="happy"] .e-happy,
.sync[data-expr="focused"] .e-focus,
.sync[data-expr="surprised"] .e-surprise,
.sync[data-expr="asleep"] .e-sleep { display: inline; }
@media (hover: hover) {
  .sync[data-expr="neutral"] .sync__btn:hover .e-open { display: none; }
  .sync[data-expr="neutral"] .sync__btn:hover .e-happy { display: inline; }
}
.sync[data-expr="asleep"] .sync__face { opacity: 0.72; }
.sync[data-expr="asleep"] .sync__head,
.sync[data-expr="asleep"] .sync__markwrap { animation: none; transform: translateY(1.5px); }

/* Sleep: drawn z's, one per frame, rising. */
.sync__zz { display: none; }
.sync[data-expr="asleep"] .sync__zz { display: inline; animation: sync-zrise 2.4s steps(1, end) infinite; }
.sync[data-expr="asleep"] .z2 { animation: sync-z2 2.4s steps(1, end) infinite; }
.sync[data-expr="asleep"] .z3 { animation: sync-z3 2.4s steps(1, end) infinite; }
@keyframes sync-zrise {
  0% { transform: translateY(2px); }
  33.3% { transform: translateY(1px); }
  66.6% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}
@keyframes sync-z2 { 0% { opacity: 0; } 33.3% { opacity: 1; } 100% { opacity: 1; } }
@keyframes sync-z3 { 0% { opacity: 0; } 66.6% { opacity: 1; } 100% { opacity: 1; } }

/* ---------- Legs: walk frames, tucked in flight ---------- */
.sync__leg { transform-box: fill-box; transform-origin: 50% 0; transition: transform 160ms steps(2, end); }
.sync[data-state="walking"] .sync__leg--l { animation: sync-walk-l 0.42s steps(1, end) infinite; }
.sync[data-state="walking"] .sync__leg--r { animation: sync-walk-r 0.42s steps(1, end) infinite; }
@keyframes sync-walk-l {
  0% { transform: translateY(-1.8px); }
  33.3% { transform: translateY(0); }
  66.6% { transform: translateY(0); }
  100% { transform: translateY(-1.8px); }
}
@keyframes sync-walk-r {
  0% { transform: translateY(0); }
  33.3% { transform: translateY(0); }
  66.6% { transform: translateY(-1.8px); }
  100% { transform: translateY(0); }
}
.sync[data-state="flying"] .sync__leg--l { transform: translate(1px, -3.4px) rotate(9deg) scaleY(0.86); }
.sync[data-state="flying"] .sync__leg--r { transform: translate(-1px, -3.4px) rotate(-9deg) scaleY(0.86); }
.sync__shadow { transform-box: fill-box; transform-origin: 50% 50%; transition: opacity 200ms linear, transform 200ms var(--ease-out); }
.sync[data-state="flying"] .sync__shadow { opacity: 0; }

/* Hovering where no edge is drawn (the method timebase): the mark turns like a rotor, the legs
   half-tuck, a small soft shadow falls on the surface 12px below, and the body holds a
   2-frame float. Declared before the one-shot moves so a hop still wins. */
.sync.is-hover .sync__rig { animation: sync-float 1.2s steps(1, end) infinite; }
@keyframes sync-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.sync.is-hover .sync__leg--l { transform: translate(0.6px, -2.2px) rotate(6deg) scaleY(0.9); }
.sync.is-hover .sync__leg--r { transform: translate(-0.6px, -2.2px) rotate(-6deg) scaleY(0.9); }
.sync.is-hover[data-state="walking"] .sync__leg--l,
.sync.is-hover[data-state="walking"] .sync__leg--r { animation: none; }
.sync.is-hover .sync__shadow { opacity: 0.45; transform: translateY(12px) scale(0.7, 0.8); }
.sync.is-hover .sync__mark { animation-duration: 0.8s; animation-timing-function: linear; }

/* The free arm waves while Sync talks. */
.sync__arm-l { transform-box: view-box; transform-origin: 21px 68.6px; }
.sync.is-speaking .sync__arm-l { animation: sync-wave 0.84s steps(1, end) 2; }
@keyframes sync-wave {
  0% { transform: rotate(62deg); }
  33.3% { transform: rotate(86deg); }
  66.6% { transform: rotate(62deg); }
  100% { transform: rotate(0deg); }
}

/* ---------- One-shot moves ---------- */
.sync.is-hop .sync__rig { animation: sync-hop 560ms steps(1, end); }
@keyframes sync-hop {
  0% { transform: scale(1.07, 0.9); }
  20% { transform: translateY(-10px) scale(0.96, 1.05); }
  45% { transform: translateY(-13px); }
  70% { transform: translateY(-4px); }
  85% { transform: scale(1.06, 0.92); }
  100% { transform: none; }
}
.sync[data-state="land"] .sync__rig { animation: sync-land 300ms steps(1, end); }
@keyframes sync-land {
  0% { transform: scale(1.09, 0.87); }
  45% { transform: scale(0.97, 1.04); }
  75% { transform: scale(1.02, 0.98); }
  100% { transform: none; }
}

/* Power-on: the body appears, then the face opens from a horizontal CRT line. */
.sync[data-state="power"] .sync__rig { animation: sync-appear 360ms var(--ease-out) both; }
@keyframes sync-appear {
  from { opacity: 0; transform: translateY(6px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.sync__screen { transform-box: fill-box; transform-origin: 50% 50%; }
.sync[data-state="power"] .sync__screen { animation: sync-crt 720ms var(--ease-out) both; }
@keyframes sync-crt {
  0% { transform: scale(0.02, 0.04); opacity: 0; }
  20% { transform: scale(0.02, 0.04); opacity: 1; }
  46% { transform: scale(1, 0.05); }
  100% { transform: none; opacity: 1; }
}
.sync__beam { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.sync[data-state="power"] .sync__beam { animation: sync-beam 720ms linear both; }
@keyframes sync-beam {
  0% { opacity: 0; transform: scaleX(0.02); }
  20% { opacity: 1; transform: scaleX(0.02); }
  46% { opacity: 1; transform: none; }
  72% { opacity: 0.45; }
  100% { opacity: 0; transform: none; }
}
.sync[data-state="power"] .sync__pip { animation: sync-pip 720ms steps(1, end) both; }
@keyframes sync-pip { 0% { opacity: 0.2; } 25% { opacity: 1; } 40% { opacity: 0.3; } 60%, 100% { opacity: 1; } }

/* ---------- Speech bubble: a small bezel with a glass window ---------- */
.sync__bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 5px;
  background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 55%, #2F302A 100%);
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 18px 36px -14px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition: opacity 220ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms;
  pointer-events: none;
}
.sync__bubble.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s;
}
.sync__glass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: start;
  gap: 8px;
  padding: 9px 7px 10px 12px;
  border-radius: 8px;
  background: radial-gradient(130% 120% at 30% 15%, #1D1F1A 0%, var(--glass) 62%, #0D0E0B 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85), inset 0 0 0 2px rgba(255, 255, 255, 0.03), inset 0 8px 18px rgba(0, 0, 0, 0.5);
}
.sync__say {
  margin: 0;
  font-family: var(--f-brand);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}
/* The beam writes the line left → right. */
.sync__bubble.is-on .sync__say { animation: sync-sweep 560ms var(--ease-out); }
@keyframes sync-sweep {
  from { clip-path: inset(-2px 100% -2px 0); }
  to { clip-path: inset(-2px 0 -2px 0); }
}
.sync__x {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -2px 0 0;
  padding: 0;
  border: 1px solid var(--edge-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  color: var(--muted);
  cursor: pointer;
  pointer-events: auto;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.sync__x::after { content: ""; position: absolute; inset: -10px; }
.sync__x .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.sync__x:hover { color: var(--amber); border-color: rgba(241, 158, 40, 0.6); }
.sync__bubble:not(.is-on) .sync__x { pointer-events: none; }

/* Tail: a rotated key of the bezel, pointing at Sync. */
.sync__tail {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
  transform: rotate(45deg);
}
.sync__bubble.is-left .sync__tail { right: -6px; top: var(--tail-y, 26px); border-left: 0; border-bottom: 0; }
.sync__bubble.is-right .sync__tail { left: -6px; top: var(--tail-y, 26px); border-right: 0; border-top: 0; }
.sync__bubble.is-above .sync__tail,
.sync__bubble.is-dockabove .sync__tail { bottom: -6px; left: var(--tail-x, 50%); border-left: 0; border-top: 0; }
.sync__bubble.is-dockabove .sync__tail { left: auto; right: 23px; }
.sync__bubble.is-dockleft .sync__tail { right: -6px; bottom: 30px; border-left: 0; border-bottom: 0; }

/* Screen-reader channel for the lines (the drawn bubble is aria-hidden). */
.sync__live {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Menu: a strip of instrument softkeys ---------- */
.sync__menu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 46;
  width: 268px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 42%, #2E2F29 100%);
  border: 1px solid var(--edge);
  border-radius: 14px;
  box-shadow: var(--shadow-bezel);
  pointer-events: auto;
  animation: sync-menu-power 300ms var(--ease-out);
}
@keyframes sync-menu-power {
  0% { clip-path: inset(49% 0 49% 0 round 14px); filter: brightness(1.6); }
  55% { clip-path: inset(0 0 0 0 round 14px); }
  100% { clip-path: inset(0 0 0 0 round 14px); filter: none; }
}
.sync__menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 4px 6px 10px;
  border-bottom: 1px solid var(--edge-soft);
  font-family: var(--f-caps);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
}
.sync__menu-head .led { background: var(--amber); box-shadow: 0 0 0 2px rgba(241, 158, 40, 0.18), 0 0 10px var(--amber-glow); }
.sync__menu-name { color: var(--amber); }
.sync__menu-sub { margin-left: auto; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-2); }   /* --muted is < 4.5:1 on --panel-hi */

.sync__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 12px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-key);
  background: linear-gradient(180deg, #393A33, #30312B);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.35);
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.sync__item .icon { width: 18px; height: 18px; color: var(--muted); transition: color var(--dur-1) var(--ease-out), filter var(--dur-2) var(--ease-out); }
.sync__item:hover,
.sync__item:focus {
  color: var(--white);
  border-color: rgba(241, 158, 40, 0.55);
  background: linear-gradient(180deg, #3E3A2F, #33302A);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(241, 158, 40, 0.12), 0 0 18px -6px var(--amber-glow);
}
.sync__item:hover .icon,
.sync__item:focus .icon { color: var(--amber); filter: drop-shadow(0 0 4px var(--amber-glow)); }
.sync__item:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: var(--r-key); }
.sync__item:active { transform: translateY(1px); }
.sync__item-end { margin-left: auto; flex: none; }
.sync__item .sync__item-end.icon { width: 16px; height: 16px; opacity: 0.8; }
.sync__tag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bench-deep);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--edge-soft);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.sync__item .led { margin-left: auto; }
.sync__item .sync__mute-x { display: none; }
.sync.is-muted .sync__item .sync__mute-x { display: inline; }
.sync.is-muted .sync__item .led { background: #45463F; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6); }
.sync__sep { height: 1px; margin: 9px 4px 4px; background: var(--edge-soft); }

/* ---------- Narrow screens: docked bottom-right ---------- */
.sync__pad { display: none; }
.sync.is-dock {
  position: fixed;
  left: auto;
  top: auto;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 80px;
  transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out), visibility 0s;
}
.sync.is-dock .sync__agent { left: 28px; top: 72px; transform: none !important; }
.sync.is-dock .sync__btn { transform: scale(0.7778); transform-origin: 50% 100%; }
.sync.is-dock .sync__pad {
  display: block;
  position: absolute;
  left: -30px;
  top: 0;
  width: 60px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--panel-hi), #2A2B26);
  border: 1px solid var(--edge);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 16px -6px rgba(0, 0, 0, 0.85);
}
.sync.is-dock .sync__pad::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 1px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}
.sync.is-dock .sync__bubble {
  left: auto !important;
  top: auto !important;
  right: -4px;
  bottom: calc(100% + 4px);
  max-width: min(236px, calc(100vw - 28px));
}
.sync.is-dock .sync__bubble.is-dockleft { right: calc(100% + 10px); bottom: 12px; max-width: min(236px, calc(100vw - 100px)); }
.sync.is-dock .sync__say { font-size: 0.86rem; }
.sync.is-dock .sync__menu {
  left: auto !important;
  top: auto !important;
  right: -4px;
  bottom: calc(100% + 4px);
  max-height: calc(100vh - var(--nav-h) - 110px);
  max-height: calc(100svh - var(--nav-h) - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Out of the way while the visitor types in a form field (on-screen keyboard). */
.sync.is-dock.is-away {
  transform: translate3d(0, 140%, 0);
  opacity: 0;
  visibility: hidden;
  transition: transform 420ms var(--ease-out), opacity 240ms var(--ease-out), visibility 0s linear 420ms;
}

/* ---------- Background tab or scrolled out of view: idle cycles hold still ---------- */
.sync.is-paused .sync__head,
.sync.is-paused .sync__markwrap,
.sync.is-paused .e-open,
.sync.is-paused .sync__scan,
.sync.is-paused .sync__led,
.sync.is-paused .sync__halo,
.sync.is-paused .sync__zz,
.sync.is-paused .z,
.sync.is-paused.is-hover .sync__rig,
.sync.is-offscreen .sync__head,
.sync.is-offscreen .sync__markwrap,
.sync.is-offscreen .e-open,
.sync.is-offscreen .sync__scan,
.sync.is-offscreen .sync__led,
.sync.is-offscreen .sync__halo,
.sync.is-offscreen .sync__zz,
.sync.is-offscreen .z,
.sync.is-offscreen.is-hover .sync__rig { animation-play-state: paused; }

/* ---------- Reduced motion: no travel, bobbing or hopping; state changes stay ---------- */
@media (prefers-reduced-motion: reduce) {
  .sync__head,
  .sync__markwrap,
  .sync__scan,
  .sync__arm-l,
  .sync__leg,
  .sync.is-hover .sync__rig,
  .sync.is-hop .sync__rig,
  .sync[data-state="land"] .sync__rig,
  .sync[data-state="power"] .sync__screen,
  .sync[data-state="power"] .sync__beam { animation: none !important; }
  .sync[data-expr="asleep"] .sync__zz { animation: none; }
  /* The mark never stops; here it only slows (site.css), whatever state Sync is in. */
  .sync .sync__mark,
  .sync .sync__btn:hover .sync__mark { animation-duration: 14s !important; animation-timing-function: linear !important; }
  .sync[data-state="power"] .sync__rig { animation: sync-fade 320ms linear both; }
  .sync__tilt { transition: none; }
  .sync__bubble { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; }
  .sync__bubble.is-on { transition: opacity 200ms linear, visibility 0s; }
  .sync__bubble.is-on .sync__say { animation: none; }
  .sync__menu { animation: sync-fade 160ms linear; }
  .sync__item { transition: none; }
  .sync.is-dock,
  .sync.is-dock.is-away { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; }
}
@keyframes sync-fade { from { opacity: 0; } to { opacity: 1; } }

@media (forced-colors: active) {
  .sync__btn:focus-visible,
  .sync__item:focus-visible { outline-color: Highlight; }
  .sync__bubble,
  .sync__menu { border-color: CanvasText; }
}
@media print { .sync { display: none !important; } }

/* Steered by the hero chase: pose updates every frame, so no easing lag on the tilt. */
.sync.is-driven .sync__tilt { transition: none; }
.sync.is-driven .sync__btn { pointer-events: auto; }
