/* Quiet, related controls: a signal alphabet and the 101 opening. */
.app-shell #build-intent-key {display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:9px;border-radius:16px;border:1px solid #ffffffdf;background:#f7f9f7e8;box-shadow:inset 0 1px 0 #fff,0 5px 22px #1c30280d;color:#414b45;}
.connection-lens-mark{width:30px;height:24px;fill:none;stroke:#9a4b26;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}.connection-lens-mark .connection-opening{fill:#f9e6d6;stroke:#b45c30;}.connection-lens-mark .connection-point{fill:#b45c30;stroke:none;}
.app-shell #signal-key {width:max-content;min-width:0;padding:0;border-radius:16px;background:#f7f9f7e8;border:1px solid #ffffffdf;box-shadow:inset 0 1px 0 #fff,0 5px 22px #1c30280d;backdrop-filter:blur(15px);}
.app-shell #signal-key > summary {display:flex;align-items:center;gap:9px;min-height:48px;padding:9px 12px;font:500 14px/1.3 var(--sans);letter-spacing:0;}
.app-shell #signal-key > summary small{font:450 10px/1 var(--sans);color:#86908a;margin-left:3px;}
.legend-code-mark{width:25px;height:25px;flex:none;fill:#fff;stroke:#58655d;stroke-width:1;}.legend-code-mark .legend-dark{fill:#202622;}
.app-shell #signal-key[open]{width:min(300px,calc(100vw - 84px));}
.app-shell #signal-key .signal-key-body {padding:4px 16px 14px;}
.app-shell #signal-key .signal-key-row {gap:12px;padding:7px 0;}
.app-shell #signal-key .signal-key-row b {font:500 13px/1.4 var(--sans);letter-spacing:.015em;}
.app-shell #signal-key .signal-key-note {font:400 14px/1.5 var(--sans);margin:10px 0;}
#signal-entry.entry-pixel-checkin[data-exit] .entry-wash::before {opacity:var(--entry-exit-grain,0);transition:none;}

#intent-gate.handshake-dialog {
  --connection-focus: #bf6318;
  width: min(800px, calc(100vw - 24px));
  height: min(620px, calc(100dvh - 24px));
  max-height: none;
  inset: 0;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 26px;
  color: #26352e;
  background: #f7f8f4;
  box-shadow: 0 20px 70px #18291e32;
  font: 400 16px/1.4 var(--sans, system-ui, sans-serif);
}
#intent-gate.handshake-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: handshake-appear 280ms ease-out both;
}
@keyframes handshake-appear { from { opacity: 0; } }
#intent-gate::backdrop { background: #22382a28; backdrop-filter: blur(4px); }
#intent-gate .handshake-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0 20px;
}
#intent-gate .handshake-header h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 16px;
  margin: 0;
}
#intent-gate .handshake-development { font-size: 11px; font-weight: 500; color: #666661; }
#intent-gate button {
  min-height: 44px;
  border: 1px solid #26352e28;
  border-radius: 13px;
  background: #ffffffc9;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#intent-gate button:hover { border-color: #e5a364; background: #fff; }
#intent-gate :is(button, summary):focus-visible { outline: 2px solid var(--connection-focus); outline-offset: 2px; }
#intent-gate .intent-close { position: static; flex: none; width: 44px; padding: 0; font-size: 22px; line-height: 1; border-radius: 50%; }

.handshake-content { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.handshake-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(152px, 1fr) minmax(236px, 310px) minmax(152px, 1fr);
  grid-template-areas: "you controls other";
  align-items: center;
  gap: 8px;
  min-height: calc(100% - 12px);
  margin: 0 12px 12px;
  padding: 8px 12px;
}
.handshake-rings {
  --flow-travel: clamp(20px, 5vw, 48px);
  --flow-shift: 0px;
  --open-width: 68%;
  --lens-width: calc(var(--open-width) - 6% * var(--fit-depth, 0));
  --lens-inset: calc(5% + 5% * var(--fit-depth, 0));
  position: absolute;
  z-index: -1;
  inset: 0 var(--flow-travel);
  pointer-events: none;
}
#intent-gate[data-flow="pull"] .handshake-rings { --flow-shift: calc(-1 * var(--flow-travel)); }
#intent-gate[data-flow="push"] .handshake-rings { --flow-shift: var(--flow-travel); }
.handshake-rings::before, .handshake-rings::after {
  position: absolute;
  inset-block: var(--lens-inset);
  width: var(--lens-width);
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid #df914da3;
  background: radial-gradient(ellipse at var(--inner-edge) 45%, #edc29b24, #fff9ee14 67%, #fff8ef56);
  box-shadow: inset 0 0 0 3px #fff8, inset 0 0 26px #a76e3913;
  content: "";
  transition: transform 560ms cubic-bezier(.22,.75,.25,1), width 520ms cubic-bezier(.22,.75,.25,1),
    inset-block 520ms cubic-bezier(.22,.75,.25,1), background-color 460ms ease, box-shadow 460ms ease;
}
.handshake-rings::before {
  --inner-edge: 77%;
  left: 33%;
  translate: -50% 0;
  transform: translateX(var(--flow-shift));
}
.handshake-rings::after {
  --inner-edge: 23%;
  right: 33%;
  translate: 50% 0;
  border-style: dashed;
}
#intent-gate[data-flow="pull"] .handshake-rings::before,
#intent-gate[data-flow="push"] .handshake-rings::before {
  background-color: #e8ae762a;
  box-shadow: inset 0 0 0 3px #fff9, inset 0 0 32px #ca8d5333;
}
#intent-gate[data-fit="apart"] .handshake-rings::before {
  transform: translateX(calc(var(--flow-shift) - 10px));
}
.handshake-person {
  grid-area: you;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  text-align: center;
}
.handshake-person[data-person="otherFigure"] { grid-area: other; }
.handshake-person-label { display: grid; font-size: 13px; font-weight: 600; }
.handshake-person-label small { min-height: 15px; color: #59615b; font-size: 11px; font-weight: 550; }
#intent-gate .handshake-portrait { padding: 0; border-color: transparent; background: transparent; }
#intent-gate .handshake-portrait:hover { border-color: #edab6559; background: #fff5; }
.handshake-portrait {
  position: relative;
  width: min(100%, 94px);
  height: clamp(108px, 22dvh, 205px);
  overflow: clip;
  overflow-clip-margin: 2px;
}
.handshake-portrait img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 124%;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: brightness(0) opacity(.82);
}
.handshake-person[data-tone="white"] img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px #544539a8);
}
.handshake-shifter {
  --stop: 44px;
  --slot: 0px;
  --travel: calc(var(--stop) + var(--slot));
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, var(--stop));
  gap: var(--slot);
  touch-action: none;
  user-select: none;
  isolation: isolate;
}
.handshake-shifter-track {
  position: absolute;
  inset: calc(var(--stop) / 2);
  z-index: -2;
  background:
    linear-gradient(#7e8981, #7e8981) top / 100% 2px no-repeat,
    linear-gradient(#7e8981, #7e8981) bottom / 100% 2px no-repeat,
    linear-gradient(#7e8981, #7e8981) center / 2px 100% no-repeat;
  pointer-events: none;
}
.handshake-shifter-knob {
  position: absolute;
  inset: 5px auto auto 5px;
  z-index: -1;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #edab65;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, #fff0df 82%);
  box-shadow: inset 0 1px 0 #fff9, 0 2px 6px #312c2930;
  transform: translate(var(--gear-x, 0px), var(--gear-y, 0px));
  pointer-events: none;
}
.handshake-shifter:has(button:nth-of-type(even)[aria-pressed="true"]) { --gear-x: var(--travel); }
.handshake-shifter:has([data-tone="black"][aria-pressed="true"]) { --gear-y: var(--travel); }
#intent-gate .handshake-shifter button {
  display: grid;
  place-items: center;
  width: var(--stop);
  height: var(--stop);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
#intent-gate .handshake-shifter [aria-pressed="true"] { cursor: grab; }
#intent-gate .handshake-shifter.is-grabbed button { cursor: grabbing; }
.handshake-shifter i {
  width: 17px;
  height: 17px;
  border: 1px solid #4e5451;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px #f7f6ef;
}
.handshake-shifter [data-shape="circle"] i { border-radius: 50%; }
.handshake-shifter [data-tone="black"] i { background: #1b1c19; }
#intent-gate .handshake-shifter button:hover i { box-shadow: 0 0 0 3px #ef9a4a75; }
.handshake-bridges {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.handshake-bridge { color: var(--value-tone); }
.handshake-bridge path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  mask: url(#handshake-wire-mask);
}
.handshake-wire {
  opacity: .25;
  stroke-dasharray: 2 3;
  transition: opacity 260ms ease;
}
.handshake-bridge.is-selected .handshake-wire { opacity: .8; }
.handshake-bridge.is-aligned .handshake-wire { stroke-dasharray: none; }
.handshake-bridge circle { fill: #fff; stroke: currentColor; }
.handshake-bridge.is-aligned circle { fill: currentColor; }
.handshake-energy {
  display: none;
  stroke-width: 2;
  stroke-dasharray: 5 95;
  animation: handshake-send 3.5s linear var(--send-offset, 0ms) both;
}
.handshake-bridge.is-selected .handshake-energy:not(.is-other),
.handshake-bridge.is-aligned .handshake-energy.is-other { display: block; }
.handshake-energy.is-other {
  animation: handshake-respond 3.5s linear var(--release-delay, 0ms) both;
}
@keyframes handshake-send {
  0% { stroke-dashoffset: 12; opacity: 1; }
  99.9% { stroke-dashoffset: -88; opacity: 1; }
  100% { stroke-dashoffset: -88; opacity: 0; }
}
@keyframes handshake-respond {
  0% { stroke-dashoffset: -88; opacity: 0; }
  2% { opacity: 1; }
  96% { opacity: 1; }
  100% { stroke-dashoffset: 12; opacity: 0; }
}
@keyframes handshake-center-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes handshake-center-out { from { opacity: 1; } to { opacity: 0; } }
.handshake-response-lamp {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 12px;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: var(--lamp);
  box-shadow: 0 0 8px 2px var(--lamp);
}
[data-expected] .handshake-response-lamp {
  animation: handshake-value-response 3.5s ease var(--release-delay, 0ms) both;
}
@keyframes handshake-value-response {
  0% { opacity: 0; }
  10%, 72% { opacity: 1; }
  100% { opacity: 0; }
}
#intent-gate[data-fit="apart"] .handshake-bridge.is-selected .handshake-wire { stroke-dasharray: 2 3; opacity: .45; }
#intent-gate[data-fit="apart"] .handshake-energy { display: none; }
#intent-gate[data-fit="apart"] .handshake-bridge circle:last-child { fill: #fff; }
.handshake-step {
  position: relative;
  grid-area: controls;
  min-width: 0;
  padding: 15px 12px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, #faf9f4 42%, #faf9f4ee 64%, transparent 84%);
  text-align: center;
}
.handshake-step > * { position: relative; z-index: 2; }
.handshake-step h3 { width: fit-content; font-size: clamp(18px, 3.2vw, 24px); line-height: 1.2; margin: 0 auto 12px; }
.handshake-step h3:focus { outline: none; }
.handshake-step p { margin: 0 0 9px; color: #48594e; }
.handshake-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#intent-gate .handshake-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px;
  line-height: 1.15;
  box-shadow: inset 0 0 0 1px #fff9, 0 3px 8px #3221100d;
}
.handshake-step .handshake-value-prompt {
  width: fit-content;
  margin: -5px auto 12px;
  font-size: 13px;
}
.handshake-match-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 270px);
  margin-inline: auto;
  padding: 2px;
  border: 1px solid #dce0da;
  border-radius: 13px;
  background: #eff0ed;
}
.handshake-match-choice[inert] { visibility: hidden; }
#intent-gate .handshake-match-choice button {
  min-width: 0;
  padding: 4px 6px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
}
#intent-gate .handshake-match-choice button:hover { background: #ffffffc9; }
#intent-gate .handshake-match-choice button[aria-pressed="true"] {
  border-color: #e5a364;
  background: #fff6ed;
  color: #51351e;
}
.handshake-fit { margin: 0 0 10px; font-size: 13px; color: #48594e; }
#intent-gate .handshake-quiet {
  padding: 6px 9px;
  background: linear-gradient(#fdfdfb, #eaecea);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #49584c22, 0 3px 5px #32453710;
  font-size: 14px;
}
#intent-gate .handshake-quiet:hover { background: linear-gradient(#fff, #f0f2f0); }
.handshake-step > .handshake-quiet { margin-top: 8px; }
.handshake-navigation { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
#intent-gate .handshake-primary {
  flex: 1;
  padding: 6px 9px;
  color: #fff;
  background: linear-gradient(#535957, #383d3c);
  border-color: #454b49;
  box-shadow: inset 0 1px 0 #ffffff30, 0 2px 0 #272b2a6b, 0 3px 6px #292d2c29;
}
#intent-gate .handshake-primary:hover { background: linear-gradient(#616765, #424846); }
#intent-gate .handshake-quiet:active,
#intent-gate .handshake-primary:active { box-shadow: inset 0 1px 3px #1f302836; }
.handshake-status { position: relative; box-sizing: border-box; height: 88px; margin: 0; padding: 8px 18px 12px; color: #59615b; font-size: 12px; text-align: center; display: grid; align-content: center; justify-items: center; gap: 3px; }
.handshake-status strong { color: #37473d; font-size: 14px; }
.handshake-control-key summary { cursor: pointer; color: #59615b; font-size: 12px; }
.handshake-control-key[open] { position: absolute; bottom: 8px; left: 12px; right: 12px; z-index: 5; border: 1px solid #e3c9b3; border-radius: 14px; background: #fafbf8; padding: 12px; box-shadow: 0 4px 18px #30251c15; }
.handshake-control-key p { margin: 8px 0 0; line-height: 1.5; }
#intent-gate .handshake-result-open { min-height: 32px; padding: 3px 14px; font-size: 12px; border-color: #dc9b64; }
.handshake-person[data-person="otherFigure"] .handshake-portrait { border: 1px dashed #dd965f80; border-radius: 16px; background: #f2e5d723; }
.handshake-person[data-person="otherFigure"] .handshake-portrait img { opacity: .6; }
#intent-gate[data-fit="matched"] .handshake-rings::before { box-shadow: inset 0 0 0 3px #fff9, inset 0 0 32px #efa56155; }
@media (max-width: 700px) {
  #intent-gate.handshake-dialog {
    inset: auto 0 max(8px, env(safe-area-inset-bottom));
    height: min(710px, calc(100dvh - max(16px, env(safe-area-inset-bottom)) - 8px));
  }
  #intent-gate .handshake-header { padding: 4px 7px 0 14px; }
  .handshake-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "you other" "controls controls";
    min-height: calc(100% - 7px);
    align-content: center;
    gap: 4px;
    margin: 0 5px 7px;
    padding: 4px 8px 4px;
  }
  .handshake-rings { --open-width: 72%; }
  .handshake-person {
    grid-template: "label label" auto "shifter portrait" 1fr "figure figure" auto / 88px minmax(0, 1fr);
    align-items: center;
    gap: 2px;
  }
  .handshake-person[data-person="otherFigure"] {
    grid-template: "label label" auto "portrait shifter" 1fr "figure figure" auto / minmax(0, 1fr) 88px;
  }
  .handshake-person-label { grid-area: label; }
  .handshake-portrait { grid-area: portrait; height: clamp(56px, 12dvh, 110px); }
  .handshake-pixel-control { grid-area: shifter; }
  .handshake-figure-control { grid-area: figure; }
  .handshake-step { padding: 6px 5px; }
  .handshake-step h3 { margin-bottom: 7px; }
  .handshake-step .handshake-value-prompt { margin: -1px auto 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .handshake-rings::before, .handshake-rings::after, .handshake-wire { transition: none; }
}

.handshake-flow-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 23px;
  color: #4f5551;
  font-size: 22px;
  line-height: 1;
}
.handshake-values {
  display: grid;
  width: min(100%, 294px);
  gap: 4px;
  margin: 0 auto 10px;
}
.handshake-value-pair {
  --key-size: 49px;
  --case-tint: color-mix(in srgb, var(--lamp) 35%, var(--value-tone));
  --well-dark: color-mix(in srgb, var(--case-tint) 42%, #4a5352);
  --well-light: color-mix(in srgb, var(--case-tint) 27%, #f4f6f5);
  position: relative;
  isolation: isolate;
  display: grid;
  --gate-gap: 24px;
  grid-template-columns: minmax(0, 1fr) var(--gate-gap) minmax(0, 1fr);
}
.handshake-value-pair[data-channel="B"] { --lamp: #76d7ff; }
.handshake-value-pair[data-channel="G"] { --lamp: #8fe7a0; }
.handshake-value-pair[data-channel="R"] { --lamp: #ff7772; }
.handshake-value-pair::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(2 * var(--key-size) + var(--gate-gap) + 10px);
  height: calc(var(--key-size) + 8px);
  translate: -50% -50%;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--case-tint), color-mix(in srgb, var(--case-tint) 73%, #26302e));
  box-shadow: inset 0 0 0 1px #26302e33, inset 0 1px 0 #ffffff7a, 0 1px 1px #fff;
  content: "";
  pointer-events: none;
}
#intent-gate .handshake-value-pair button {
  position: relative;
  min-width: 0;
  min-height: calc(var(--key-size) + 8px);
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
}
#intent-gate .handshake-value-pair button:hover { background: transparent; }
#intent-gate .handshake-value-pair button:hover span {
  color: color-mix(in srgb, var(--value-tone) 48%, #26302e);
}
#intent-gate .handshake-value-pair button:first-child { padding-right: calc(var(--key-size) + 9px); text-align: right; }
#intent-gate .handshake-value-pair button:last-of-type { grid-column: 3; grid-row: 1; padding-left: calc(var(--key-size) + 9px); text-align: left; }
#intent-gate .handshake-value-pair button[aria-pressed="true"] span { font-weight: 650; }
#intent-gate .handshake-value-pair button:focus-visible { z-index: 2; }
.handshake-value-pair button i {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--key-size);
  height: var(--key-size);
  translate: 0 -50%;
  border-radius: 9px;
  background: linear-gradient(#fff2, #0002), var(--well);
  box-shadow: inset 0 1px 1px #fff6, 0 1px 1px #101d18;
  transition: translate 150ms ease;
  pointer-events: none;
}
.handshake-value-pair button:first-child i { --well: var(--well-dark); right: 2px; }
.handshake-value-pair button:last-of-type i { --well: var(--well-light); left: 2px; }
.handshake-value-pair button i::before {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(165deg, #18231f72, transparent 47%, #fff6), var(--well);
  box-shadow: inset 0 1px 2px #17292366, 0 1px 0 #fff4;
  content: "";
}
.handshake-value-pair button b {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #343a3899;
  box-shadow: inset 0 1px 2px #17231f5c, 0 1px 0 #ffffff45;
}
.handshake-value-pair button[aria-pressed="true"] b {
  background: var(--lamp);
  box-shadow: 0 0 2px 1px var(--lamp), 0 0 10px 4px color-mix(in srgb, var(--lamp) 70%, transparent);
}
.handshake-value-pair button:active i { translate: 0 calc(-50% + 1px); }
#intent-gate button:disabled { opacity: .42; cursor: default; }
.handshake-fit-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(100%, 206px);
  margin-inline: auto;
}
.handshake-fit-scale > span:first-child { text-align: right; }
.handshake-fit-scale > span:last-child { text-align: left; }
.handshake-fit-eye {
  display: block;
  width: 48px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.handshake-fit-eye path { transform-origin: center; }
.handshake-fit-lids { transform: scaleY(calc(1 - .105 * var(--fit-depth, 0))); }
.handshake-fit-i { transform: scaleY(calc(1 - .08 * var(--fit-depth, 0))); }
@media (max-width: 700px) {
  .handshake-values { margin-bottom: 6px; }
  .handshake-value-pair { --key-size: 38px; }
  .handshake-value-pair button b { width: 8px; height: 8px; }
  .handshake-fit { margin-bottom: 3px; }
  .handshake-fit-eye { height: 24px; }
  .handshake-navigation { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .handshake-bridge.is-selected .handshake-energy { display: none; }
  .handshake-value-pair button i { transition: none; }
  #intent-gate.handshake-dialog[open] { animation: none; }
}


.h101-pixel.is-handshake-guided {
  outline: 2px solid #ff6a12;
  outline-offset: 4px;
}

.h101-pixel.is-handshake-guided::after {
  content: "Tap a pixel";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 6px;
  color: #552d17;
  background: #fff6eb;
  border: 1px solid #e8b992;
  font: 650 12px/1.2 var(--sans);
  pointer-events: none;
}

#intent-gate:is([data-demo-stage="pair"], [data-demo-stage="send-preview"], [data-demo-stage="patreon"]) {
  width: min(370px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100dvh - 24px);
}

#intent-gate:is([data-demo-stage="pair"], [data-demo-stage="send-preview"], [data-demo-stage="patreon"]) .handshake-stage {
  display: block;
  margin: 0;
  padding: 4px 16px 20px;
}

#intent-gate:is([data-demo-stage="pair"], [data-demo-stage="send-preview"], [data-demo-stage="patreon"]) :is(.handshake-person, .handshake-bridges, .handshake-rings) {
  display: none;
}

.handshake-demo-pair {
  --pair-color: #8b908a;
  display: grid;
  grid-template-columns: 70px minmax(22px, 66px) 70px;
  justify-content: center;
  align-items: start;
  margin: 14px auto 10px;
  gap: 5px;
}

.handshake-demo-pair[data-type="rise"] { --pair-color: #207d9d; }
.handshake-demo-pair[data-type="polarity"] { --pair-color: #338453; }
.handshake-demo-pair[data-type="rest"] { --pair-color: #b94c39; }
.handshake-pair-side { display: grid; justify-items: center; gap: 3px; font-size: 13px; }
.handshake-pair-side i { width: 29px; height: 29px; margin-bottom: 4px; border: 1px dashed #68746e; border-radius: 3px; }
.handshake-pair-side i[data-state="ON"] { background: #fff; border: 1px solid #212823; }
.handshake-pair-side i[data-state="OFF"] { background: #181d19; border: 1px solid #212823; }
.handshake-pair-side small { font-size: 11px; }
.handshake-pair-line { margin-top: 14px; border-top: 2px dashed var(--pair-color); }
.handshake-step .handshake-pair-type { font-weight: 650; }
.handshake-demo-options { max-width: 168px; margin: 12px auto 0; }
.handshake-draft { padding-top: 8px; border-top: 1px solid #26352e1c; }
.handshake-membership-actions { flex-wrap: wrap; }

#intent-gate a.handshake-primary {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 13px;
  text-decoration: none;
  font-size: 14px;
  flex: 1 0 auto;
}

#intent-gate a.handshake-primary:focus-visible { outline: 2px solid var(--connection-focus); outline-offset: 2px; }

/* The character stays above its controls. Pixel and figure remain independent. */
.handshake-person { align-self: stretch; grid-template-rows: auto 1fr auto; gap: 12px; padding-block: 16px 8px; }
.handshake-portrait { align-self: center; height: clamp(150px, 25dvh, 214px); width: 100px; }
.handshake-rings { bottom: 116px; }
.handshake-person-dock { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 10px; }
.handshake-pixel-control { display: grid; justify-items: center; }
.handshake-figure-control { display: grid; grid-template-columns: 52px; gap: 6px; }
#intent-gate .handshake-figure-control button { position: relative; width: 52px; height: 52px; padding: 0; overflow: hidden; border: 1px solid #b8c0b980; border-radius: 14px; background: linear-gradient(145deg,#ffffffd9,#e9ece5a8); box-shadow: inset 0 1px 0 #fff, 0 2px 4px #3943360a; }
#intent-gate .handshake-figure-control button:hover { border-color: #d79557; background: #fff; }
#intent-gate .handshake-figure-control button[aria-pressed="true"] { border-color: #eaa36a; background: radial-gradient(ellipse at center,#ffe9d39c,#fff 78%); box-shadow: inset 0 0 0 1px #ffdbb67a, 0 2px 6px #b7702820; }
#intent-gate .handshake-figure-control img { position: absolute; width: auto; height: 54px; max-width: none; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: brightness(0) opacity(.75); pointer-events: none; }
.handshake-control-key summary { list-style: none; display: grid; place-items: center; min-height: 36px; padding: 0 10px; border-radius: 10px; }
.handshake-control-key summary::-webkit-details-marker { display: none; }
.handshake-control-key summary:hover { background: #fff9; }
.handshake-alphabet { display: flex; align-items: center; gap: 13px; color: #677168; }
.handshake-alphabet > span { display: flex; gap: 5px; align-items: center; }
.handshake-alphabet i { display: block; width: 12px; height: 12px; border: 1px solid #59635d; border-radius: 2px; background: #fff; }
.alphabet-fill i:first-child { background: #313932; }
.alphabet-shape i:last-child { border-radius: 50%; }
.handshake-alphabet b { font-weight: 400; font-size: 14px; opacity: .5; }
.handshake-alphabet svg { width: 20px; height: 25px; fill: #677168; }
.handshake-status { height: 64px; padding: 6px 16px 10px; }
@media (max-width:700px) {
  #intent-gate.handshake-dialog { inset: auto 0 4px; height: min(740px,calc(100dvh - 8px)); }
  .handshake-step .handshake-value-prompt { display: none; }
  .handshake-stage { grid-template-areas: none; grid-template-rows: auto minmax(82px,1fr) auto auto; align-content: stretch; align-items: center; gap: 4px 12px; padding: 4px 8px; margin: 0 5px 4px; min-height: calc(100% - 4px); }
  .handshake-person, .handshake-person[data-person="otherFigure"] { display: contents; }
  .handshake-person-label { grid-area: 1 / 1; }
  .handshake-person[data-person="otherFigure"] .handshake-person-label { grid-column: 2; }
  .handshake-portrait { grid-area: 2 / 1; justify-self: center; width: 78px; height: clamp(82px, 13dvh, 116px); }
  .handshake-person[data-person="otherFigure"] .handshake-portrait { grid-column: 2; }
  .handshake-person-dock { grid-area: 4 / 1; justify-self: center; width: 100%; gap: 7px; padding-top: 7px; }
  .handshake-person[data-person="otherFigure"] .handshake-person-dock { grid-column: 2; }
  .handshake-step { grid-area: 3 / 1 / auto / -1; padding: 4px 5px; }
  .handshake-figure-control { gap: 4px; }
  .handshake-status { height: 46px; padding: 3px 12px 5px; }
  .handshake-person-label { justify-self: center; }
  .handshake-person-label small { font-size: 10px; }
}
@media (max-width:700px) and (max-height:700px) {
  .handshake-stage { gap: 0 8px; padding-block: 0; margin-bottom: 0; }
  .handshake-portrait { height: 104px; }
  .handshake-step { padding-block: 2px; }
  .handshake-step h3 { font-size: 19px; }
  .handshake-person-dock { padding-top: 4px; }
  .handshake-status { height: 40px; font-size: 11px; gap: 0; }
  .handshake-status strong { font-size: 12px; }
}
@media (min-width:701px) and (max-height:700px) {
  .handshake-status { height: 48px; padding-block: 4px; }
  .handshake-step h3 { font-size: 20px; }
  .handshake-value-pair { --key-size: 44px; }
  .handshake-portrait { height: 150px; }
  .handshake-person { padding-block: 8px 4px; gap: 8px; }
}

@media (max-width:360px) {
  .handshake-person-dock { flex-direction: column; gap: 6px; }
  .handshake-figure-control { grid-template-columns: repeat(2,52px); }
}
/* Receiving and offering turn independently at each colored center. */
.handshake-bridge .handshake-center .center-square,
.handshake-bridge .handshake-center .center-dot { fill: currentColor; stroke: #fff; stroke-width: 1.4; }
.handshake-bridge .handshake-center .center-orbit path { mask: none; stroke: currentColor; stroke-width: 1; fill: none; opacity: .8; }
.handshake-bridge .handshake-center .center-orbit circle { fill: currentColor; stroke: none; }
.handshake-center[data-shape="square"] :is(.center-dot,.center-orbit),
.handshake-center[data-shape="circle"] .center-square { display: none; }
.handshake-center .center-orbit { transform-box: view-box; transform-origin: 0 0; animation: center-orbit 6s linear infinite; }
.handshake-center[data-tone="black"] .center-orbit { animation-direction: reverse; }
@keyframes center-orbit { to { transform: rotate(360deg); } }
.handshake-rings::before,.handshake-rings::after {
  inset-block: auto; top: 50%; width: calc(var(--lens-diameter,300px) * (1 - .095 * var(--fit-depth,0)));
  height: calc(var(--lens-diameter,300px) * (1 - .095 * var(--fit-depth,0)));
  translate: -50% -50%; border-radius: 50%;
  transition: transform 560ms ease, width 520ms ease, height 520ms ease, background-color 460ms ease;
}
.handshake-rings::after { translate: 50% -50%; }
.handshake-person[data-person="otherFigure"] .handshake-person-dock { flex-direction: row-reverse; }
.handshake-person[data-person="otherFigure"] .handshake-person-label::before { content: '↔'; position: absolute; margin-left: -18px; color: #cf874b; font-size: 14px; }
.handshake-person-label { position: relative; }
#connection-key-pixel { position: absolute; z-index: 90; top: calc(var(--connection-key-top,24px) + 56px); left: 28px; display: grid; justify-items: center; gap: 6px; width: 48px; min-height: 52px; padding: 4px; border: 0; background: transparent; cursor: grab; touch-action: none; color: #536052; opacity: 0; pointer-events: none; }
.is-main-loaded #connection-key-pixel { opacity: 1; pointer-events: auto; transition: opacity .5s ease; }
#connection-key-pixel[hidden] { display: none; }
#connection-key-pixel span { font: 500 10px/1.2 var(--sans); }
#connection-key-pixel i,.connection-key-ghost { display: block; width: 22px; height: 22px; border: 1px solid #252b27; border-radius: 2px; background: #fff; box-shadow: 0 0 0 4px #f5a15224,0 3px 9px #28302720; }
#connection-key-pixel[data-tone="black"] i,.connection-key-ghost[data-tone="black"] { background: #202421; }
#connection-key-pixel[data-shape="circle"] i,.connection-key-ghost[data-shape="circle"] { border-radius: 50%; }
.connection-key-ghost { position: fixed; z-index: 600; pointer-events: none; translate: -50% -50%; }
.h101-pixel:is(.is-key-fit,.is-key-unavailable,.is-key-returning) { translate: var(--key-dx,0px) var(--key-dy,0px); transition: translate .24s ease,opacity .3s ease,box-shadow .3s ease; }
.h101-pixel.is-key-unavailable { opacity: .18!important; }
.h101-pixel.is-key-fit { outline: 1px solid #eea05e; outline-offset: 4px; }
.h101-pixel.is-key-nearest { outline: 2px solid #ff8a32; outline-offset: 6px; box-shadow: 0 0 16px #ffb97080; z-index: 8; }
.connection-drag-hint { position: absolute; z-index: 95; top: 154px; left: 50%; translate: -50% 0; max-width: calc(100% - 120px); padding: 9px 14px; border-radius: 16px; background: #ffffffd9; backdrop-filter: blur(12px); color: #445047; font: 500 13px/1.4 var(--sans); opacity: 0; pointer-events: none; transition: opacity .3s ease; text-align: center; }
.connection-drag-hint.is-visible { opacity: 1; }
.app-shell[data-mode="coincidence"] #connection-key-pixel { display: none; }
.preview-send i { transition: background-color .4s ease,border-color .4s ease; }
@media(max-width:700px) { #connection-key-pixel { left: 18px; } .connection-drag-hint { top: 182px; font-size: 12px; max-width: calc(100% - 100px); } }
@media(max-width:360px) { .handshake-person[data-person="otherFigure"] .handshake-person-dock { flex-direction: column; } }
@media(prefers-reduced-motion:reduce) { .handshake-center .center-orbit { animation: none; } .h101-pixel:is(.is-key-fit,.is-key-unavailable,.is-key-returning) { transition: none; } }

.app-shell[data-view="meta"] #connection-key-pixel { display: none; }

/* Fit results stay inside the reserved footer, alongside the deliberate next action. */
#intent-gate[data-fit="matched"] .handshake-status {
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  text-align: left;
  justify-items: start;
}
#intent-gate[data-fit="matched"] .handshake-status strong { grid-area: 1 / 1; }
#intent-gate[data-fit="matched"] .handshake-status > span { grid-area: 2 / 1; font-size: 11px; }
#intent-gate[data-fit="matched"] .handshake-result-open { grid-area: 1 / 2 / 3; align-self: center; }
@media(max-width:700px) {
  #intent-gate[data-fit="matched"] .handshake-status { height: 60px; padding: 5px 14px; }
  #intent-gate[data-fit="matched"] .handshake-portrait { height: 82px; }
}
/* Pickup reveals matches; approaching one makes a quiet landing space. */
#connection-key-pixel[aria-pressed="true"] { cursor: grabbing; }
#connection-key-pixel[aria-pressed="true"] i { box-shadow: 0 0 0 6px #ff922a30,0 0 18px #ffad5b40; }
.h101-pixel:is(.is-key-fit,.is-key-unavailable,.is-key-returning) {
  transition: translate .44s cubic-bezier(.2,.8,.2,1), opacity .35s ease, filter .35s ease, box-shadow .35s ease, outline-color .3s ease;
}
.h101-pixel.is-key-fit { opacity: 1!important; outline: 2px solid #f19a4c; outline-offset: 6px; box-shadow: 0 0 0 5px #fff9,0 0 24px #ffab5740; }
.h101-pixel.is-key-unavailable { opacity: .15!important; filter: blur(.6px); }
.is-key-isolating .h101-pixel.is-key-fit:not(.is-key-nearest) { opacity: .36!important; outline-color: #edaf7760; box-shadow: none; }
.is-key-isolating .h101-pixel.is-key-unavailable { opacity: .08!important; }
.h101-pixel.is-key-nearest { opacity: 1!important; outline: 2px solid #ff872a; outline-offset: 7px; box-shadow: 0 0 0 6px #fff,0 0 28px #ff9d4c75; z-index: 20; }
.connection-key-ghost { width: 26px; height: 26px; z-index: 602; box-shadow: 0 0 0 5px #ffffff90,0 5px 18px #24282735; transition: box-shadow .25s ease; }
.connection-key-ghost.is-docking { box-shadow: 0 0 0 6px #ffb37650,0 4px 15px #24282730; }
.connection-key-ghost.is-landing { transition: left .22s cubic-bezier(.2,.7,.2,1),top .22s cubic-bezier(.2,.7,.2,1),opacity .22s ease; opacity: .55; }
.connection-drop-target { position: fixed; z-index: 601; width: 76px; height: 76px; translate: -50% -50%; pointer-events: none; opacity: 0; scale: .86; transition: opacity .2s ease,scale .28s cubic-bezier(.2,.8,.2,1); }
.connection-drop-target.is-visible { opacity: 1; scale: 1; }
.connection-drop-target > i { position: absolute; inset: 0; border: 1.5px solid #ff8b33; border-radius: 18px; background: radial-gradient(transparent 40%,#fff7 75%); box-shadow: 0 0 0 7px #fff6,0 8px 28px #d87a2620; }
.connection-drop-target[data-shape="circle"] > i { border-radius: 50%; }
.connection-drop-target > span { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; white-space: nowrap; padding: 7px 12px; border: 1px solid #ffe0bd; border-radius: 14px; background: #fffc; backdrop-filter: blur(10px); font: 600 12px/1.3 var(--sans); color: #754516; box-shadow: 0 3px 12px #54331b0c; }
@media(pointer:coarse) { .connection-drop-target { width: 86px; height: 86px; } }
@media(prefers-reduced-motion:reduce) { .connection-drop-target,.connection-key-ghost,.h101-pixel:is(.is-key-fit,.is-key-unavailable,.is-key-returning) { transition: none!important; } }

.h101-marker-wrap:has(.is-key-fit) { z-index: 1100!important; }
.h101-marker-wrap:has(.is-key-nearest) { z-index: 1200!important; }

/* Let the two lenses remain visible, with each control moving its own side. */
.handshake-step { background: transparent; }
.handshake-rings { z-index: 0; }
.handshake-person,.handshake-step { z-index: 1; }
.handshake-rings::before { border-color: #df914dc9; }
.handshake-rings::after { border-color: #df914dc9; transform: translateX(var(--other-lens-shift,0px)); }
#intent-gate .handshake-rings::before { transform: translateX(var(--self-lens-shift,0px)); }
.handshake-center[data-tone="white"] .center-orbit path { transform: scaleX(-1); }
.handshake-center[data-tone="white"] .center-orbit circle { fill: #fff; stroke: currentColor; stroke-width: 1.4; }
.handshake-center[data-tone="black"] .center-orbit circle { fill: #202421; stroke: currentColor; stroke-width: 1.4; }
.handshake-center[data-tone="white"] .center-dot { fill: #fff; stroke: currentColor; stroke-width: 1.6; }
.handshake-center[data-tone="black"] .center-dot { fill: #202421; stroke: currentColor; stroke-width: 1.6; }
@media(max-width:700px) {
 .handshake-step .handshake-value-prompt { display: block; font-size: 12px; line-height: 1.3; margin: -1px auto 8px; max-width: 265px; }
 .handshake-portrait { height: 82px; }
}
.is-key-isolating .connection-drag-hint { opacity: 0; }
#connection-key-pixel:focus-visible { outline: 1px solid #ed9b50; outline-offset: 3px; border-radius: 16px; }
.handshake-rings { inset-inline: 0; }
.handshake-rings::before { left: 32%; }
.handshake-rings::after { right: 32%; }
@media(max-width:700px) {
 .handshake-rings::before { left: 43%; }
 .handshake-rings::after { right: 43%; transform: translateX(clamp(-18px,var(--other-lens-shift,0px),18px)); }
 #intent-gate .handshake-rings::before { transform: translateX(clamp(-18px,var(--self-lens-shift,0px),18px)); }
}@media(max-width:700px) and (max-height:700px) {
 .handshake-person-dock { padding-top: 0; }
 .handshake-step h3 { margin-bottom: 5px; }
 .handshake-step .handshake-value-prompt { margin-bottom: 4px; }
}
.handshake-bridges { z-index: 2; }
.handshake-step { z-index: 3; }
.invitation-meeting{display:flex;align-items:center;justify-content:center;gap:20px;padding:8px 0;min-height:48px}
.meeting-pixel{width:26px;height:26px;border:1px solid #535b56;border-radius:2px;background:#fff;animation:invitation-arrive .85s cubic-bezier(.2,.7,.2,1) both}
.meeting-pixel[data-state="0"]{background:#171b18}
.meeting-pixel:last-child{--entry:32px}
.meeting-pixel:first-child{--entry:-32px}
.invitation-meeting b{font-weight:400;color:#e88840}
.is-accepted .meeting-pixel{box-shadow:0 0 14px #ef9e5c55}
@keyframes invitation-arrive{from{opacity:0;transform:translateX(var(--entry))}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.meeting-pixel{animation:none}}

.connection-drag-hint.has-no-fits {
  color: #8f451d;
  background: #fff3e8f5;
  box-shadow: inset 0 0 0 1px #b85d3233;
}

@media (prefers-reduced-motion: no-preference) {
  .connection-drag-hint.is-visible.has-no-fits {
    animation: no-mutual-fits-settle 360ms ease-out both;
  }
}

@keyframes no-mutual-fits-settle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

.handshake-status:has(.handshake-control-key[open]) {
  height: auto;
  padding-bottom: 12px;
}
.handshake-control-key[open] {
  position: static;
  width: min(100%, 420px);
  padding: 0;
  background: #fafbf8;
}
.handshake-control-explainer {
  padding: 6px 14px 12px;
  text-align: left;
  font-size: 13px;
}
.handshake-control-explainer ol {
  margin: 6px 0 0;
  padding-inline-start: 20px;
}
.handshake-control-explainer li + li { margin-top: 4px; }
.handshake-alphabet .alphabet-figures { gap: 2px; }
.alphabet-figures img {
  width: 19px;
  height: 26px;
  object-fit: cover;
  filter: brightness(0) opacity(.68);
}

.handshake-wire {
  stroke-width: 5px;
  stroke-dasharray: none;
  opacity: .24;
}
.handshake-bridge.is-selected .handshake-wire {
  stroke-width: 9px;
  opacity: .46;
}
.handshake-energy {
  stroke-width: 4px;
  stroke-dasharray: 12 88;
  filter: drop-shadow(0 0 3px currentColor);
}

.handshake-stage { box-sizing: border-box; }
#intent-gate:has(.handshake-control-key[open]) .handshake-content { scrollbar-width: none; }
@media (max-width: 700px) {
  #intent-gate:has(.handshake-control-key[open]) .handshake-portrait { height: 76px; }
  #intent-gate:has(.handshake-control-key[open]) .handshake-stage {
    grid-template-rows: auto minmax(76px, 1fr) auto auto;
  }
  .handshake-control-explainer { padding-block: 0 8px; }
}

#intent-gate.handshake-dialog:has(.handshake-control-key[open]) {
  height: auto;
  max-height: calc(100dvh - 24px);
  grid-template-rows: auto auto auto;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
#intent-gate:has(.handshake-control-key[open]) .handshake-content {
  overflow: visible;
}
#intent-gate:has(.handshake-control-key[open]) .handshake-stage {
  min-height: 0;
}

@media (max-width: 700px) {
  /* Put each person's controls beside their portrait to free a row for the key. */
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) {
    --compact-stop: 34px;
    --compact-dock: calc(2 * var(--compact-stop) + 2px);
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 3px 10px;
    margin-block-end: 0;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-portrait {
    width: min(64px, calc(100% - var(--compact-dock) - 6px));
    height: 84px;
    justify-self: start;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) [data-person="otherFigure"] .handshake-portrait {
    justify-self: end;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-person-dock {
    grid-row: 2;
    justify-self: end;
    width: var(--compact-dock);
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) [data-person="otherFigure"] .handshake-person-dock {
    justify-self: start;
    flex-direction: column;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-shifter {
    --stop: var(--compact-stop);
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-figure-control {
    grid-template-columns: repeat(2, var(--compact-stop));
    gap: 2px;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-figure-control button {
    width: var(--compact-stop);
    height: var(--compact-stop);
    min-height: var(--compact-stop);
    border-radius: 9px;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-figure-control img { height: 35px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-step { padding-block: 1px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-step h3 { margin-bottom: 4px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-value-prompt { margin-bottom: 3px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-value-pair { --key-size: 32px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-match-choice button { min-height: 36px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-navigation { margin-top: 4px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-status { padding: 4px 10px 8px; }
  #intent-gate .handshake-control-key[open] summary { min-height: 30px; }
  .handshake-control-explainer { line-height: 1.3; }
  .handshake-control-explainer ol { margin-top: 3px; }
  .handshake-control-explainer li + li { margin-top: 2px; }
  .handshake-control-explainer p { margin-top: 4px; line-height: inherit; }
}

@media (max-width: 700px) {
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-shifter button {
    min-height: 0;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-shifter-knob {
    inset: 4px auto auto 4px;
    width: calc(var(--compact-stop) - 8px);
    height: calc(var(--compact-stop) - 8px);
  }
}
@media (max-width: 700px) and (max-height: 620px) {
  #intent-gate.handshake-dialog:is(:has(.handshake-control-key[open]), .is-short-review) {
    --compact-stop: 30px;
    --compact-dock: calc(3 * var(--compact-stop) + 4px);
    max-height: calc(100dvh - 8px);
  }
  #intent-gate:has(.handshake-control-key[open], .handshake-values) .handshake-header { padding-block: 0; }
  #intent-gate:has(.handshake-control-key[open], .handshake-values) .intent-close { min-height: 36px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-stage { gap: 2px 6px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-portrait { height: 64px; min-width: 34px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-person-dock {
    flex-direction: row;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) [data-person="otherFigure"] .handshake-person-dock {
    flex-direction: row-reverse;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-figure-control {
    grid-template-columns: var(--compact-stop);
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-value-prompt { display: none; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-value-pair { --key-size: 28px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-values { gap: 2px; margin-bottom: 3px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-primary { min-height: 38px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-status { padding: 2px 8px 6px; }
  .handshake-control-explainer { padding-inline: 9px; }
}

@media (max-width: 700px) and (621px <= height <= 690px) {
  #intent-gate.handshake-dialog:has(.handshake-control-key[open]) {
    max-height: calc(100dvh - 8px);
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-stage { row-gap: 2px; }
}

/* The same animated geometry drives the outlines and their exact intersection. */
@property --ring-radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 150px;
}
@property --ring-left-center {
  syntax: "<length>";
  inherits: true;
  initial-value: 175px;
}
@property --ring-right-inset {
  syntax: "<length>";
  inherits: true;
  initial-value: 175px;
}
@property --ring-y-center {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 50%;
}
.handshake-rings {
  inset: 0;
  --ring-y-center: var(--lens-center-y, 50%);
  --ring-radius: calc(var(--lens-diameter, 300px) * (1 - .065 * var(--fit-depth, 0)) / 2);
  --ring-left-center: calc(var(--lens-center, 175px) + clamp(calc(-1 * var(--lens-swing, 32px)), var(--self-lens-shift, 0px), var(--lens-swing, 32px)));
  --ring-right-inset: calc(var(--lens-center, 175px) - clamp(calc(-1 * var(--lens-swing, 32px)), var(--other-lens-shift, 0px), var(--lens-swing, 32px)));
  transition: --ring-radius .52s ease, --ring-left-center .56s ease, --ring-right-inset .56s ease, --ring-y-center .52s ease;
}
#intent-gate .handshake-stage .handshake-rings::before,
#intent-gate .handshake-stage .handshake-rings::after {
  top: var(--ring-y-center);
  width: calc(2 * var(--ring-radius));
  height: calc(2 * var(--ring-radius));
  background: radial-gradient(circle,
    color-mix(in srgb, var(--ring-light) var(--lens-opacity, 11%), transparent),
    color-mix(in srgb, var(--ring-light) calc(var(--lens-opacity, 11%) * .55), transparent));
  border-color: #a9886a99;
  box-shadow: inset 0 0 0 1px #ffffff6b;
  transition: none;
  transform: none;
}
#intent-gate .handshake-stage .handshake-rings::before {
  --ring-light: var(--self-lens-light, #c5d7e0);
  left: var(--ring-left-center);
}
#intent-gate .handshake-stage .handshake-rings::after {
  --ring-light: var(--other-lens-light, #d0d8cd);
  right: var(--ring-right-inset);
}
.handshake-ring-mix {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb,
    color-mix(in srgb, var(--self-lens-light, #c5d7e0), var(--other-lens-light, #d0d8cd)) var(--overlap-opacity, 12%),
    transparent);
  mask-image:
    radial-gradient(circle at var(--ring-left-center) var(--ring-y-center), #000 calc(var(--ring-radius) - 1px), transparent var(--ring-radius)),
    radial-gradient(circle at calc(100% - var(--ring-right-inset)) var(--ring-y-center), #000 calc(var(--ring-radius) - 1px), transparent var(--ring-radius));
  mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) {
  .handshake-rings { transition: none; }
}
#intent-gate .handshake-person[data-person="otherFigure"] .handshake-portrait {
  outline: 1px dashed #b77e519c;
  outline-offset: 4px;
  border-radius: 18px;
}
#intent-gate .handshake-person[data-person="otherFigure"] .handshake-portrait img {
  opacity: .78;
}
@media (min-width: 701px) {
  #intent-gate.handshake-dialog {
    width: min(920px, calc(100vw - 32px));
    height: min(770px, calc(100dvh - 32px));
  }
  .handshake-stage { margin: 0 15px 10px; padding: 10px 22px; gap: 12px; }
}
@media (max-width: 700px) {
  #intent-gate.handshake-dialog { height: calc(100dvh - 12px); }
  #intent-gate .handshake-rings::before { left: 43%; }
  #intent-gate .handshake-rings::after { right: 43%; }
  #intent-gate .handshake-person[data-person="otherFigure"] .handshake-portrait {
    outline-offset: 1px;
  }
}

@media (min-width: 701px) {
  .handshake-person {
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .handshake-person-label { align-self: end; }
  .handshake-person-dock { align-self: end; }
}

.handshake-value-instructions {
  margin: 0 auto 10px;
  width: fit-content;
  padding-inline-start: 16px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: #47564c;
}
.handshake-step:has(.handshake-values) h3 { margin-bottom: 6px; }
.handshake-fit-eye { height: 22px; }
.handshake-fit-lids { transition: transform .35s ease; }
.handshake-invitation-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 5px;
}
.handshake-invitation-values:empty { display: none; }
.handshake-invitation-values > span {
  border-bottom: 2px solid var(--value-tone);
  font-size: 11px;
  animation: handshake-center-in .45s ease calc(var(--release-delay, 0ms) + 3.5s) both;
}
.handshake-alphabet > .alphabet-group {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 36px;
}
.alphabet-group > span {
  display: flex;
  align-items: center;
  min-height: 24px;
  gap: 4px;
}
.alphabet-group small {
  width: 100%;
  border: 1px solid #8b998d80;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  font-size: 10px;
  line-height: 12px;
}
#intent-gate[data-fit] .handshake-status { height: auto; }
#intent-gate .handshake-status .handshake-fit-result { font-size: 16px; }
@media (min-width: 701px) {
  .handshake-step:has(.handshake-values) { align-self: center; translate: 0 -24px; }
}
@media (max-width: 700px) {
  .handshake-value-instructions { margin-bottom: 5px; font-size: 11px; line-height: 1.25; }
  .handshake-step:has(.handshake-values) h3 { margin-bottom: 3px; }
  .handshake-fit-eye { height: 19px; }
  .handshake-status { min-height: 46px; }
  #intent-gate .handshake-control-key[open] summary { min-height: 42px; }
}
@media (max-width: 700px) and (max-height: 690px) {
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-value-instructions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px 14px;
    padding-inline-start: 10px;
    margin-bottom: 3px;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-fit-eye { height: 15px; }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-portrait { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-expected] .handshake-response-lamp,
  .handshake-invitation-values > span { animation: none; opacity: 1; }
}

@media (max-width: 700px) and (max-height: 620px) {
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-step:has(.handshake-values) {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 2px 5px;
  }
  .handshake-step:has(.handshake-values) :is(h3, .handshake-value-instructions, .handshake-values, .handshake-navigation) {
    grid-column: 1 / -1;
  }
  #intent-gate:is(:has(.handshake-control-key[open]), .is-short-review) .handshake-fit { margin: 0; }
  #intent-gate .handshake-fit-scale { gap: 3px; font-size: 10px; }
  #intent-gate .handshake-fit-eye { width: 24px; }
  #intent-gate .handshake-match-choice button { min-height: 32px; padding-inline: 1px; }
  #intent-gate .handshake-value-instructions { margin-block: 0 2px; }
  #intent-gate .handshake-control-key[open] summary { min-height: 38px; }
  .handshake-control-explainer { font-size: 12px; padding-bottom: 5px; }
}

@media (max-width: 700px) and (max-height: 620px) {
  #intent-gate .handshake-content .handshake-step:has(.handshake-values) h3 { margin-block: 0; }
  #intent-gate .handshake-step:has(.handshake-values) .handshake-navigation { margin-top: 1px; }
  #intent-gate:has(.handshake-control-key[open]) .handshake-status { padding-bottom: 3px; }
}

.handshake-pathway {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-inline: auto;
  color: #718076;
  font-size: 12px;
  white-space: nowrap;
}
.handshake-pathway strong { color: #283a31; font-weight: 650; }
.handshake-pathway > span:last-child { opacity: .72; }
#intent-gate[data-fit="accepted"] .handshake-pathway > span:last-child {
  color: #283a31;
  opacity: 1;
  font-weight: 650;
}

.handshake-bridge .handshake-feed,
.handshake-bridge .handshake-chevron {
  opacity: 0;
  transition: opacity .4s ease;
}
.handshake-bridge .handshake-feed { stroke-width: 32px; }
.handshake-bridge .handshake-chevron { stroke-width: 2px; stroke-linejoin: round; }
.handshake-bridge.is-selected .handshake-feed { opacity: .17; }

.handshake-value-pair button[aria-pressed="true"] i {
  background: radial-gradient(circle at 50% 42%, var(--lamp), color-mix(in srgb, var(--lamp) 56%, var(--value-tone)) 76%);
}
.handshake-value-pair button[aria-pressed="true"] i::before { opacity: .45; }

#intent-gate .handshake-status:has(.handshake-footer-actions) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 4px;
}
#intent-gate .handshake-status:has(.handshake-footer-actions) .handshake-control-key { justify-self: stretch; }
#intent-gate .handshake-keep {
  align-self: start;
  border-color: #d9c3ae;
  background: #faf6f1;
  border-radius: 8px;
  min-height: 32px;
  padding: 4px 8px;
  margin-top: 4px;
  font-size: 11px;
  white-space: nowrap;
}
#intent-gate .handshake-keep:disabled { visibility: hidden; }
#intent-gate .handshake-control-key[open] + .handshake-footer-actions {
  align-self: start;
}

@media (min-width: 701px) {
  #intent-gate .handshake-step:has(.handshake-values) {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 164px;
    translate: none;
  }
  .handshake-step:has(.handshake-values) .handshake-fit {
    position: absolute;
    inset: auto 0 47px;
    margin: 0;
  }
  #intent-gate .handshake-status:has(.handshake-footer-actions) {
    grid-template-columns: 1fr minmax(200px, 420px) 1fr;
  }
  #intent-gate .handshake-status:has(.handshake-footer-actions) .handshake-control-key { grid-column: 2; }
}
@media (max-width: 700px) {
  .handshake-pathway { font-size: 10px; gap: 4px; }
  .handshake-bridge .handshake-feed { stroke-width: 13px; }
  .handshake-bridge .handshake-chevron { stroke-width: 1.5px; }
  #intent-gate .handshake-status:has(.handshake-control-key[open]) { grid-template-columns: minmax(0, 1fr); }
  #intent-gate .handshake-control-key[open] + .handshake-footer-actions {
    position: absolute;
    top: 1px;
    right: 12px;
    margin: 0;
  }
  #intent-gate .handshake-status:has(.handshake-keep) .handshake-control-key[open] summary { padding-inline-end: 82px; }
}
@media (max-width: 700px) and (max-height: 620px) {
  #intent-gate .handshake-step:has(.handshake-values) .handshake-match-choice { grid-column: 2; grid-row: 4; }
  #intent-gate .handshake-step:has(.handshake-values) .handshake-fit { grid-column: 1; grid-row: 4; }
}

/* Preview the right lanes in graphite before the selected match rule releases light. */
.handshake-bridge .handshake-outbound,
.handshake-bridge .handshake-chevron {
  stroke: #89968e;
  opacity: .48;
}
.handshake-bridge .handshake-outbound { stroke-width: 1.2px; }
.handshake-bridge.is-aligned :is(.handshake-outbound, .handshake-chevron) {
  animation: handshake-lane-on .45s ease var(--release-delay, 0ms) forwards;
}
@keyframes handshake-lane-on {
  to { stroke: var(--value-tone); opacity: .94; }
}
.handshake-bridge.is-aligned .handshake-outbound {
  animation-name: handshake-lane-outline-on;
}
@keyframes handshake-lane-outline-on {
  from { fill: transparent; }
  to { stroke: var(--value-tone); fill: color-mix(in srgb, var(--value-tone) 12%, transparent); opacity: .94; }
}
@media (prefers-reduced-motion: reduce) {
  .handshake-bridge.is-aligned :is(.handshake-outbound, .handshake-chevron) {
    animation: none;
    stroke: var(--value-tone);
    opacity: .94;
  }
}

#intent-gate .handshake-header {
  gap: 8px 16px;
  padding: 15px 20px 8px;
}
.handshake-heading { display: flex; align-items: baseline; gap: 10px; }
#intent-gate .handshake-heading h2 { font-size: 20px; letter-spacing: -.025em; }
#intent-gate .handshake-heading .handshake-development { color: #5f6f65; }
.handshake-pathway {
  gap: 10px;
  margin-inline: auto 0;
  padding: 4px;
  border: 1px solid #dce2da;
  border-radius: 12px;
  background: #edf1ec;
  line-height: 1.1;
}
.handshake-pathway strong {
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff;
}
.handshake-pathway > span:last-child { padding-inline-end: 6px; }
#intent-gate[data-fit="accepted"] .handshake-pathway strong { background: transparent; }
#intent-gate[data-fit="accepted"] .handshake-pathway > span:last-child {
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff;
}
#intent-gate .handshake-person[data-tone="black"] .handshake-portrait img { opacity: .98; }
.handshake-footer-actions:empty { display: none; }
@media (max-width: 700px) {
  #intent-gate .handshake-header { padding: 5px 10px 3px 15px; gap: 5px; }
  .handshake-heading { display: grid; gap: 0; }
  #intent-gate .handshake-heading h2 { font-size: 17px; }
  #intent-gate .handshake-heading .handshake-development { font-size: 10px; }
  .handshake-pathway { gap: 4px; border-radius: 9px; padding: 2px; }
  .handshake-pathway strong { padding: 4px; border-radius: 6px; }
  .handshake-pathway > span:last-child { padding-inline-end: 3px; }
  #intent-gate .handshake-header .intent-close { width: 32px; min-height: 36px; }
  #intent-gate:not(:has(.handshake-control-key[open])):not(.is-short-review) .handshake-stage:has(.handshake-values) {
    grid-template-rows: auto minmax(82px, 117px) auto auto;
    align-content: start;
  }
}

@media (max-width: 700px) and (max-height: 620px) {
  #intent-gate.is-short-review .handshake-stage { align-content: start; }
}

/* Each lane has a barrier, a waiting light, and a release arrow. */
.handshake-lane-gate {
  position: relative;
  z-index: 1;
  grid-area: 1 / 2;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1px solid #43544d;
  border-radius: 50%;
  background: #35433d;
  color: #c7cfc9;
  pointer-events: none;
}
.handshake-lane-gate svg { width: 16px; height: 16px; }
.handshake-lane-gate path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.handshake-lane-gate .gate-arrow { opacity: 0; }
[data-lane="waiting"] .handshake-lane-gate,
[data-lane="open"] .handshake-lane-gate {
  animation: handshake-gate-wait .22s ease calc(3.5s + var(--send-offset, 0ms)) forwards;
}
[data-lane="open"] .handshake-lane-gate {
  animation: handshake-gate-wait .22s ease calc(3.5s + var(--send-offset, 0ms)) forwards,
    handshake-gate-open .22s ease var(--release-delay, 0ms) forwards;
}
[data-lane="open"] .gate-barrier {
  animation: handshake-center-out .2s ease var(--release-delay, 0ms) forwards;
}
[data-lane="open"] .gate-arrow {
  animation: handshake-center-in .2s ease var(--release-delay, 0ms) forwards;
}
@keyframes handshake-gate-wait {
  to { background: #fff0be; border-color: #d3a150; color: #6b4a14; }
}
@keyframes handshake-gate-open {
  to { background: var(--lamp); border-color: var(--value-tone); color: #1e3027; box-shadow: 0 0 7px var(--lamp); }
}
@media (max-width: 700px) {
  .handshake-value-pair { --gate-gap: 20px; }
  .handshake-lane-gate { width: 16px; height: 16px; }
  .handshake-lane-gate svg { width: 13px; height: 13px; }
  #intent-gate .handshake-value-pair button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .handshake-lane-gate, .handshake-lane-gate path { animation: none !important; }
  [data-lane="waiting"] .handshake-lane-gate { background: #fff0be; color: #6b4a14; }
  [data-lane="open"] .handshake-lane-gate { background: var(--lamp); color: #1e3027; }
  [data-lane="open"] .gate-barrier { opacity: 0; }
  [data-lane="open"] .gate-arrow { opacity: 1; }
}

/* v3.188: first check-in remains separate from connection intention. */
.handshake-checkin { display: inline-flex; align-items: center; gap: 6px; }
.handshake-checkin i { width: 12px; height: 12px; border: 1px solid #59615b; border-radius: 2px; background: #fff; }
.handshake-checkin[data-checkin="0"] i { background: #202020; }
.handshake-checkin[data-checkin="unknown"] i { background: #c8c8c8; border-style: dashed; }
#intent-gate .handshake-pathway .handshake-current-phase { min-height: 26px; border: 0; border-radius: 8px; padding: 5px 7px; background: #fff; font-size: inherit; font-weight: 650; }
#intent-gate .handshake-intent-caption { margin: 5px auto 16px; max-width: 220px; font-size: 13px; color: #627067; }
#intent-gate .handshake-intention-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#intent-gate .handshake-intention-options button { display: grid; justify-items: center; gap: 12px; padding: 18px 6px 12px; border-radius: 18px; background: linear-gradient(145deg,#fff,#edf0ed); box-shadow: inset 0 1px 0 #fff,0 3px 8px #2733280c; }
#intent-gate .handshake-intention-options button:hover { background: #fff; box-shadow: inset 0 1px 0 #fff,0 0 15px #ff791b18; }
.handshake-intent-orbit { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ff791b90; border-radius: 50%; }
.handshake-intent-orbit i { width: 19px; height: 19px; background: #fff; border: 1px solid #59615b; border-radius: 2px; }
.handshake-intent-orbit.is-receiving i { background: #222; }
.handshake-intent-orbit b { position: absolute; top: 50%; right: -11px; translate: 0 -50%; font-size: 19px; color: #dc6a24; background: #f7f8f4; font-weight: 450; }
#intent-gate[data-step="intent"] .handshake-person-dock { display: none; }
#intent-gate[data-step="intent"] .handshake-person-label small { visibility: hidden; }
#intent-gate[data-step="intent"] .handshake-bridges { opacity: .3; }
@media(max-width:700px) {
  #intent-gate .handshake-header { flex-wrap: wrap; padding-top: 9px; }
  #intent-gate .handshake-pathway { order: 3; flex-basis: 100%; justify-content: center; font-size: 11px; padding-block: 1px 5px; }
  #intent-gate .handshake-pathway .handshake-current-phase { min-height: 23px; padding: 4px 6px; }
  #intent-gate[data-step="intent"] .handshake-stage { grid-template-rows: auto minmax(90px,1fr) auto; }
  #intent-gate[data-step="intent"] .handshake-step { align-self: center; padding-bottom: 20px; }
  #intent-gate:has(.handshake-control-key[open]) .handshake-status { height: auto; min-height: 0; }
  #intent-gate:has(.handshake-control-key[open]) .handshake-control-key { position: static; box-sizing: border-box; width: 100%; }
}
@media(max-width:700px) and (max-height:620px) {
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) { --compact-stop:30px; --compact-dock:62px; overflow:hidden; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-content { min-height:0; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-heading { display:flex; align-items:baseline; gap:6px; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-stage { grid-template-rows:auto 94px auto; align-content:start; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-portrait { width:36px; height:65px; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-person-dock { width:62px; flex-direction:column; gap:2px; }
  #intent-gate.handshake-dialog.is-short-review:has(.handshake-values) .handshake-figure-control { grid-template-columns:repeat(2,30px); }
  #intent-gate .handshake-control-explainer { padding:0 6px 2px; font-size:11px; }
  #intent-gate .handshake-control-explainer p { margin-top:3px; }
  #intent-gate[data-step="intent"] .handshake-stage { grid-template-rows:auto 90px auto; align-content:center; }
}

/* v3.189: the supplied Link Projector, reduced to one connection instrument. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step] { width:min(1000px,calc(100vw - 28px)); height:min(850px,calc(100dvh - 28px)); overflow:hidden; background:#f1f3f2; grid-template-rows:auto minmax(0,1fr) auto auto; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-content { min-height:0; overflow:hidden; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-header { padding:14px 20px 5px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { height:100%; min-height:0; margin:0; padding:8px 22px; grid-template-columns:minmax(135px,1fr) minmax(240px,280px) minmax(135px,1fr); grid-template-rows:1fr; gap:20px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-rings { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-vesica { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-rings circle { stroke:#42494f; stroke-width:1.2; fill:none; transition:cx 1.1s cubic-bezier(.33,.7,.2,1),cy .7s ease,r .8s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-rings circle:last-child { stroke-dasharray:5 4; stroke-opacity:.65; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-tints circle { transition:cx 1.1s cubic-bezier(.33,.7,.2,1),cy .7s ease,r .8s ease,fill 1s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-overlap { transition:d 1.1s cubic-bezier(.33,.7,.2,1),fill 1s ease,fill-opacity 1s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { position:relative; display:grid; align-self:stretch; grid-template-rows:90px auto minmax(100px,1fr); align-content:stretch; gap:10px; padding-top:4px; z-index:2; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { grid-row:1; align-self:center; justify-self:center; display:flex; flex-direction:row; width:auto; padding:0; gap:10px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-person-dock { flex-direction:row-reverse; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { grid-row:2; align-self:center; font-size:14px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { grid-row:3; position:relative; justify-self:center; align-self:center; width:132px; min-width:0; height:min(300px,34dvh); min-height:0; border:0; outline:0; background:none; overflow:visible; border-radius:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait:hover { background:transparent; border:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait > img { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-figure { display:block; width:100%; height:100%; overflow:visible; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-figure path { stroke:#3b4148; stroke-width:1.15; stroke-linejoin:round; transition:fill .8s ease,fill-opacity .8s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter { --stop:36px; --slot:5px; padding:4px; border-radius:14px; background:#e7ebec; box-shadow:inset 2px 2px 5px #27313c22,inset -2px -2px 5px #fff; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter button { min-height:36px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter-knob { inset:4px auto auto 4px; width:36px; height:36px; border:1px solid #ed8a40; box-shadow:0 0 0 2px #ffffffa8,0 0 10px #ff811c20; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter-track { inset:22px 22px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter i { width:15px; height:15px; box-shadow:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control { display:grid; grid-template-columns:36px; gap:5px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control button { width:36px; height:36px; min-height:36px; border-radius:10px; background:#e9edee; box-shadow:2px 2px 4px #33404b19,-2px -2px 4px #fff; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control img { height:32px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control [aria-pressed="true"] { background:#f9fafa; border-color:#ed8a40; box-shadow:0 0 0 1px #ed8a4040,inset 1px 1px 4px #33404b16; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step { grid-area:1 / 2; align-self:center; display:block; padding:18px 0 0; translate:none; min-height:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { display:flex; flex-direction:column; justify-content:center; padding:22px 0 0; align-self:stretch; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { margin:0 0 10px; font-size:25px; letter-spacing:-.025em; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { list-style:none; padding:0; margin:0 auto 15px; max-width:240px; font-size:14px; line-height:1.4; text-align:center; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { width:100%; gap:10px; margin:0 auto 15px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:42px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:14px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice { margin:0 auto; width:min(100%,240px); }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:38px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit { position:static; inset:auto; margin:16px 0 0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-eye { width:44px; height:26px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-lids { transform:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-scale { font-size:13px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge :is(.handshake-wire,.handshake-feed,.handshake-outbound,.handshake-chevron) { opacity:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge .handshake-energy { stroke-width:3px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-center { opacity:.55; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-selected .handshake-center { opacity:1; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-invitation-values { min-height:14px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-projector-step="intent"] .handshake-person-dock { display:flex; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-projector-step="intent"] .handshake-person-label small { visibility:hidden; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-projector-step="intent"] .handshake-bridges { opacity:.6; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { justify-self:center; box-sizing:border-box; width:min(420px,calc(100% - 30px)); padding:8px 18px 10px; border:1px solid #fff; border-radius:20px; background:#e9edee; box-shadow:inset 1px 1px 2px #fff,0 4px 18px #26313a08; text-align:center; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-caption { display:flex; align-items:center; justify-content:center; gap:10px; color:#67727a; font-size:12px; margin-bottom:5px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-replay { width:28px; min-height:28px; padding:0; border:0; background:#f7f9f9; border-radius:50%; font-size:18px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code { display:flex; justify-content:center; gap:10px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { display:grid; justify-items:center; gap:3px; padding:0; min-height:0; border:0; border-radius:5px; background:none; min-width:42px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel { width:38px; height:38px; display:block; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel svg { width:100%; height:100%; overflow:visible; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel rect { stroke-width:1.1; transition:fill .5s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel text { font:500 17px system-ui; fill:#7d878f; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code small { font-size:11px; color:#626e77; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { min-height:18px; margin:7px 0 0; color:#3e484f; font-size:14px; line-height:1.3; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock[hidden] { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { min-height:42px; height:auto; padding:5px 14px 8px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status:has(.handshake-footer-actions) { grid-template-columns:1fr minmax(200px,420px) 1fr; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status .handshake-control-key { grid-column:2; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-control-key[open] { position:static; width:min(100%,430px); padding:4px 8px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-control-explainer { font-size:12px; line-height:1.3; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-control-explainer ol { margin:4px 0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-flight { position:fixed; z-index:20; display:block; box-sizing:border-box; pointer-events:none; border:1px solid; border-radius:3px; box-shadow:0 0 10px #fff6; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step]:is([data-projector-step="pair"],[data-projector-step="send-preview"],[data-projector-step="patreon"]) .projector-vesica { display:none; }
@media(max-width:700px) {
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] { width:calc(100vw - 16px); height:calc(100dvh - 16px); inset:0; border-radius:24px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-header { padding:7px 12px 3px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:66px auto minmax(95px,1fr) auto; align-content:stretch; gap:3px 18px; padding:3px 16px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { display:contents; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { grid-area:1 / 1; width:auto; gap:7px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-person-dock { grid-area:1 / 2; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { grid-area:2 / 1; font-size:12px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-person-label { grid-area:2 / 2; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { grid-area:3 / 1; width:68px; height:min(15dvh,140px); }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-portrait { grid-area:3 / 2; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter { --stop:29px; --slot:3px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter button { width:29px; height:29px; min-height:29px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter-knob { width:29px; height:29px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control { grid-template-columns:29px; gap:3px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control button { width:29px; height:29px; min-height:29px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control img { height:27px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { grid-area:4 / 1 / auto / -1; display:block; padding:5px 0; align-self:end; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:21px; margin-bottom:4px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { display:block; max-width:none; font-size:12px; margin:0 auto 7px; line-height:1.3; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions li+li { display:none; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { width:min(100%,260px); gap:5px; margin-bottom:7px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:34px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:13px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice { width:210px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:33px; font-size:13px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit { margin-top:7px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-scale { font-size:12px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-eye { width:35px; height:21px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { width:calc(100% - 32px); padding:5px 10px 7px; border-radius:16px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-caption { margin-bottom:1px; font-size:11px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel { width:31px; height:31px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code { gap:8px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { min-width:38px; gap:1px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code small { font-size:10px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { font-size:12px; min-height:16px; margin-top:4px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { padding:3px 10px; min-height:34px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-control-key summary { min-height:28px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-alphabet { gap:8px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status:has(.handshake-footer-actions) { grid-template-columns:1fr auto; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status .handshake-control-key { grid-column:1; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status:has(.handshake-control-key[open]) { display:block; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-footer-actions { position:static; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step]:has(.handshake-control-key[open]) .handshake-footer-actions { display:none; }
}
@media(max-width:700px) and (max-height:690px) {
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:54px auto 66px auto; gap:1px 12px; padding-inline:12px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { width:42px; height:65px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter { --stop:24px; --slot:2px; padding:2px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter button { width:24px; height:24px; min-height:24px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter-knob { inset:2px auto auto 2px; width:24px; height:24px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter i { width:12px; height:12px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control { grid-template-columns:24px; gap:2px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control button { width:24px; height:24px; min-height:24px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control img { height:23px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { font-size:11px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label small { font-size:10px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:18px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:11px; margin-bottom:4px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:3px; margin-bottom:4px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:28px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:12px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:28px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit { margin:3px 0 0; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-caption { display:none; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel { width:26px; height:26px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { padding:3px 8px; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { font-size:11px; margin:2px 0 0; }
  #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { min-height:28px; padding:1px 8px; }
}
@media(prefers-reduced-motion:reduce) { #intent-gate.handshake-dialog.projector-connection[data-projector-step] :is(.projector-rings circle,.projector-tints circle,.projector-overlap) { transition:none; } }

#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { width:100%; align-self:stretch; text-align:center; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-invitation-values { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step]:has(.handshake-control-key[open]) .projector-code-dock { display:none; }
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:52px auto 65px minmax(0,1fr); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { display:none; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { align-self:center; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-fit-eye { height:18px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step]:has(.handshake-control-key[open]) .handshake-value-pair { --key-size:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-control-explainer { font-size:11px; }
}

#intent-gate.handshake-dialog.projector-connection[data-projector-step]:is([data-projector-step="pair"],[data-projector-step="send-preview"],[data-projector-step="patreon"]) .handshake-stage { display:grid; grid-template-columns:1fr; grid-template-rows:1fr; place-items:center; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step]:is([data-projector-step="pair"],[data-projector-step="send-preview"],[data-projector-step="patreon"]) .handshake-step { grid-area:1 / 1; width:min(100%,430px); }

@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-content { display:grid; align-items:center; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { width:100%; height:auto; grid-template-rows:66px auto 114px auto; align-content:start; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { height:100px; align-self:center; }
}
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:52px auto 74px auto; gap:1px 12px; padding-block:1px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { height:65px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:26px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step]:has(.handshake-control-key[open]) .handshake-stage { grid-template-rows:52px auto 62px auto; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step]:has(.handshake-control-key[open]) .handshake-portrait { height:56px; }
}

@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { row-gap:0; padding-block:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { padding-block:3px; }
}

#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge > path { display:none; }

/* v3.191: people anchor the circles; values become black/white variables. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step] { width:min(880px,calc(100vw - 28px)); height:min(820px,calc(100dvh - 28px)); }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-content { overflow:hidden; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { padding:10px 24px; grid-template-columns:minmax(144px,1fr) 240px minmax(144px,1fr); column-gap:16px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { width:144px; justify-self:end; transform:translateX(42px); grid-template-rows:72px 30px minmax(100px,1fr); gap:8px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] { justify-self:start; transform:translateX(-42px); }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { width:110px; height:min(270px,31dvh); }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { width:100%; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { padding:8px 0 0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:24px; margin:0 0 9px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:13px; margin-bottom:15px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:9px; margin-bottom:18px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:39px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:14px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice { display:flex; justify-content:center; gap:5px; width:max-content; margin:0 auto; padding:4px; border:1px solid #cad1d244; border-radius:17px; background:#e8edee; box-shadow:inset 1px 1px 3px #37434b12,inset -1px -1px 2px #fff; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { display:grid; place-items:center; width:47px; min-height:42px; border-radius:12px; border:1px solid transparent; background:transparent; padding:6px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button[aria-pressed=true] { background:#fdfefe; border-color:#dc8f566b; box-shadow:inset 0 1px #fff,0 2px 5px #303d4810; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice svg { width:30px; height:24px; fill:none; stroke:#4e5960; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-rings circle,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-tints circle,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-overlap { transition:fill .65s ease,fill-opacity .65s ease; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-rings circle { stroke:#626c71; stroke-width:1.1; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-rings circle:last-child { stroke-dasharray:3 5; stroke-opacity:.75; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-figure path { stroke:#596369; stroke-width:1.05; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge > .handshake-wire,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge > .handshake-invitation-wire { display:block; stroke:var(--value-tone); stroke-width:1; stroke-dasharray:1.5 5; stroke-linecap:round; opacity:.13; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-selected > .handshake-wire { opacity:.4; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-aligned > .handshake-invitation-wire { opacity:.35; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-aligned > .handshake-wire { stroke-dasharray:1.5 5; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { width:min(400px,calc(100% - 32px)); background:#ebeff0; border-radius:18px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel rect { stroke-width:1.5; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { height:34px; min-height:34px; display:flex; align-items:center; justify-content:center; margin:3px 0 0; font-size:13px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { height:42px; min-height:42px; display:flex; align-items:center; justify-content:center; padding:4px 18px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-footer-actions { margin:0; position:static; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { min-height:32px; margin:0; padding:5px 16px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-fit] .handshake-status { height:auto; min-height:42px; flex-wrap:wrap; }
@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] { width:calc(100vw - 16px); height:calc(100dvh - 16px); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-content { display:block; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { height:100%; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:68px 30px minmax(108px,1fr) 225px; gap:2px 12px; padding:4px 16px; align-content:stretch; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { display:contents; width:auto; transform:none; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { justify-self:end; margin-right:2px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-person-dock { justify-self:start; margin-left:2px; margin-right:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { justify-self:end; width:106px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-person-label { justify-self:start; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { justify-self:end; margin-right:18px; height:110px; width:62px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-portrait { justify-self:start; margin-left:18px; margin-right:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { align-self:center; padding:4px 0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:21px; margin-bottom:7px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:12px; margin-bottom:8px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { width:min(100%,260px); gap:5px; margin-bottom:10px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:33px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:13px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { width:45px; min-height:39px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { height:30px; min-height:30px; font-size:12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { height:38px; min-height:38px; }
}
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:52px 24px minmax(70px,1fr) 193px; gap:0 10px; padding:0 12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { width:92px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { width:35px; height:70px; margin-right:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person="otherFigure"] .handshake-portrait { margin-left:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:18px; margin-bottom:4px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:3px; margin-bottom:7px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:27px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice { padding:2px; border-radius:13px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:32px; width:41px; border-radius:10px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice svg { width:26px; height:21px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { height:28px; min-height:28px; font-size:11px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { height:35px; min-height:35px; padding:2px 12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { min-height:29px; font-size:11px; }
}

/* v3.192: direction previews and a selected pixel's known state remain separate. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-intent-orbit.is-receiving b { left:-11px; right:auto; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-intent-orbit.is-offering b { right:-11px; left:auto; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { position:relative; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-clear-peer { position:absolute; top:-3px; right:-18px; display:grid; place-items:center; width:28px; min-height:28px; padding:0; border:0; border-radius:50%; color:#7c8588; background:#e8eced; font-size:19px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] [data-person=otherFigure] .handshake-person-dock { opacity:.35 !important; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label small { min-height:28px; line-height:1.35; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-projector-step=intent] .handshake-person-label small { visibility:visible; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index].is-current { border-radius:9px; background:#ff8b3210; box-shadow:0 0 0 1px #ff8b3260; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code .is-current small { color:#a85216; font-weight:600; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-footer-actions { display:flex; align-items:center; justify-content:center; gap:8px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { white-space:nowrap; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-peer-intention=unknown] .projector-rings circle:last-child { stroke-dasharray:2 5; }
@media(min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { position:absolute; top:125px; left:calc(50% - 286px); width:240px; transition:left .5s cubic-bezier(.22,1,.36,1); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent][data-intent-person="1"] .handshake-step h3 { left:calc(50% + 46px); }
}
@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { text-align:left; padding-left:8px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent][data-intent-person="1"] .handshake-step h3 { text-align:right; padding:0 8px 0 0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-clear-peer { right:-18px; width:24px; min-height:24px; top:-5px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { font-size:12px; padding:5px 9px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code { gap:7px; }
}
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label small { min-height:20px; font-size:10px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { font-size:11px; padding:4px 7px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-intent-caption { font-size:12px; margin:3px auto 6px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-intention-options button { min-height:88px; gap:5px; padding:9px 5px 6px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-intent-orbit { width:40px; height:40px; }
}

@media(min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step { position:static; }
}
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-known-state { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] [data-person=otherFigure] .handshake-person-dock { display:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] .handshake-known-state { display:grid; justify-items:center; align-self:center; justify-self:center; gap:5px; grid-row:1; }
.handshake-known-state i { width:30px; height:30px; border:1px solid #677178; border-radius:2px; background:#fff; }
.handshake-known-state[data-tone=black] i { background:#242a2d; }
.handshake-known-state[data-shape=circle] i { border-radius:50%; }
.handshake-known-state small { font-size:12px; color:#778087; }
@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] .handshake-known-state { grid-area:1 / 2; justify-self:start; margin-left:34px; }
 .handshake-known-state i { width:24px; height:24px; }
 .handshake-known-state small { font-size:10px; }
}

@media(max-height:540px) and (min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] { width:calc(100vw - 16px); height:calc(100dvh - 16px); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-header { padding:5px 14px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { padding:2px 20px; grid-template-columns:minmax(110px,1fr) 220px minmax(110px,1fr); gap:10px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { width:120px; grid-template-rows:56px 28px minmax(70px,1fr); gap:3px; transform:translateX(22px); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person=otherFigure] { transform:translateX(-22px); }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { width:52px; height:100px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter { --stop:24px; --slot:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter button,#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-shifter-knob { width:24px; height:24px; min-height:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control { grid-template-columns:24px; gap:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control button { width:24px; height:24px; min-height:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-figure-control img { height:22px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { position:static; width:auto; font-size:19px; margin-bottom:5px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-intent-caption { font-size:11px; margin:3px 0 8px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-intention-options button { min-height:80px; padding:8px 4px; gap:5px; font-size:13px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-intent-orbit { width:36px; height:36px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { margin-bottom:5px; font-size:11px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:3px; margin-bottom:6px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:26px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair button span { font-size:12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:28px; width:40px; padding:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-caption { display:none; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { padding:4px 12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-pixel { width:24px; height:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-language { height:18px; min-height:18px; font-size:11px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-status { height:32px; min-height:32px; padding:2px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-keep { min-height:27px; padding:3px 10px; font-size:11px; }
}

/* Intent belongs to the chosen person; their heart is the circle's origin. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { font-size:18px; font-weight:550; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { box-sizing:border-box; min-width:48px; padding:5px 3px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index].is-current { border-radius:10px; box-shadow:0 0 0 2px #ff8b3250; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice:not(.is-available) { opacity:0; visibility:hidden; pointer-events:none; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice.is-revealing { animation:relation-arrives .3s ease both; }
@keyframes relation-arrives { from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)} }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge > :is(.handshake-feed,.handshake-outbound,.handshake-chevron) { display:block; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge .handshake-feed { stroke:var(--value-tone); stroke-width:22px; fill:none; opacity:.05; stroke-linecap:round; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-selected .handshake-feed { opacity:.16; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge .handshake-outbound { fill:none; stroke:var(--value-tone); stroke-width:.8px; opacity:.14; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge .handshake-chevron { fill:none; stroke:var(--value-tone); stroke-width:1.2px; opacity:.12; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge.is-aligned :is(.handshake-outbound,.handshake-chevron) { opacity:.55; }
@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { font-size:17px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { min-width:42px; padding:5px 3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-bridge .handshake-feed { stroke-width:12px; }
}
@media(max-width:400px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code { gap:6px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { min-width:40px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { #intent-gate .handshake-match-choice.is-revealing { animation:none; } }

#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { display:block; }
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-header { padding:4px 12px 2px; gap:3px; grid-template-rows:28px 28px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .intent-close { width:28px; min-height:28px; height:28px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-pathway { min-height:28px; height:28px; padding:1px 4px; box-sizing:border-box; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-current-phase { min-height:24px; padding:3px 6px; font-size:11px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:52px 24px minmax(70px,1fr) 217px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:12px; margin-bottom:6px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { padding:3px; }
}
@media(max-height:540px) and (min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { padding-top:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code [data-code-index] { padding:3px; }
}

/* State/shape controls sit below the person, as part of the same instrument. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { grid-template-rows:48px minmax(100px,1fr) 100px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { grid-row:1; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { grid-row:2; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { grid-row:3; border:1px solid #d1d9db70; border-radius:16px; background:#e7eced88; padding:7px; gap:9px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step { align-self:end; padding-bottom:5px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step h3 { position:static; width:auto; text-align:center; padding:0; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { border:1px solid color-mix(in srgb,var(--value-tone) 22%,transparent); border-radius:12px; background:color-mix(in srgb,var(--value-tone) 5%,#f1f3f2); box-shadow:inset 0 1px #ffffffb0; }
#intent-gate .handshake-center[data-intent=receive] .center-orbit { animation-direction:reverse; }
#intent-gate .handshake-center[data-intent=offer] .center-orbit { animation-direction:normal; }
#intent-gate .handshake-center[data-intent=open] .center-orbit { animation-play-state:paused; }
#intent-gate .handshake-center[data-intent=receive] .center-orbit path { transform:none; }
#intent-gate .handshake-center[data-intent=offer] .center-orbit path { transform:scaleX(-1); }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-dock { position:relative; }
.projector-code-divider { align-self:stretch; width:1px; background:#a9b5bb66; margin:3px 0; flex:none; }
.projector-code-readout { display:flex; align-items:center; justify-content:center; gap:8px; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-readout .projector-language { flex:1; min-width:0; font-size:12px; }
#intent-gate .projector-translate { padding:3px 7px; min-height:28px; border:1px solid #b4c0c540; border-radius:8px; background:#f7f9fa88; font-size:11px; color:#58656c; white-space:nowrap; }
.projector-translation { position:absolute; z-index:12; bottom:calc(100% + 8px); left:0; width:100%; box-sizing:border-box; padding:14px 18px; border:1px solid #fff; border-radius:16px; color:#34434b; background:#f5f7f7f5; backdrop-filter:blur(18px); box-shadow:0 6px 24px #27354218; text-align:left; }
.projector-translation[hidden] { display:none; }
.projector-translation strong { font-size:14px; font-weight:550; }
.projector-translation dl { display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; margin:10px 0 0; font-size:13px; }
.projector-translation dt { color:#6b7980; }.projector-translation dd { margin:0; }
@media(max-width:700px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:30px minmax(108px,1fr) 84px 225px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label { grid-area:1 / 1; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person=otherFigure] .handshake-person-label { grid-area:1 / 2; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { grid-area:2 / 1; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person=otherFigure] .handshake-portrait { grid-area:2 / 2; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { grid-area:3 / 1; padding:5px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] [data-person=otherFigure] .handshake-person-dock { grid-area:3 / 2; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] .handshake-known-state { grid-area:3 / 2; margin-left:20px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code { gap:6px; }
}
@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:28px minmax(70px,1fr) 62px 217px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { padding:3px; gap:4px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .projector-code-readout .projector-language { font-size:10px; }
 #intent-gate .projector-translate { font-size:10px; padding:3px 5px; }
}
@media(max-height:540px) and (min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { grid-template-rows:30px minmax(70px,1fr) 68px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-dock { padding:4px; }
}

@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-stage { grid-template-rows:40px minmax(70px,1fr) 62px 190px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label small { min-height:24px; font-size:10px; line-height:12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:18px; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:12px; line-height:1.2; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:23px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:3px; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { min-height:30px; }
}

@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step:has(.handshake-values) { padding:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { height:32px; min-height:32px; box-sizing:border-box; }
}

#intent-gate.handshake-dialog.projector-connection[data-projector-step][data-peer-mode=selected] .handshake-known-state { grid-row:3; }
@media(max-height:540px) and (min-width:701px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person { grid-template-rows:40px minmax(80px,1fr) 68px; padding:0; gap:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-portrait { height:80px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-person-label small { min-height:24px; font-size:10px; line-height:12px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-step h3 { font-size:18px; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-instructions { font-size:12px; line-height:1.2; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-value-pair { --key-size:24px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-values { gap:3px; margin-bottom:3px; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-match-choice button { height:32px; min-height:32px; box-sizing:border-box; }
}

@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-step { padding:0; }
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-intention-options button { min-height:84px; }
}

@media(max-width:700px) and (max-height:690px) {
 #intent-gate.handshake-dialog.projector-connection[data-projector-step=intent] .handshake-stage { grid-template-rows:40px minmax(70px,1fr) 62px 182px; }
}

/* A dedicated marker layer keeps the moving centers visible on white figures. */
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-center-layer { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:3; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-center-layer .handshake-center { opacity:.9; }
#intent-gate.handshake-dialog.projector-connection[data-projector-step] .handshake-center-layer .is-selected .handshake-center { opacity:1; }
#intent-gate .handshake-center-layer .center-orbit path { stroke-width:1.5; }
@media(max-width:700px) and (max-height:690px) { #intent-gate .handshake-center-layer .center-orbit { scale:.7; } }
@media(min-width:701px) and (max-height:540px) { #intent-gate .handshake-center-layer .center-orbit { scale:.8; } }

#intent-gate.handshake-dialog.projector-connection:is([data-projector-step=pair],[data-projector-step=send-preview],[data-projector-step=patreon]) .handshake-center-layer { display:none; }
