/* ============================================================
   HYGENTRA COMPONENTS — Asset Library implementations
   Source of truth: Figma Asset-Library file NeyK9xrSlprY2NfkfYh9Kg
   nodes 53:1561 (signals), 53:2752 (chat column), 53:3396 (review
   card). Dimensions are the exact canvas values — do not resize
   components; responsive behavior comes from layout stacking.
   NOTE: copilot.css currently carries copies of these rules with
   page scoping; consolidation tracked for the cleanup pass.
   ============================================================ */

/* ============================================================
   Figma Glass parity — Light -45deg @ 30%, Frost ~107.
   CSS approximation: neutral film with a top-left light
   gradient, heavy frost blur, inset edge highlights. Overlap
   becomes an asset: stack panels and the blur does the depth.
   ============================================================ */

:root {
  --glass-film:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 62%),
    rgba(255, 255, 255, 0.035);
  --glass-frost: blur(32px) saturate(150%);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-light: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 1px 0 0 rgba(255, 255, 255, 0.05);
}
/* signal cards — exact canvas dimensions from Asset Library 53:1561 */

.signal-card {
  overflow: hidden;
  width: 362.6px;
  max-width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5.7px;
  padding: 5.7px 11.3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.signal-strip::after {
  content: '';
  position: absolute;
  inset: 0 0 0 67%;
  background: linear-gradient(90deg, rgba(144, 255, 54, 0), rgba(144, 255, 54, 0.16));
  opacity: 0;
  pointer-events: none;
}

.signal-strip:has(.strip-status--lime)::after {
  opacity: 1;
}

.strip-meta {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 4.2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15.6px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.strip-meta i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 5.7px;
  font-style: normal;
}

.strip-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5.7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.strip-status svg {
  width: 22.7px;
  height: 22.7px;
}
.strip-status--lime {
  color: #90ff36;
}

.signal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5.7px;
  padding: 11.3px 17px 5.7px 28.3px;
}

.sig-ind {
  position: absolute;
  top: 19.8px;
  left: 11.3px;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 17px 2px rgba(54, 255, 171, 0.25);
}

.sig-ind--red {
  background: #ff3a54;
  box-shadow: 0 0 17px 2px rgba(255, 58, 84, 0.25);
}

.sig-pair {
  color: #fff;
  font-size: 19.8px;
  font-weight: 600;
}

.sig-side-big {
  color: var(--mint);
  font-size: 53.8px;
  font-weight: 700;
  line-height: 1;
}

.sig-rr {
  padding: 5.7px 11.3px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #8a908a;
  font-size: 15.6px;
  font-weight: 600;
}

.sig-setup {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.sig-levels {
  align-self: stretch;
  margin: 5.7px 17px 0;
  border: 0.7px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.sig-levels > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11.3px;
  border-bottom: 0.7px solid rgba(255, 255, 255, 0.16);
}

.sig-levels > div:last-child {
  border-bottom: 0;
}
.sig-levels span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.6px;
}
.sig-levels b {
  color: #e5e8ec;
  font-size: 15.6px;
  font-weight: 400;
}
.sig-levels .lv-mint {
  color: var(--mint);
  font-size: 17px;
  font-weight: 500;
}
.sig-levels .lv-red {
  color: #ff6b72;
}

.sig-ctas {
  display: flex;
  gap: 11.3px;
  align-self: stretch;
  padding: 11.3px 17px;
}

.sig-ask,
.sig-load {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2.8px;
  padding: 11.3px 0;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  transition:
    filter 0.2s ease,
    background 0.2s ease;
}

.sig-ask {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sig-ask:hover {
  background: rgba(255, 255, 255, 0.1);
}
.sig-ask .copilot-spark {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.sig-load {
  background: var(--mint);
  color: #01231e;
}
.sig-load:hover {
  filter: brightness(1.06);
}

.sig-checklist {
  align-self: stretch;
  padding: 17px 11.3px 11.3px;
  border-top: 1.4px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.cl-head {
  display: flex;
  align-items: center;
  gap: 5.7px;
  color: #fff;
  font-size: 15.6px;
  font-weight: 600;
}
.cl-head svg {
  width: 22.7px;
  height: 22.7px;
  color: var(--mint);
}
.cl-note {
  margin: 5.7px 0 0 28.3px;
  color: #fff;
  font-size: 15.6px;
}
.sig-checklist ul {
  display: flex;
  flex-direction: column;
  gap: 11.3px;
  margin: 11.3px 0 0;
  padding: 5.7px 0 0;
  list-style: none;
}
.cl-item {
  display: flex;
  align-items: center;
  gap: 5.7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.6px;
}
.cl-item svg {
  width: 22.7px;
  height: 22.7px;
  flex: none;
  color: var(--mint);
}

.sig-stamp {
  align-self: stretch;
  padding: 2.8px 11.3px 5.7px;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.6px;
  opacity: 0.4;
}

.signal-queue {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 362.6px;
  max-width: 100%;
  margin: 0;
}

.queue-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.queue-card .sig-stamp {
  margin-top: auto;
  background: transparent;
}

.queue-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11.3px;
  padding: 11.3px 17px 5.7px 28.3px;
}

.queue-body .sig-ind {
  top: 50%;
  left: 11.3px;
  transform: translateY(-50%);
}
.queue-names {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5.7px;
  min-width: 0;
}
.queue-names strong {
  color: #fff;
  font-size: 19.8px;
  font-weight: 600;
}
.queue-names small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-chip {
  flex: none;
  padding: 2.8px 8.5px;
  border: 1.4px solid rgba(54, 255, 171, 0.3);
  border-radius: 3px;
  background: rgba(54, 255, 171, 0.12);
  color: var(--mint);
  font-size: 14.2px;
  font-weight: 600;
  text-transform: uppercase;
}

.side-chip--red {
  border-color: rgba(255, 58, 84, 0.3);
  background: rgba(255, 58, 84, 0.12);
  color: #ff3a54;
}

.queue-conditions {
  align-self: stretch;
  padding: 5.7px 17px 11.3px 28.3px;
}
.qc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5.7px;
}
.qc-row span {
  color: #fff;
  font-size: 15.6px;
  opacity: 0.4;
}
.qc-row b {
  color: #fff;
  font-size: 15.6px;
  font-weight: 400;
}
.qc-track {
  box-sizing: border-box;
  height: 8.5px;
  padding: 2.8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.qc-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #fff;
}

/* signals choreography (JS-gated) */
.signal-card,
.queue-card {
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-stack.play .signal-card,
.signal-stack.play .queue-card {
  opacity: 0;
  transform: translateY(14px);
}

.signal-stack.play .signal-card.in,
.signal-stack.play .queue-card.in {
  opacity: 1;
  transform: none;
}

.sig-side-big,
.sig-rr,
.sig-levels > div,
.sig-ctas,
.cl-item {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.signal-stack.play .sig-side-big,
.signal-stack.play .sig-rr,
.signal-stack.play .sig-levels > div,
.signal-stack.play .sig-ctas,
.signal-stack.play .cl-item {
  opacity: 0;
  transform: translateY(6px);
}

.signal-stack.play .sig-side-big.in,
.signal-stack.play .sig-rr.in,
.signal-stack.play .sig-levels > div.in,
.signal-stack.play .sig-ctas.in,
.signal-stack.play .cl-item.in {
  opacity: 1;
  transform: none;
}

/* the hero stage is the design's chat column (53:2752): an outer
   white/4 panel at 401px wrapping input, market and the review
   message card at its exact 53:3396 dimensions */

.copilot-stage {
  padding: 16.8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.hy-composer,
.stage-market {
  width: 100%;
  margin-left: 0;
  border: 0;
  background: var(--glass-film);
  box-shadow: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-frost);
  backdrop-filter: var(--glass-frost);
}

.hy-composer {
  min-height: 50px;
  padding: 0 8px 0 14px;
  border-radius: 24px;
}
.hy-composer strong {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}
.hy-composer .copilot-spark {
  width: 15px;
  height: 15px;
}
.hy-composer button {
  width: 30px;
  height: 30px;
}
.hy-composer button svg {
  width: 16px;
}
.model-tag {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  white-space: nowrap;
}

.stage-market {
  min-height: 48px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 12px;
}
.stage-market strong {
  font-size: 12px;
}
.stage-market > span,
.stage-market > b {
  font-size: 11px;
}
.stage-market > svg {
  height: 28px;
}
.hype-mark {
  width: 24px;
  height: 24px;
}
.hype-mark img {
  width: 18px;
  height: 18px;
}

.stage-think {
  width: 100%;
  min-height: 20px;
  margin: 10px 0 0;
  padding-left: 10px;
}

/* review message card — node 53:3396 exact */
.stage-review {
  width: 100%;
  margin: 12px 0 0;
  padding: 6px 8px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--glass-film);
  box-shadow: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-frost);
  backdrop-filter: var(--glass-frost);
}

.stage-review__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stage-review__head > small {
  display: none;
}

.stage-review__head > div > span {
  padding: 2px 6px;
  border: 1px solid rgba(255, 58, 84, 0.3);
  border-radius: 3px;
  background: rgba(255, 58, 84, 0.12);
  color: #ff3a54;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stage-review__head p {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}

.stage-review__head p i {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.35);
}
.stage-review__head p b {
  color: var(--mint);
}

/* flags: black overlay list, glowing dots, design chips */
.stage-flags {
  margin-top: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.stage-flag {
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  padding: 8px 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.stage-flag > i,
.review-issue > i {
  width: 6px;
  height: 6px;
}
.stage-flag--risk > i,
.review-issue--risk > i {
  background: #ff3a54;
  color: #ff3a54;
  box-shadow: 0 0 12px 2px rgba(255, 58, 84, 0.25);
}
.stage-flag--warn > i,
.review-issue--warn > i {
  box-shadow: 0 0 12px 2px rgba(255, 165, 30, 0.25);
}

.stage-flag span strong {
  font-size: 13px;
}
.stage-flag span small {
  margin-top: 2px;
  font-size: 11px;
}

.stage-flag > b,
.review-issue > b {
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stage-flag--risk > b,
.review-issue--risk > b {
  border-color: rgba(255, 58, 84, 0.3);
  background: rgba(255, 58, 84, 0.12);
  color: #ff3a54;
}
.stage-flag--warn > b,
.review-issue--warn > b {
  border-color: rgba(255, 165, 30, 0.3);
  background: rgba(255, 165, 30, 0.12);
}

/* order values: label/value rows inside the amber working glow */
.stage-order {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 153, 0, 0.38);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.stage-order > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  padding: 0;
  border-left: 0;
}

@property --oga {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.stage-order::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: conic-gradient(
    from var(--oga),
    rgba(255, 153, 0, 0) 0turn 0.72turn,
    rgba(255, 153, 0, 0.9) 0.85turn,
    rgba(255, 153, 0, 0) 0.98turn
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-order::before {
    animation: order-glow 3.4s linear infinite;
  }
}

@keyframes order-glow {
  to {
    --oga: 360deg;
  }
}

.stage-order dt {
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.stage-order dd {
  margin: 0;
  color: var(--mint);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}
.stage-order s {
  color: rgba(255, 255, 255, 0.4);
}
.stage-order dd span {
  color: rgba(255, 255, 255, 0.4);
}
.copilot-stage.play .stage-order dd s {
  color: rgba(255, 255, 255, 0.75);
}
.copilot-stage.play .stage-order.adjusted dd s {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

/* actions: design buttons — py 8, radius 8, 12px semibold */
.stage-review__actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.stage-review__actions button,
.review-buttons button {
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.stage-review__actions button:hover,
.review-buttons button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.stage-review__actions button:last-child,
.review-buttons button:last-child {
  background: var(--mint);
  color: #01231e;
}
.stage-review__actions button:last-child:hover,
.review-buttons button:last-child:hover {
  background: var(--mint);
  filter: brightness(1.06);
}

.review-buttons button {
  padding: 14px 0;
  font-size: 13px;
}

.stage-stamp {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding-left: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  opacity: 0.6;
}

.ai-note {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin: 12px 0 0;
  padding: 0 4px;
}
.ai-note .copilot-spark {
  width: 13px;
  height: 13px;
  flex: none;
  margin-right: 6px;
  opacity: 0.4;
}
.ai-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

/* context: the chat component (53:2752) — bubble, table, input */
.context-answer {
  width: min(401px, 100%);
  max-width: none;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass-film);
  box-shadow: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-frost);
  backdrop-filter: var(--glass-frost);
}

@media (min-width: 1121px) {
  .context-layout {
    grid-template-columns: minmax(0, 1fr) 401px;
  }
}

.context-market {
  grid-template-columns: minmax(120px, 1.2fr) auto auto;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.context-market strong {
  font-size: 12px;
}
.context-market > b,
.context-market > em {
  font-size: 11px;
}
.context-market > svg,
.context-market > small {
  display: none;
}

.answer-body {
  padding: 16px 12px 8px;
}

.chat-q {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 32px;
}

.chat-bubble {
  display: inline-block;
  padding: 9px;
  border: 1px solid rgba(54, 255, 171, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(54, 255, 171, 0.13), rgba(54, 255, 171, 0.13)),
    rgba(255, 255, 255, 0.04);
  text-align: right;
}

.chat-bubble b {
  color: var(--mint);
  font-size: 11px;
  font-weight: 400;
  line-height: 15.6px;
}
.chat-stamp {
  color: #5e5e5e;
  font-size: 10px;
  line-height: 16px;
}

.answer-body > p {
  padding-right: 32px;
  margin-top: 12px;
  color: #fff;
  font-size: 11px;
  line-height: 15.6px;
}

.answer-think {
  margin-top: 10px;
}

.evidence-list {
  gap: 4px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.evidence-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  padding: 5px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0;
  background: none;
}
.evidence-row:first-child {
  border-top: 0;
}
.evidence-icon {
  display: none;
}
.evidence-row div strong {
  color: #fff;
  font-size: 10.5px;
  font-weight: 400;
}
.evidence-row div small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}
.evidence-row > b {
  color: #e8edef;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
}
.evidence-row:first-child > b {
  color: #3cf2a0;
}

.ci-caret {
  width: 2px;
  height: 16px;
  border-radius: 12px;
  background: var(--mint);
}

@media (prefers-reduced-motion: no-preference) {
  .ci-caret {
    animation: m-caret-blink 1s steps(1) infinite;
  }
}

/* composer text states: blinking caret + placeholder tone */
.hy-composer strong .ci-caret {
  display: inline-block;
  margin-right: 7px;
  vertical-align: -3px;
}
.hy-composer strong.hyc-ph {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* ============================================================
   structural base — layout rules the components need on pages
   that don't load copilot.css
   ============================================================ */

.copilot-spark {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--mint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 52.9922 76.457' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52.9922 65.2041H39.6885V38.0977H26.9961V49.3506H13.3037V76.457H0V11.2539H13.3037V36.9717H25.9961V25.7188H39.6885V0H52.9922V65.2041Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 52.9922 76.457' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52.9922 65.2041H39.6885V38.0977H26.9961V49.3506H13.3037V76.457H0V11.2539H13.3037V36.9717H25.9961V25.7188H39.6885V0H52.9922V65.2041Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hy-composer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hy-composer strong {
  flex: 1;
  font-weight: 470;
}
.hy-composer button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  color: #08251e;
  cursor: pointer;
}
.hy-composer button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stage-review__head {
  display: flex;
}
.stage-flags {
  overflow: hidden;
}
.stage-flag {
  display: grid;
  align-items: center;
}
.stage-flag > i {
  border-radius: 50%;
}
.stage-flag span strong {
  display: block;
  color: #f3ece8;
  font-weight: 640;
}
.stage-flag span small {
  display: block;
  color: #8e8581;
  line-height: 1.3;
}
.stage-flag > b {
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.stage-order {
  margin-bottom: 0;
}
.stage-order dt {
  margin: 0;
}
.stage-review__actions {
  display: grid;
}
.stage-review__actions button {
  cursor: pointer;
}

/* choreography gating for the stage session on any page */
.copilot-stage .stage-market,
.copilot-stage .stage-review {
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.copilot-stage.play .stage-market,
.copilot-stage.play .stage-review {
  opacity: 0;
  transform: translateY(16px);
}
.copilot-stage.play .stage-market.in,
.copilot-stage.play .stage-review.in {
  opacity: 1;
  transform: none;
}
.stage-flag,
.stage-order,
.stage-review__actions {
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.copilot-stage.play .stage-flag,
.copilot-stage.play .stage-order,
.copilot-stage.play .stage-review__actions {
  opacity: 0;
  transform: translateY(10px);
}
.copilot-stage.play .stage-flag.in,
.copilot-stage.play .stage-order.in,
.copilot-stage.play .stage-review__actions.in {
  opacity: 1;
  transform: none;
}
.stage-order dd span,
.stage-order dd .adj {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.copilot-stage.play .stage-order dd span {
  opacity: 0;
  transform: translateX(-5px);
}
.copilot-stage.play .stage-order.adjusted dd span {
  opacity: 1;
  transform: none;
}
.copilot-stage.play .stage-order dd .adj {
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
}
.copilot-stage.play .stage-order.adjusted dd .adj {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hy-composer button.sent {
    animation: send-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes send-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.84);
  }
  100% {
    transform: scale(1);
  }
}
