/* au-system.css - Aurora UI system baseline interaction & utility styles */

/* ─── Button interaction states ─── */
.au-hov {
  transition: border-color var(--wm-duration-fast) ease, box-shadow var(--wm-duration-fast) ease, background var(--wm-duration-fast) ease, opacity var(--wm-duration-fast) ease;
}

.au-hov:hover {
  border-color: var(--au-hair);
}

.au-press {
  transition: all var(--wm-duration-instant) ease;
}

.au-press:active {
  transform: scale(0.98);
}

.au-press:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Spacing utilities ─── */
.au-mt-div {
  display: block;
  height: 1px;
  width: 1px;
  transition: opacity var(--wm-duration-med) ease, transform var(--wm-duration-med) ease;
}

.au-mt-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all var(--wm-duration-fast) ease;
}

.au-mt-aurora {
  transition: color var(--wm-duration-fast) ease, opacity var(--wm-duration-fast) ease, transform var(--wm-duration-fast) ease;
}

.au-mt-slash {
  transition: stroke-dashoffset var(--wm-duration-med) ease, opacity var(--wm-duration-med) ease;
}

/* ─── Spin animation ─── */
@keyframes au-spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Breathe animation ─── */
@keyframes au-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Type out "..." while a scene is still loading. Width is reserved so the title does not shift. */
@keyframes au-type-dots {
  to { clip-path: inset(0 0 0 0); }
}
.au-type-dots {
  display: inline-block;
  width: 1.15em;
  text-align: left;
}
.au-type-dots::after {
  content: "...";
  clip-path: inset(0 66.67% 0 0);
  animation: au-type-dots 1.2s steps(3, end) infinite;
}

/* Soft perimeter glow for status pills (handover load, etc.) */
@keyframes wm-glow-pill-pulse {
  0%, 100% {
    box-shadow:
      0 0 22px -6px var(--au-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      0 0 36px -2px var(--au-glow),
      0 0 56px -14px var(--au-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.wm-glow-pill {
  animation: wm-glow-pill-pulse 2.8s ease-in-out infinite;
}

[data-motion="calm"] .wm-glow-pill {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .wm-glow-pill {
    animation: none;
  }
}

/* ─── Reveal animation ─── */
@keyframes au-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wm-scene-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wm-handoff-flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}

/* Entrance only while .wm-scene-entering is present. Cleared after animationend
   (same pattern as Reveal / .au-reveal) so the opacity+transform compositor layer
   does not permanently block backdrop-filter on Glass descendants. */
.wm-scene-root.wm-scene-entering {
  animation: wm-scene-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Shared presence: modal exit, expandable rows, keyboard focus ─── */
.wm-modal-scrim--enter {
  animation: wm-modal-scrim-in 0.24s ease-out both;
}

.wm-modal-panel--enter {
  animation: wm-modal-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wm-modal-scrim--exit {
  animation: wm-modal-scrim-out 0.18s ease-in both;
  pointer-events: none;
}

.wm-modal-panel--exit {
  animation: wm-modal-panel-out 0.18s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes wm-modal-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wm-modal-scrim-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes wm-modal-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wm-modal-panel-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.99); }
}

.wm-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
}

.wm-collapse.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.wm-collapse__inner {
  min-height: 0;
  overflow: hidden;
}

:where(button, a, input, textarea, select, [role="button"]):focus-visible {
  outline: 2px solid var(--au-accent, #59bfff);
  outline-offset: 3px;
}

.wm-brain-card {
  transition:
    border-color 0.24s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
}

.wm-brain-card:hover,
.wm-brain-card:focus-visible {
  border-color: var(--au-hair) !important;
  box-shadow:
    0 0 30px -10px var(--au-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.wm-brain-card__progress {
  transform-origin: left center;
  transition: width 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-motion="calm"] .wm-modal-scrim,
[data-motion="calm"] .wm-modal-panel {
  animation-duration: 0.01ms !important;
}

[data-motion="calm"] .wm-collapse {
  transition-duration: 0.01ms !important;
}

[data-motion="calm"] .wm-scene-root.wm-scene-entering {
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
}

/* ─── HQ operating shell: chrome stays, body crossfades ─── */
.wm-operating-shell {
  /* Spine (~58) + SceneDock (~45) + a short breath before page content. */
  --wm-shell-top-clearance: 110px;
  --wm-shell-bottom-clearance: 132px;
  position: relative;
  isolation: isolate;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Growth is a hands-on workspace; its body starts immediately below the dock
   and ends immediately above Command instead of inheriting the roomy HQ stage. */
.wm-operating-shell--growth {
  --wm-shell-top-clearance: 92px;
  --wm-shell-bottom-clearance: 72px;
}
.wm-operating-shell::before,
.wm-operating-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.wm-operating-shell::before {
  top: 0;
  height: var(--wm-shell-top-clearance);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--wm-canvas) 94%, transparent) 0%, color-mix(in srgb, var(--wm-canvas) 72%, transparent) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
}

.wm-operating-shell::after {
  bottom: 0;
  height: var(--wm-shell-bottom-clearance);
  background: linear-gradient(to top, color-mix(in srgb, var(--wm-canvas) 96%, transparent) 0%, color-mix(in srgb, var(--wm-canvas) 70%, transparent) 54%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 100%);
}
.wm-operating-shell__chrome {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  isolation: isolate;
}

/* Growth: Spine hangs from viewport top as a chip; SceneDock stays normal below */
.wm-operating-shell__chrome--growth-chip.is-collapsed .wm-spine-hover-zone,
.wm-growth-chrome.is-collapsed .wm-spine-hover-zone {
  display: flex;
  justify-content: center;
}

.wm-spine--compact.wm-spine--collapsed .wm-spine-pill.is-collapsed {
  position: relative;
  isolation: isolate;
  justify-content: center;
  min-height: 0;
}

/* Soft underglow so the chip reads as emerging from the top edge */
.wm-spine--compact.wm-spine--collapsed .wm-spine-pill.is-collapsed::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--au-accent, #59bfff) 55%, transparent) 0%,
    color-mix(in srgb, var(--au-accent, #59bfff) 22%, transparent) 45%,
    transparent 72%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.wm-spine-slot {
  flex-shrink: 0;
  white-space: nowrap;
}

.wm-venture-switch__identity {
  display: none;
}

@media (max-width: 900px) {
  .wm-spine--expanded .wm-spine-pill {
    gap: 16px !important;
  }

  .wm-spine--expanded .wm-vital-item:nth-child(n + 2),
  .wm-spine--expanded .wm-engine-status-pill {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .wm-spine--expanded .wm-vitals-strip {
    display: none !important;
  }

  .wm-spine--expanded .wm-spine-pill {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 12px !important;
    gap: 8px !important;
    overflow-x: hidden !important;
  }

  .wm-spine--expanded .wm-spine-slot--account {
    min-width: 0;
  }

  .wm-account-cluster {
    gap: 6px !important;
  }

  .wm-account-cluster__divider {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .wm-spine--expanded .wm-spine-pill {
    gap: 6px !important;
  }

  .wm-spine--expanded .wm-spine-spacer {
    display: none !important;
  }

  .wm-points-pill {
    gap: 5px !important;
    padding-inline: 7px !important;
  }

  .wm-points-pill__unit {
    display: none;
  }
}

.wm-operating-shell__command {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  padding: 8px 0 max(10px, env(safe-area-inset-bottom, 0px));
}

/* User bubbles hug a short line, then wrap at a readable measure.
   Never size against a nested fit-content parent - that collapses to the longest word. */
.wm-user-bubble,
.wm-command-user {
  align-self: flex-end;
  margin-left: auto;
  box-sizing: border-box;
  width: max-content;
  max-width: min(36rem, 78%);
  min-width: 0;
}

.wm-command-user {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.wm-command-user__atts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wm-user-bubble > *,
.wm-command-user__surface {
  width: max-content;
  max-width: 100%;
  text-wrap: pretty;
}

.wm-shell-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  will-change: opacity, transform;
}

.wm-shell-view {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding-top: var(--wm-shell-top-clearance);
  padding-bottom: var(--wm-shell-bottom-clearance);
  scroll-padding-top: var(--wm-shell-top-clearance);
  scroll-padding-bottom: var(--wm-shell-bottom-clearance);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 720px) {
  .wm-operating-shell {
    --wm-shell-top-clearance: 126px;
    --wm-shell-bottom-clearance: 132px;
  }

  .wm-operating-shell--growth {
    --wm-shell-top-clearance: 126px;
    --wm-shell-bottom-clearance: 94px;
  }

  .wm-shell-view {
    margin-top: var(--wm-shell-top-clearance);
    margin-bottom: var(--wm-shell-bottom-clearance);
    padding-top: 12px;
    padding-bottom: 0;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 0;
  }

  .wm-canvas > * {
    min-width: 0;
  }

  .wm-canvas .wm-glowhov,
  .wm-canvas .wm-glass-surface {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wm-command-suggestions > button:nth-child(n + 3) {
    display: none;
  }

  .wm-site-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wm-site-text-input,
  .wm-toolkit-search-input,
  .wm-command-editor,
  .wm-screening-input,
  .wm-intake-field {
    font-size: 16px !important;
  }

  .wm-command-event-list {
    width: 100% !important;
  }

  .wm-growth-preview-approve {
    padding-inline: 9px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .wm-growth-preview-edit {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-grid;
    place-items: center;
  }

  .wm-growth-preview-edit__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wm-intake-stage {
    padding-top: 84px !important;
  }

  .wm-intake-stage button {
    min-height: 44px;
  }

  .wm-command-assistant {
    max-width: 100% !important;
  }

  .wm-user-bubble,
  .wm-command-user {
    max-width: min(36rem, 90%);
  }

  .wm-cmdbar > button,
  .wm-sr-login,
  .wm-sr-escape,
  .au-mt-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .wm-auth-input {
    font-size: 16px !important;
  }

  .wm-auth-touch {
    min-width: 44px;
    min-height: 44px;
  }

  a.wm-auth-touch {
    display: inline-flex;
    align-items: center;
  }

  /* Mark-only nav trigger. Name and points live in the opened panel. */
  .wm-venture-topbar {
    top: max(10px, env(safe-area-inset-top, 0px)) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
  }

  .wm-venture-topbar .wm-venture-topbar__chip .wm-glass-surface {
    padding: 4px !important;
  }

  .wm-venture-switch {
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center;
  }

  .wm-venture-switch__name,
  .wm-venture-switch__chevron {
    display: none;
  }

  .wm-venture-switch__identity {
    display: flex;
    flex-shrink: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px 4px;
  }

  .wm-venture-switch__identity-name {
    min-width: 0;
    font-family: "Larken", serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--wm-color-text, rgba(255, 255, 255, 0.92));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wm-venture-switch__identity-pts {
    flex-shrink: 0;
    font: 700 12px Montserrat;
    font-variant-numeric: tabular-nums;
    color: var(--wm-color-text-muted, rgba(255, 255, 255, 0.74));
  }

  .wm-spine--expanded .wm-spine-slot--venture {
    max-width: 56px !important;
  }

  .wm-sprint-chrome {
    width: 100%;
    box-sizing: border-box;
    padding-left: 64px;
    padding-right: 64px;
  }
}

.wm-shell-body--idle {
  opacity: 1;
  transform: none;
}

.wm-shell-body--exit {
  animation: wm-shell-body-out 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.wm-shell-body--enter {
  animation: wm-shell-body-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wm-shell-body--exit.wm-shell-body--fwd {
  animation-name: wm-shell-body-out-fwd;
}

.wm-shell-body--exit.wm-shell-body--back {
  animation-name: wm-shell-body-out-back;
}

.wm-shell-body--enter.wm-shell-body--fwd {
  animation-name: wm-shell-body-in-fwd;
}

.wm-shell-body--enter.wm-shell-body--back {
  animation-name: wm-shell-body-in-back;
}

@keyframes wm-shell-body-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes wm-shell-body-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wm-shell-body-out-fwd {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(-18px, 6px, 0); }
}

@keyframes wm-shell-body-out-back {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(18px, 6px, 0); }
}

@keyframes wm-shell-body-in-fwd {
  from { opacity: 0; transform: translate3d(22px, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes wm-shell-body-in-back {
  from { opacity: 0; transform: translate3d(-22px, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.wm-shell-body-fallback {
  flex: 1;
  min-height: 42vh;
}

/* Spine metrics morph when HQ chrome updates between views */
.wm-spine-metrics__inner--out {
  opacity: 0;
  transform: translateY(5px);
}

.wm-spine-metrics__inner--in {
  opacity: 1;
  transform: translateY(0);
}

/* Growth compact spine: chip ↔ full nav morph */
.wm-spine-pill {
  will-change: padding, gap, box-shadow;
}
.wm-spine-pill.is-compact.is-collapsed {
  cursor: default;
}
.wm-spine-pill.is-compact.is-collapsed::-webkit-scrollbar {
  display: none;
}
.wm-spine-context {
  flex-shrink: 0;
}

:root[data-motion="calm"] .wm-spine-metrics,
:root[data-motion="calm"] .wm-spine-metrics__inner,
:root[data-motion="calm"] .wm-spine-slot {
  transition-duration: 0.12s !important;
}

:root[data-motion="calm"] .wm-spine-metrics__inner--out {
  transform: none;
}

:root[data-motion="calm"] .wm-spine,
:root[data-motion="calm"] .wm-spine-pill,
:root[data-motion="calm"] .wm-spine-context,
:root[data-motion="calm"] .wm-spine-spacer,
:root[data-motion="calm"] .wm-spine-slot {
  transition-duration: 0.16s !important;
}

:root[data-motion="calm"] .wm-shell-body--exit {
  animation-duration: 0.12s !important;
  animation-name: au-fade-out-soft;
}

:root[data-motion="calm"] .wm-shell-body--enter {
  animation-duration: 0.14s !important;
  animation-name: au-reveal;
}

.wm-handoff-flash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, color-mix(in srgb, var(--au-accent, #59bfff) 14%, transparent), transparent 70%);
  animation: wm-handoff-flash 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-motion="calm"] .wm-handoff-flash {
  display: none;
}

/* ─── Shiny CTA button ─── */
.lab-button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--wm-duration-med) ease;
  position: relative;
  overflow: hidden;
}

.lab-button.primary {
  background: var(--shiny-cta-bg, #000);
  color: var(--shiny-cta-fg, #fff);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-button.primary:hover {
  background: var(--shiny-cta-bg-subtle, #1a1818);
  box-shadow: 0 0 24px var(--shiny-cta-highlight, #2D7CC9);
}

.lab-button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.lab-button.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ─── Ghost button ─── */
.lab-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  transition: all var(--wm-duration-fast) ease;
}

.lab-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Glow button ─── */
.lab-glow {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--wm-duration-med) ease;
  padding: 10px 20px;
  font-size: 12px;
}

.lab-glow.big {
  padding: 12px 24px;
  font-size: 13px;
}

/* ─── Input focus states ─── */
input:focus,
textarea:focus,
[contenteditable]:focus {
  outline: none;
}

/* ─── Scrollbar styling ─── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 160, 0.25);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 160, 0.4);
  background-clip: content-box;
}

/* Never allow drag-to-resize on text areas app-wide */
textarea {
  resize: none !important;
}

/* ─── Global tooltip ─── */
.wm-global-tooltip {
  position: fixed;
  max-width: 280px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(16, 18, 34, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-family: Montserrat, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  pointer-events: none;
  z-index: var(--wm-z-tooltip, 10005);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wm-global-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.wm-global-tooltip--editable {
  pointer-events: auto;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px;
  text-align: left;
  z-index: calc(var(--wm-z-tooltip, 10005) + 20);
}

.wm-global-tooltip--editable textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  max-height: 180px;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  overflow-y: auto;
  outline: none;
  box-sizing: border-box;
}

.wm-global-tooltip--editable textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

[data-wm-theme="light"] .wm-global-tooltip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.22);
  color: rgba(22, 24, 33, 0.9);
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.18);
}

[data-wm-theme="light"] .wm-global-tooltip--editable textarea::placeholder {
  color: rgba(22, 24, 33, 0.38);
}

/* ─── Build Sprint gate rail ─── */
.wm-sprint-rail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 12px;
}

.wm-sprint-rail__step-wrap,
.wm-sprint-rail__step {
  min-width: 0;
}

.wm-sprint-rail__step-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.wm-sprint-rail__step-btn--active {
  cursor: default;
}

.wm-sprint-rail__step-btn:not(.wm-sprint-rail__step-btn--active):hover .wm-sprint-rail__surface {
  filter: brightness(1.1);
}

.wm-sprint-rail__step-btn:not(.wm-sprint-rail__step-btn--active):hover .wm-sprint-rail__halo {
  opacity: 0.75;
}

.wm-sprint-rail__step-btn:not(.wm-sprint-rail__step-btn--active):active {
  transform: scale(0.97);
}

.wm-sprint-rail__step-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sr-accent, #59BFFF) 65%, transparent);
  outline-offset: 4px;
}

.wm-sprint-rail__step--active {
  cursor: default;
}

.wm-sprint-rail__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wm-sprint-rail__node {
  position: relative;
  flex-shrink: 0;
  border: none;
  background: transparent;
}

.wm-sprint-rail__halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--sr-accent, #59BFFF) 28%, transparent) 0%, transparent 68%);
  transition: opacity 0.55s ease;
}

.wm-sprint-rail__node--done .wm-sprint-rail__halo {
  opacity: 1;
}

.wm-sprint-rail__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.wm-sprint-rail__node--done .wm-sprint-rail__ring {
  opacity: 1;
  padding: 1px;
  background: conic-gradient(
    from 210deg at 50% 50%,
    rgba(255, 255, 255, 0.92) 0deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 88%, #fff 12%) 28deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 55%, transparent) 110deg,
    color-mix(in srgb, var(--sr-accent-deep, #136df4) 35%, transparent) 200deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 50%, transparent) 285deg,
    rgba(255, 255, 255, 0.78) 340deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--sr-accent, #59BFFF) 45%, transparent));
}

.wm-sprint-rail__surface {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 24%, transparent 42%),
    radial-gradient(circle at 50% 62%, rgba(0, 0, 0, 0.42) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(10, 16, 34, 0.96) 0%, rgba(4, 7, 16, 0.99) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38);
  transition: color 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
}

.wm-sprint-rail__icon {
  display: block;
  opacity: 0.92;
}

.wm-sprint-rail__node--active .wm-sprint-rail__surface,
.wm-sprint-rail__node--review .wm-sprint-rail__surface {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(8, 12, 26, 0.88) 0%, rgba(4, 7, 14, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wm-sprint-rail__node--future .wm-sprint-rail__surface {
  color: rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle at 50% 50%, rgba(8, 12, 24, 0.55) 0%, rgba(4, 7, 14, 0.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wm-sprint-rail__node--current {
  animation: au-pop 0.5s cubic-bezier(0.33, 1, 0.68, 1) both;
}

/* Destination gate pulse during Continue handoff - chrome stays, body fades. */
@keyframes wm-sprint-incoming-halo {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes wm-sprint-incoming-ring {
  0% {
    opacity: 0.55;
    transform: rotate(0deg) scale(1);
  }
  55% {
    opacity: 1;
    transform: rotate(180deg) scale(1.06);
  }
  100% {
    opacity: 0.7;
    transform: rotate(360deg) scale(1);
  }
}

@keyframes wm-sprint-incoming-flare {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  35% {
    opacity: 0.85;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.wm-sprint-rail__incoming-flare {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 45%, transparent) 0%,
    transparent 70%
  );
}

.wm-sprint-rail__node--incoming {
  animation: au-pop 0.55s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.wm-sprint-rail__node--incoming .wm-sprint-rail__halo {
  opacity: 1;
  animation: wm-sprint-incoming-halo 1.35s ease-in-out infinite;
}

.wm-sprint-rail__node--incoming .wm-sprint-rail__ring {
  opacity: 1;
  padding: 1px;
  background: conic-gradient(
    from 210deg at 50% 50%,
    rgba(255, 255, 255, 0.95) 0deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 90%, #fff 10%) 40deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 40%, transparent) 140deg,
    color-mix(in srgb, var(--sr-accent-deep, #136df4) 55%, transparent) 220deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 70%, transparent) 300deg,
    rgba(255, 255, 255, 0.85) 340deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--sr-accent, #59BFFF) 55%, transparent));
  animation: wm-sprint-incoming-ring 1.6s linear infinite;
}

.wm-sprint-rail__node--incoming .wm-sprint-rail__incoming-flare {
  animation: wm-sprint-incoming-flare 1.35s ease-out infinite;
}

.wm-sprint-rail__node--incoming .wm-sprint-rail__surface {
  color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.34),
    0 0 22px -4px color-mix(in srgb, var(--sr-accent, #59BFFF) 55%, transparent);
}

[data-motion="calm"] .wm-sprint-rail__node--incoming .wm-sprint-rail__halo,
[data-motion="calm"] .wm-sprint-rail__node--incoming .wm-sprint-rail__ring,
[data-motion="calm"] .wm-sprint-rail__node--incoming .wm-sprint-rail__incoming-flare {
  animation: none;
}

[data-motion="calm"] .wm-sprint-rail__node--incoming .wm-sprint-rail__halo,
[data-motion="calm"] .wm-sprint-rail__node--incoming .wm-sprint-rail__ring {
  opacity: 1;
}

.wm-sprint-rail__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 8px Montserrat, sans-serif;
  line-height: 1;
  box-shadow: 0 0 10px -2px color-mix(in srgb, var(--sr-badge, var(--sr-accent, #59BFFF)) 55%, transparent);
}

.wm-sprint-rail__badge--check {
  background: var(--sr-badge, #136df4);
  color: #fff;
}

.wm-sprint-rail__badge--source {
  background: var(--sr-badge, #59BFFF);
  color: #08101f;
  font-size: 7px;
}

.wm-sprint-rail__badge--pending {
  background: rgba(108, 118, 140, 0.95);
  color: #fff;
  font-size: 9px;
  box-shadow: none;
}

.wm-sprint-rail__badge--alert {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
}

.wm-sprint-rail__badge--review {
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid var(--sr-accent, #59BFFF);
  color: var(--sr-accent, #59BFFF);
  font-size: 7px;
  box-shadow: none;
}

.wm-sprint-rail__label {
  font: 600 9px Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 158, 184, 0.72);
  text-align: center;
  max-width: 76px;
  line-height: 1.25;
  transition: color 0.45s ease;
}

.wm-sprint-rail__label--done {
  color: rgba(148, 158, 184, 0.82);
}

.wm-sprint-rail__label--active {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
}

.wm-sprint-rail__label--work {
  color: color-mix(in srgb, var(--sr-accent, #59BFFF) 88%, #fff);
  font-weight: 700;
}

.wm-sprint-rail__connector {
  position: relative;
  width: clamp(18px, 3.2vw, 44px);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-sprint-rail--compact .wm-sprint-rail__connector {
  height: 44px;
  width: clamp(14px, 3vw, 34px);
}

.wm-sprint-rail__connector-line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.55s ease, box-shadow 0.55s ease;
}

.wm-sprint-rail__connector-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.55s ease, box-shadow 0.55s ease;
}

.wm-sprint-rail__connector--lit .wm-sprint-rail__connector-line {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 20%, transparent),
    color-mix(in srgb, var(--sr-accent, #59BFFF) 85%, #fff 15%),
    color-mix(in srgb, var(--sr-accent, #59BFFF) 20%, transparent)
  );
  box-shadow: 0 0 8px color-mix(in srgb, var(--sr-accent, #59BFFF) 35%, transparent);
}

.wm-sprint-rail__connector--lit .wm-sprint-rail__connector-spark {
  background: color-mix(in srgb, var(--sr-accent, #59BFFF) 90%, #fff 10%);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--sr-accent, #59BFFF) 70%, transparent),
    0 0 14px color-mix(in srgb, var(--sr-accent, #59BFFF) 40%, transparent);
}

.wm-sprint-rail--compact .wm-sprint-rail__label {
  font-size: 8px;
  max-width: 64px;
}

/* Light mode: invert dark spheres → soft light orbs with ink icons */
[data-wm-theme="light"] .wm-sprint-rail__surface {
  color: rgba(15, 23, 42, 0.82);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 24%, transparent 42%),
    radial-gradient(circle at 50% 62%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #eef3fb 0%, #dce6f4 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -8px 16px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.08);
}

[data-wm-theme="light"] .wm-sprint-rail__node--active .wm-sprint-rail__surface,
[data-wm-theme="light"] .wm-sprint-rail__node--review .wm-sprint-rail__surface {
  color: rgba(15, 23, 42, 0.92);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.9) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, #e4ecf8 0%, #cfdced 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 12px rgba(15, 23, 42, 0.1);
}

[data-wm-theme="light"] .wm-sprint-rail__node--future .wm-sprint-rail__surface {
  color: rgba(15, 23, 42, 0.38);
  background: radial-gradient(circle at 50% 50%, #f4f7fb 0%, #e8eef6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-wm-theme="light"] .wm-sprint-rail__node--incoming .wm-sprint-rail__surface {
  color: rgba(15, 23, 42, 0.95);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -8px 16px rgba(15, 23, 42, 0.06),
    0 0 22px -4px color-mix(in srgb, var(--sr-accent, #59BFFF) 45%, transparent);
}

[data-wm-theme="light"] .wm-sprint-rail__node--done .wm-sprint-rail__ring {
  background: conic-gradient(
    from 210deg at 50% 50%,
    rgba(15, 23, 42, 0.18) 0deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 88%, #fff 12%) 28deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 55%, transparent) 110deg,
    color-mix(in srgb, var(--sr-accent-deep, #136df4) 35%, transparent) 200deg,
    color-mix(in srgb, var(--sr-accent, #59BFFF) 50%, transparent) 285deg,
    rgba(15, 23, 42, 0.12) 340deg
  );
}

[data-wm-theme="light"] .wm-sprint-rail__label {
  color: rgba(15, 23, 42, 0.48);
}

[data-wm-theme="light"] .wm-sprint-rail__label--done {
  color: rgba(15, 23, 42, 0.55);
}

[data-wm-theme="light"] .wm-sprint-rail__label--active {
  color: rgba(15, 23, 42, 0.92);
}

[data-wm-theme="light"] .wm-sprint-rail__connector-line {
  background: rgba(15, 23, 42, 0.1);
}

[data-wm-theme="light"] .wm-sprint-rail__connector-spark {
  background: rgba(15, 23, 42, 0.14);
}

[data-wm-theme="light"] .wm-sprint-rail__badge--review {
  background: rgba(255, 255, 255, 0.92);
}

[data-wm-theme="light"] .wm-sprint-rail__step-btn:not(.wm-sprint-rail__step-btn--active):hover .wm-sprint-rail__surface {
  filter: brightness(0.97);
}

/* ─── Sprint stack tiles (taglines, deliverables) ─── */
.wm-stack-tile .wm-glass-surface {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.wm-stack-tile .wm-glass-surface::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--stack-tile-accent, #34d399) 0%,
    color-mix(in srgb, var(--stack-tile-accent, #34d399) 28%, transparent) 100%
  );
  box-shadow: 0 0 10px color-mix(in srgb, var(--stack-tile-accent, #34d399) 35%, transparent);
  pointer-events: none;
}

.wm-stack-tile__body {
  flex: 1;
  min-width: 0;
  padding: 13px 14px 12px 14px;
}

.wm-stack-tile--removable .wm-stack-tile__body {
  padding-right: 22px;
}

.wm-stack-tile__body .wm-editline {
  padding: 2px 0;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.wm-stack-tile__remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--stack-tile-dim, rgba(255, 255, 255, 0.38));
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity var(--wm-duration-fast) ease,
    background var(--wm-duration-fast) ease,
    color var(--wm-duration-fast) ease;
}

.wm-stack-tile:hover .wm-stack-tile__remove,
.wm-stack-tile:focus-within .wm-stack-tile__remove {
  opacity: 1;
}

.wm-stack-tile__remove:hover {
  background: color-mix(in srgb, var(--stack-tile-danger, #f87171) 16%, transparent);
  color: var(--stack-tile-danger, #f87171);
}

.wm-stack-tile__remove:focus-visible {
  opacity: 1;
  outline: 2px solid color-mix(in srgb, var(--stack-tile-accent, #34d399) 55%, transparent);
  outline-offset: 1px;
}

.wm-stack-add {
  min-height: 72px;
  border-radius: 12px;
  border: 1px dashed var(--stack-tile-hair, rgba(255, 255, 255, 0.12));
  background: transparent;
  cursor: pointer;
  font: 600 12px Montserrat, sans-serif;
  color: var(--stack-tile-accent2, #136df4);
  transition:
    border-color var(--wm-duration-fast) ease,
    background var(--wm-duration-fast) ease,
    transform var(--wm-duration-fast) ease;
}

.wm-stack-add:hover {
  border-color: color-mix(in srgb, var(--stack-tile-accent2, #136df4) 45%, transparent);
  background: color-mix(in srgb, var(--stack-tile-accent2, #136df4) 5%, transparent);
}

/* ─── Automation spec card (wm-automation-spec.jsx) ─── */
.wm-automation-spec.card-outer[data-hot="1"]::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1.3px;
  background: conic-gradient(
    from var(--au-angle, 0deg),
    transparent 0%,
    var(--wm-as-accent, #59bfff) 10%,
    var(--wm-as-accent2, #8ed8ff) 22%,
    transparent 36%,
    transparent 55%,
    var(--wm-as-accent2, #8ed8ff) 68%,
    transparent 82%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: au-rotring 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.wm-automation-spec.card-outer {
  position: relative;
}

.wm-automation-spec .stbadge[data-st="draft"],
.wm-automation-spec .stbadge[data-st="paused"],
.wm-automation-spec .stbadge[data-st="discarded"] {
  color: var(--wm-as-dim, rgba(255, 255, 255, 0.52));
}

.wm-automation-spec .stbadge[data-st="testing"] {
  color: var(--wm-as-accent, #59bfff);
}

.wm-automation-spec .stbadge[data-st="awaiting_approval"] {
  color: var(--wm-as-warn, #fbbf24);
}

.wm-automation-spec .stbadge[data-st="active"] {
  color: var(--wm-as-good, rgb(52, 211, 153));
}

.wm-automation-spec .stbadge[data-st="failed"] {
  color: var(--wm-as-danger, #ef4444);
}

.wm-automation-spec .stbadge[data-st="draft"] .stdot,
.wm-automation-spec .stbadge[data-st="paused"] .stdot,
.wm-automation-spec .stbadge[data-st="discarded"] .stdot {
  background: var(--wm-as-dim, rgba(255, 255, 255, 0.52));
}

.wm-automation-spec .stbadge[data-st="testing"] .stdot {
  background: var(--wm-as-accent, #59bfff);
  box-shadow: 0 0 9px var(--wm-as-accent, #59bfff);
}

.wm-automation-spec .stbadge[data-st="awaiting_approval"] .stdot {
  background: var(--wm-as-warn, #fbbf24);
  box-shadow: 0 0 9px var(--wm-as-warn, #fbbf24);
}

.wm-automation-spec .stbadge[data-st="active"] .stdot {
  background: var(--wm-as-good, rgb(52, 211, 153));
  box-shadow: 0 0 9px var(--wm-as-good, rgb(52, 211, 153));
}

.wm-automation-spec .stbadge[data-st="failed"] .stdot {
  background: var(--wm-as-danger, #ef4444);
}

.wm-automation-spec .trbadge[data-tr="ok"] {
  color: var(--wm-as-good, rgb(52, 211, 153));
}

.wm-automation-spec .trbadge[data-tr="fail"] {
  color: var(--wm-as-danger, #ef4444);
}

/* ─── Proposal deck - one decision card at a time, dealt off a stack ─── */
.wm-deck__stage {
  --wm-deck-glow-gutter: 36px;
  position: relative;
  /* content-box so ±gutter padding expands the clip area around a full-width card,
     instead of eating into the card. */
  box-sizing: content-box;
  width: 100%;
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  /* cards fly past the stack edge - clip sideways so a card in flight can never
     widen the page, while shadows and the release bloom still bleed vertically.
     Hot Glass glow is 0 0 36px -6px (~30px bleed). overflow-clip-margin alone is
     unreliable across browsers, so the gutter keeps the glow inside the clip box
     without letting fly-off cards expand the page. */
  overflow-x: clip;
  overflow-y: visible;
  overflow-clip-margin: 40px;
  padding-inline: var(--wm-deck-glow-gutter);
  margin-inline: calc(var(--wm-deck-glow-gutter) * -1);
}

.wm-deck__ghost {
  position: absolute;
  left: var(--wm-deck-glow-gutter);
  right: var(--wm-deck-glow-gutter);
  top: 0;
  height: 100%;
  border-radius: 14px;
  pointer-events: none;
  border: 1px solid var(--wm-deck-ghost-hair, rgba(89, 191, 255, 0.28));
  background: var(--wm-deck-ghost-bg, rgba(22, 26, 48, 0.4));
  backdrop-filter: blur(calc(14px * var(--blur-opacity, 1))) saturate(130%);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease;
}

.wm-deck__live,
.wm-deck__outgoing {
  position: relative;
  z-index: 2;
}

.wm-deck__outgoing {
  position: absolute;
  left: var(--wm-deck-glow-gutter);
  right: var(--wm-deck-glow-gutter);
  top: 0;
  pointer-events: none;
  z-index: 3;
}

@keyframes wm-deck-out-keep {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  18% {
    transform: translate3d(0, -6px, 0) rotate(0.6deg) scale(1.012);
  }
  100% {
    opacity: 0;
    transform: translate3d(46%, -16%, 0) rotate(4.5deg) scale(0.9);
  }
}

@keyframes wm-deck-out-redo {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  18% {
    transform: translate3d(0, -4px, 0) rotate(-0.6deg) scale(1.008);
  }
  100% {
    opacity: 0;
    transform: translate3d(-42%, 12%, 0) rotate(-4.5deg) scale(0.9);
  }
}

@keyframes wm-deck-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 13px, 0) scale(0.955);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes wm-deck-back-in {
  0% {
    opacity: 0;
    transform: translate3d(0, -9px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wm-deck__outgoing[data-dir="keep"] {
  animation: wm-deck-out-keep 0.46s cubic-bezier(0.4, 0.02, 0.55, 1) both;
}

.wm-deck__outgoing[data-dir="redo"] {
  animation: wm-deck-out-redo 0.46s cubic-bezier(0.4, 0.02, 0.55, 1) both;
}

.wm-deck__live[data-enter="forward"] {
  animation: wm-deck-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wm-deck__live[data-enter="back"] {
  animation: wm-deck-back-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* release bloom - one soft pulse behind the stack as a card is put down */
@keyframes wm-deck-bloom {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.wm-deck__bloom {
  position: absolute;
  inset: -18% 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  animation: wm-deck-bloom 0.72s ease-out both;
}

/* pip rail - a frosted glass channel with a slow traveling light ray behind the
   segments, so "how many decisions are left" reads as part of the Aurora system
   rather than a plain progress bar. */
.wm-deck__pip-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 14px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wm-deck-ghost-bg, rgba(22, 26, 48, 0.72)) 55%, transparent), color-mix(in srgb, var(--wm-deck-wash, rgba(255, 255, 255, 0.04)) 70%, transparent));
  border: 1px solid var(--wm-deck-hair, rgba(89, 191, 255, 0.12));
  backdrop-filter: blur(calc(12px * var(--blur-opacity, 1))) saturate(140%);
  -webkit-backdrop-filter: blur(calc(12px * var(--blur-opacity, 1))) saturate(140%);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.wm-deck__pip-track-sheen {
  position: absolute;
  inset: -60% -10%;
  background: linear-gradient(100deg, transparent 42%, color-mix(in srgb, var(--wm-deck-accent, #59bfff) 60%, transparent) 50%, transparent 58%);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: wm-deck-track-sheen 6.5s ease-in-out infinite;
}

@keyframes wm-deck-track-sheen {
  0% { transform: translateX(-140%); }
  55%, 100% { transform: translateX(140%); }
}

.wm-deck__pip {
  position: relative;
  z-index: 1;
  height: 4px;
  flex: 1 1 0;
  min-width: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.4s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.wm-deck__pip:disabled {
  cursor: default;
}

.wm-deck__pip[data-st="kept"] {
  background: var(--wm-deck-grad, linear-gradient(110deg, #8ed8ff, #59bfff));
  box-shadow: 0 0 7px -1px var(--wm-deck-glow, rgba(89, 191, 255, 0.3));
}

.wm-deck__pip[data-st="redo"] {
  background: color-mix(in srgb, #d99a3b 55%, transparent);
}

.wm-deck__pip[data-live="1"] {
  transform: scaleY(2.2);
  background: linear-gradient(90deg, var(--wm-deck-accent, #59bfff), var(--wm-deck-accent2, #8ed8ff));
  box-shadow:
    0 0 14px 0px var(--wm-deck-glow, rgba(89, 191, 255, 0.3)),
    0 0 3px 0.5px rgba(255, 255, 255, 0.55);
  animation: wm-deck-pip-pulse 2.4s ease-in-out infinite;
}

@keyframes wm-deck-pip-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.wm-deck__pip[data-live="1"][data-st="redo"] {
  background: linear-gradient(90deg, #d99a3b, #e8b577);
  box-shadow: 0 0 14px 0px rgba(217, 154, 59, 0.55), 0 0 3px 0.5px rgba(255, 255, 255, 0.4);
}

.wm-deck__pip:hover:not(:disabled) {
  transform: scaleY(2);
}

[data-motion="calm"] .wm-deck__pip-track-sheen {
  display: none;
}

[data-motion="calm"] .wm-deck__pip[data-live="1"] {
  animation: none;
}

/* action bar */
.wm-deck-keep {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font: 600 11.5px Montserrat, sans-serif;
  letter-spacing: 0.02em;
  color: var(--wm-deck-on-grad, #0a0a14);
  background: var(--wm-deck-grad, linear-gradient(110deg, #8ed8ff, #59bfff));
  box-shadow: 0 0 20px -8px var(--wm-deck-glow, rgba(89, 191, 255, 0.3));
  transition:
    box-shadow 0.24s ease,
    transform 0.16s ease,
    filter 0.24s ease;
}

.wm-deck-keep:hover {
  box-shadow: 0 0 26px -5px var(--wm-deck-glow, rgba(89, 191, 255, 0.3));
  filter: saturate(1.12);
}

.wm-deck-keep:active {
  transform: translateY(1px);
}

.wm-deck-keep__chev {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-deck-keep:hover .wm-deck-keep__chev {
  transform: translateX(2px);
}

.wm-deck-keep__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 15px;
  padding: 0 3px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1;
  opacity: 0.62;
  border: 1px solid currentColor;
}

.wm-deck-redo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 34px;
  padding: 0 9px;
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  color: var(--wm-deck-dim, rgba(255, 255, 255, 0.42));
  border: 1px solid var(--wm-deck-hair, rgba(89, 191, 255, 0.12));
  font: 600 10.5px Montserrat, sans-serif;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.wm-deck-redo:hover {
  color: #d99a3b;
  border-color: color-mix(in srgb, #d99a3b 42%, transparent);
  background: color-mix(in srgb, #d99a3b 10%, transparent);
}

.wm-deck-redo__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    margin-left 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-deck-redo:hover .wm-deck-redo__label,
.wm-deck-redo:focus-visible .wm-deck-redo__label {
  max-width: 56px;
  opacity: 1;
  margin-left: 6px;
}

/* summary ledger */
.wm-deck-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 9px 11px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.wm-deck-row:hover {
  background: var(--wm-deck-wash, rgba(255, 255, 255, 0.04));
  border-color: var(--wm-deck-hair, rgba(89, 191, 255, 0.12));
}

/* calm motion - collapse the choreography to a plain crossfade */
:root[data-motion="calm"] .wm-deck__outgoing[data-dir],
:root[data-motion="calm"] .wm-deck__live[data-enter] {
  animation-duration: 0.14s;
  animation-timing-function: ease;
}

:root[data-motion="calm"] .wm-deck__outgoing[data-dir="keep"],
:root[data-motion="calm"] .wm-deck__outgoing[data-dir="redo"] {
  animation-name: au-fade-out-soft;
}

:root[data-motion="calm"] .wm-deck__bloom {
  display: none;
}

/* ─── Decision card "why" hint ─── */
.wm-why-hint {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  border: 1px solid color-mix(in srgb, var(--wm-color-accent, #59BFFF) 28%, transparent);
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--wm-color-accent2, #8ED8FF) 22%, transparent), transparent 55%),
    color-mix(in srgb, var(--wm-color-accent, #59BFFF) 10%, rgba(16, 18, 34, 0.55));
  color: color-mix(in srgb, var(--wm-color-accent2, #8ED8FF) 78%, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 4%, transparent) inset,
    0 4px 14px -8px var(--wm-color-accent-glow, rgba(89, 191, 255, 0.3));
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.22s ease,
    background 0.18s ease;
}

.wm-why-hint__mark {
  font-family: Inconsolata, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateY(0.5px);
}

.wm-why-hint:hover,
.wm-why-hint:focus-visible {
  outline: none;
  transform: translateY(-1px) scale(1.06);
  border-color: color-mix(in srgb, var(--wm-color-accent, #59BFFF) 55%, transparent);
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--wm-color-accent2, #8ED8FF) 38%, transparent), transparent 60%),
    color-mix(in srgb, var(--wm-color-accent, #59BFFF) 28%, rgba(16, 18, 34, 0.72));
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 8%, transparent) inset,
    0 0 18px -4px var(--wm-color-accent-glow, rgba(89, 191, 255, 0.3));
}

.wm-why-hint:focus-visible {
  box-shadow:
    0 0 0 2px var(--wm-color-focus-ring, rgba(89, 191, 255, 0.3)),
    0 0 18px -4px var(--wm-color-accent-glow, rgba(89, 191, 255, 0.3));
}

[data-wm-theme="light"] .wm-why-hint {
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--wm-color-accent, #59BFFF) 16%, transparent), transparent 55%),
    rgba(255, 255, 255, 0.88);
  color: color-mix(in srgb, var(--wm-color-accent, #59BFFF) 82%, #0a0a14);
  border-color: color-mix(in srgb, var(--wm-color-accent, #59BFFF) 32%, transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 4px 12px -6px var(--wm-color-accent-glow, rgba(89, 191, 255, 0.22));
}

[data-wm-theme="light"] .wm-why-hint:hover,
[data-wm-theme="light"] .wm-why-hint:focus-visible {
  color: var(--wm-color-accent, #59BFFF);
  background:
    radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--wm-color-accent2, #8ED8FF) 22%, transparent), transparent 60%),
    #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 16px -4px var(--wm-color-accent-glow, rgba(89, 191, 255, 0.22));
}

:root[data-motion="calm"] .wm-why-hint:hover,
:root[data-motion="calm"] .wm-why-hint:focus-visible {
  transform: none;
}

@keyframes au-fade-out-soft {
  to {
    opacity: 0;
  }
}

/* ─── Gap-fill section pills + invalid field pulse ─── */
@keyframes wm-gap-pill-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes wm-gap-pill-arrive {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes wm-gap-q-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes wm-gap-q-approve {
  0% { box-shadow: 0 0 0 0 transparent; }
  45% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wm-good, #34d399) 22%, transparent), 0 0 36px -8px color-mix(in srgb, var(--wm-good, #34d399) 70%, transparent); }
  100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-good, #34d399) 14%, transparent), 0 0 28px -12px color-mix(in srgb, var(--wm-good, #34d399) 55%, transparent); }
}

.wm-gap-pill--just-done {
  animation: wm-gap-pill-pop 0.45s ease;
}

.wm-gap-pill--active {
  animation: wm-gap-pill-arrive 0.4s ease;
}

.wm-gap-q--invalid {
  animation: wm-gap-q-shake 0.35s ease;
}

.wm-gap-q--approved {
  animation: wm-gap-q-approve 0.55s ease;
}

.wm-gap-pill--nav {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: inherit;
}

.wm-gap-pill--nav:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wm-accent, #136df4) 70%, transparent);
  outline-offset: 2px;
}

:root[data-motion="calm"] .wm-gap-pill--just-done,
:root[data-motion="calm"] .wm-gap-pill--active,
:root[data-motion="calm"] .wm-gap-q--invalid,
:root[data-motion="calm"] .wm-gap-q--approved {
  animation: none;
}

/* ─── Command-area AI markdown (Aurora chat prose) ─── */
.wm-md {
  display: flex;
  flex-direction: column;
  gap: 0.72em;
  color: var(--wm-md-mut, var(--wm-color-text-muted));
  font: 400 13.5px/1.65 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.005em;
  white-space: normal;
  word-break: break-word;
}

.wm-md > :first-child { margin-top: 0; }
.wm-md > :last-child { margin-bottom: 0; }

.wm-md-p {
  margin: 0;
  color: var(--wm-md-mut, var(--wm-color-text-muted));
}

.wm-md-strong {
  color: var(--wm-md-ink, var(--wm-color-text));
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wm-md-em {
  font-style: italic;
  color: color-mix(in srgb, var(--wm-md-ink, var(--wm-color-text)) 78%, var(--wm-md-accent, var(--wm-color-accent)));
}

.wm-md-strong.wm-md-em {
  color: var(--wm-md-ink, var(--wm-color-text));
}

.wm-md-del {
  color: var(--wm-md-dim, var(--wm-color-text-dim));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.wm-md-code {
  font-family: Inconsolata, ui-monospace, monospace;
  font-size: 0.92em;
  font-weight: 500;
  color: var(--wm-md-ink, var(--wm-color-text));
  background: color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 12%, var(--wm-md-wash, rgba(255,255,255,0.04)));
  border: 1px solid color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 22%, transparent);
  border-radius: 6px;
  padding: 0.12em 0.42em;
}

.wm-md-a {
  color: var(--wm-md-accent, var(--wm-color-accent));
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size var(--wm-duration-fast) var(--wm-ease-out), color var(--wm-duration-fast) ease;
}

.wm-md-a:hover {
  color: var(--wm-md-accent2, var(--wm-color-accent2));
  background-size: 100% 1px;
}

.wm-md-h {
  margin: 0.15em 0 0;
  color: var(--wm-md-ink, var(--wm-color-text));
  font-family: "Larken", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.wm-md-h1 { font-size: 1.28em; }
.wm-md-h2 { font-size: 1.12em; }
.wm-md-h3 {
  font-size: 0.72em;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wm-md-accent, var(--wm-color-accent));
}

.wm-md-list {
  list-style: none;
  margin: 0.1em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.wm-md-li {
  position: relative;
  display: grid;
  grid-template-columns: 1.55em 1fr;
  gap: 0.55em;
  align-items: start;
  margin: 0;
  padding: 0;
}

.wm-md-ul .wm-md-li {
  grid-template-columns: 0.85em 1fr;
}

.wm-md-ul .wm-md-li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--wm-md-accent, var(--wm-color-accent));
  box-shadow: 0 0 10px -1px var(--wm-md-glow, var(--wm-color-accent-glow));
  justify-self: center;
}

.wm-md-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  margin-top: 0.08em;
  border-radius: 999px;
  font: 700 10px/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: var(--wm-md-accent, var(--wm-color-accent));
  background: color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.wm-md-li-body {
  min-width: 0;
  color: var(--wm-md-mut, var(--wm-color-text-muted));
  line-height: 1.6;
}

.wm-md-bq {
  margin: 0.15em 0;
  padding: 0.7em 0.95em 0.7em 1em;
  border-left: 2px solid var(--wm-md-accent, var(--wm-color-accent));
  border-radius: 0 12px 12px 0;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 10%, transparent),
      color-mix(in srgb, var(--wm-md-wash, rgba(255,255,255,0.04)) 70%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.wm-md-bq-line {
  margin: 0;
  font-style: italic;
  color: color-mix(in srgb, var(--wm-md-ink, var(--wm-color-text)) 82%, var(--wm-md-accent, var(--wm-color-accent)));
  line-height: 1.55;
}

.wm-md-bq-line + .wm-md-bq-line { margin-top: 0.35em; }

.wm-md-pre {
  margin: 0.1em 0;
  padding: 0.85em 1em;
  overflow-x: auto;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wm-md-glass, rgba(22,26,48,0.72)) 88%, #000);
  border: 1px solid var(--wm-md-hair, var(--wm-color-border));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.wm-md-pre code {
  font-family: Inconsolata, ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--wm-md-ink, var(--wm-color-text));
  white-space: pre;
}

.wm-md-hr {
  border: none;
  height: 1px;
  margin: 0.35em 0;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--wm-md-accent, var(--wm-color-accent)) 55%, transparent),
    transparent);
}

.wm-md-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: var(--wm-md-accent, var(--wm-color-accent));
  box-shadow: 0 0 10px var(--wm-md-glow, var(--wm-color-accent-glow));
  animation: wm-md-caret 1.05s var(--wm-ease-out) infinite;
}

@keyframes wm-md-caret {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0.15; }
}

:root[data-motion="calm"] .wm-md-caret {
  animation: none;
  opacity: 0.7;
}

@keyframes wm-stripe-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wm-global-tooltip {
    transition-duration: 0.01ms !important;
  }
}

/* ─── The Slate - the founder's deck of moves (WS-27) ───
   One card is live. Behind it sit the real second and third seats, each showing
   the sliver of card the stack leaves it and its title printed on that spine -
   so the deck says what is queued without handing a second move a second call to
   action. Acting on the top card deals it away and the next one comes forward. */
.wm-slatedeck__stack {
  position: relative;
  transition: padding-bottom 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-slatedeck__stage {
  --wm-slatedeck-gutter: 34px;
  position: relative;
  /* content-box so the gutter expands the clip area around a full-width card
     instead of eating into it. */
  box-sizing: content-box;
  width: 100%;
  transition: height 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  /* A card in flight must never widen the page: clip sideways, and keep the hot
     Glass glow (0 0 36px -6px) and the shadows bleeding vertically. */
  overflow-x: clip;
  overflow-y: visible;
  overflow-clip-margin: 44px;
  padding-inline: var(--wm-slatedeck-gutter);
  margin-inline: calc(var(--wm-slatedeck-gutter) * -1);
}

.wm-slatedeck__ghost {
  position: absolute;
  left: var(--wm-slatedeck-gutter);
  right: var(--wm-slatedeck-gutter);
  top: 0;
  height: 100%;
  border-radius: 18px;
  border-width: 1px;
  border-style: solid;
  pointer-events: none;
  /* The bottom edge is the anchor, so the visible band below the live card is
     exactly --wm-spine-band tall however tall the live card grows. */
  transform-origin: bottom center;
  backdrop-filter: blur(calc(16px * var(--blur-opacity, 1))) saturate(130%);
  -webkit-backdrop-filter: blur(calc(16px * var(--blur-opacity, 1))) saturate(130%);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.95);
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.44s ease;
}

.wm-slatedeck__spine {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: var(--wm-spine-band, 18px);
  font: 500 10.5px Montserrat, system-ui, sans-serif;
  line-height: var(--wm-spine-band, 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: wm-slatedeck-spine-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wm-slatedeck__live {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
}

.wm-slatedeck__outgoing {
  position: absolute;
  left: var(--wm-slatedeck-gutter);
  right: var(--wm-slatedeck-gutter);
  top: 0;
  pointer-events: none;
  z-index: 3;
}

/* Same motion vocabulary as the Sprint proposal deck: cleared moves fly off to
   the right, "not now" goes back down to the left. */
.wm-slatedeck__outgoing[data-dir="done"] {
  animation: wm-deck-out-keep 0.5s cubic-bezier(0.4, 0.02, 0.55, 1) both;
}

.wm-slatedeck__outgoing[data-dir="skipped"] {
  animation: wm-deck-out-redo 0.5s cubic-bezier(0.4, 0.02, 0.55, 1) both;
}

.wm-slatedeck__live[data-enter="deal"] {
  animation: wm-deck-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes wm-slatedeck-spine-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.wm-slate-caret {
  font: 600 13px Montserrat, system-ui, sans-serif;
  line-height: 1;
  display: inline-block;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-slate-caret[data-open="1"] {
  transform: rotate(90deg);
}

/* ─── The live card's phases ───
   Open, working and done are three faces of one card. Every face is out of flow,
   so the wrapper's measured height is the live face's height alone: the body
   crossfades to a progress rail and the card grows or settles in one motion,
   instead of being torn down and rebuilt at another size. */
.wm-phase {
  position: relative;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-phase__face {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-phase__face[data-on="1"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.07s;
}

.wm-movecard__label {
  animation: wm-slatedeck-spine-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Indeterminate work rail. Colours come from the venture accent on the element,
   never from --au-grad: that variable is not published to the page. */
.wm-slate-rail {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--au-accent, #59bfff) 16%, transparent);
}

.wm-slate-rail span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--au-accent2, #8ed8ff), var(--au-accent, #59bfff));
  box-shadow: 0 0 14px var(--au-glow, rgba(89, 191, 255, 0.3));
  animation: wm-slate-rail-sweep 1.7s ease-in-out infinite;
}

@keyframes wm-slate-rail-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(390%); }
}

/* A narrow seat cannot spare 34px of glow gutter on each side. */
@media (max-width: 720px) {
  .wm-slatedeck__stage {
    --wm-slatedeck-gutter: 12px;
  }

  .wm-slatedeck__spine {
    left: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-slatedeck__outgoing {
    display: none;
  }

  .wm-slate-rail span {
    width: 100%;
    opacity: 0.55;
  }
}

[data-motion="calm"] .wm-slatedeck__spine,
[data-motion="calm"] .wm-movecard__label {
  animation: none;
}

@keyframes wm-add-tool-drift {
  from { background-position: 0% 40%, 100% 0%, 0 0; }
  to { background-position: 12% 60%, 80% 20%, 0 0; }
}

/* Today Growth preview - the card is a real registry composition, while this
   shell supplies the wide editorial layout and the first-run hover veil. */
.wm-growth-preview-card > .wm-glass-surface {
  position: relative;
  overflow: hidden;
}

.wm-growth-preview-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: filter 0.42s ease, opacity 0.42s ease, transform 0.42s ease;
}

.wm-growth-preview-head,
.wm-growth-preview-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wm-growth-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.wm-growth-preview-posts,
.wm-growth-preview-aside,
.wm-growth-preview-aside section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.wm-growth-preview-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.wm-growth-preview-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.wm-growth-preview-post {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.wm-growth-preview-post > * {
  width: 100% !important;
}

.wm-asset-thumbnail {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--au-hair-soft);
  border-radius: 13px;
  background: var(--au-wash);
  cursor: pointer;
  isolation: isolate;
}

.wm-asset-thumbnail::after {
  content: '';
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 5, 12, 0.78), transparent);
}

.wm-asset-thumbnail img,
.wm-asset-thumbnail video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.wm-asset-thumbnail__kind,
.wm-asset-thumbnail__open {
  position: absolute;
  z-index: 2;
  color: rgba(255,255,255,0.9);
  font: 650 8px Montserrat;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wm-asset-thumbnail__kind {
  top: 9px;
  left: 9px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(3,5,12,0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wm-asset-thumbnail__open {
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.78;
}

.wm-asset-thumbnail:hover img,
.wm-asset-thumbnail:hover video {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.wm-asset-thumbnail:hover .wm-asset-thumbnail__open {
  opacity: 1;
}

.wm-asset-thumbnail:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 3px;
}

.wm-growth-preview-post:focus-visible,
.wm-growth-preview-actions button:focus-visible,
.wm-growth-playbook-link:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 3px;
}

.wm-growth-preview-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.wm-growth-preview-approve,
.wm-growth-playbook-link {
  border: 0;
  cursor: pointer;
  font: 600 10px Montserrat;
}

.wm-growth-preview-approve {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--au-on-grad, #0a0a14);
  background: var(--au-grad, linear-gradient(110deg, #8ed8ff, #59bfff));
}

.wm-growth-preview-approve[aria-disabled="true"] {
  cursor: default;
}

.wm-growth-preview-approve.is-approved {
  color: var(--au-ink);
  background: color-mix(in srgb, var(--au-good, #34d399) 18%, var(--au-wash));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--au-good, #34d399) 38%, transparent);
}

.wm-growth-source-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wm-growth-source-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 14px;
  border: 1px dashed var(--au-hair-soft);
  border-radius: 13px;
  background: color-mix(in srgb, var(--au-wash) 62%, transparent);
}

.wm-growth-source-row,
.wm-growth-update-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--au-hair-soft);
  border-radius: 13px;
  background: color-mix(in srgb, var(--au-wash) 82%, transparent);
}

.wm-growth-source-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.wm-growth-example-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--au-hair-soft);
  border-radius: 999px;
  color: var(--au-dim);
  font: 600 8px Montserrat;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-growth-preview-updates {
  margin-top: 5px;
}

.wm-growth-playbook-link {
  align-self: flex-start;
  padding: 0;
  color: var(--au-accent);
  background: transparent;
}

.wm-growth-preview-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--au-hair-soft);
}

.wm-growth-destination {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 13px 13px 11px;
  overflow: hidden;
  border: 1px solid var(--au-hair-soft);
  border-radius: 15px;
  color: var(--au-ink);
  background:
    radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--au-accent) 13%, transparent), transparent 44%),
    color-mix(in srgb, var(--au-wash) 82%, transparent);
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-growth-destination:hover {
  border-color: color-mix(in srgb, var(--au-accent) 48%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.wm-growth-destination:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 3px;
}

.wm-growth-destination__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  pointer-events: none;
}

.wm-growth-destination__studio {
  perspective: 160px;
}

.wm-growth-destination__post {
  position: absolute;
  width: 43px;
  height: 53px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--au-accent) 28%, var(--au-hair-soft));
  border-radius: 7px;
  background: color-mix(in srgb, var(--au-panel) 88%, transparent);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-growth-destination__post--back {
  transform: translateX(-20px) rotate(-8deg) scale(0.88);
  opacity: 0.48;
}

.wm-growth-destination__post--middle {
  transform: translateX(18px) rotate(7deg) scale(0.92);
  opacity: 0.7;
}

.wm-growth-destination__post--front {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  transform: translateY(-1px);
}

.wm-growth-destination__post-media {
  flex: 1;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
    linear-gradient(145deg, var(--au-accent), color-mix(in srgb, var(--au-accent) 20%, #6158e8));
}

.wm-growth-destination__post-line {
  width: 72%;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--au-ink) 52%, transparent);
}

.wm-growth-destination:hover .wm-growth-destination__post--back {
  transform: translateX(-27px) rotate(-11deg) scale(0.88);
}

.wm-growth-destination:hover .wm-growth-destination__post--middle {
  transform: translateX(25px) rotate(10deg) scale(0.92);
}

.wm-growth-destination__media {
  width: 100%;
}

.wm-growth-destination__viewfinder {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--au-accent) 40%, var(--au-hair-soft));
  border-radius: 11px;
  background:
    linear-gradient(var(--au-accent), var(--au-accent)) 7px 7px / 10px 1px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) 7px 7px / 1px 10px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) calc(100% - 7px) 7px / 10px 1px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) calc(100% - 7px) 7px / 1px 10px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) 7px calc(100% - 7px) / 10px 1px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) 7px calc(100% - 7px) / 1px 10px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) calc(100% - 7px) calc(100% - 7px) / 10px 1px no-repeat,
    linear-gradient(var(--au-accent), var(--au-accent)) calc(100% - 7px) calc(100% - 7px) / 1px 10px no-repeat,
    color-mix(in srgb, var(--au-panel) 76%, transparent);
  transition: border-color 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-growth-destination__orb {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--au-accent2), var(--au-accent) 48%, #4e53d8);
  box-shadow: 0 0 24px color-mix(in srgb, var(--au-accent) 28%, transparent);
}

.wm-growth-destination__play {
  z-index: 1;
  margin-left: 2px;
  color: var(--au-on-grad, #0a0a14);
  font-size: 10px;
}

.wm-growth-destination__spark {
  position: absolute;
  top: -3px;
  right: calc(50% - 48px);
  color: var(--au-accent2);
  font-size: 17px;
  text-shadow: 0 0 12px color-mix(in srgb, var(--au-accent) 60%, transparent);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-growth-destination:hover .wm-growth-destination__viewfinder {
  border-color: color-mix(in srgb, var(--au-accent) 72%, transparent);
  transform: scale(1.04);
}

.wm-growth-destination:hover .wm-growth-destination__spark {
  transform: translate(2px, -3px) rotate(12deg) scale(1.12);
}

.wm-growth-destination__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.wm-growth-destination__label strong {
  overflow: hidden;
  color: var(--au-ink);
  font: 600 11px Montserrat;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-growth-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--au-accent) 19%, transparent), transparent 52%),
    color-mix(in srgb, var(--au-bg) 76%, transparent);
  backdrop-filter: blur(13px) saturate(135%);
  -webkit-backdrop-filter: blur(13px) saturate(135%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.wm-growth-start-kicker {
  color: var(--au-accent);
  font: 600 10px Montserrat;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wm-growth-start-copy {
  max-width: 420px;
  color: var(--au-ink);
  font: 400 13px/1.55 Montserrat;
}

.wm-growth-preview-card:not(.is-started):hover .wm-growth-preview-card__content,
.wm-growth-preview-card:not(.is-started):focus-within .wm-growth-preview-card__content {
  filter: blur(6px);
  opacity: 0.42;
  transform: scale(1.015);
}

.wm-growth-preview-card:not(.is-started):hover .wm-growth-start-overlay,
.wm-growth-preview-card:not(.is-started):focus-within .wm-growth-start-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .wm-growth-preview-card:not(.is-started) .wm-growth-preview-card__content {
    filter: blur(5px);
    opacity: 0.46;
  }

  .wm-growth-preview-card:not(.is-started) .wm-growth-start-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1050px) {
  .wm-growth-preview-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr);
    gap: 18px;
  }

  .wm-growth-preview-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wm-growth-preview-layout {
    grid-template-columns: 1fr;
  }

  .wm-growth-preview-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-growth-preview-card__content,
  .wm-growth-start-overlay,
  .wm-growth-destination,
  .wm-growth-destination__post,
  .wm-growth-destination__viewfinder,
  .wm-growth-destination__spark {
    transition: none;
  }
}

.wm-add-tool-card {
  position: relative;
  min-height: 164px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  border: 1px solid rgba(19, 109, 244, 0.28);
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(19, 109, 244, 0.55), transparent 58%),
    radial-gradient(90% 80% at 110% 120%, rgba(34, 211, 238, 0.22), transparent 52%),
    linear-gradient(165deg, rgba(12, 18, 42, 0.92), rgba(4, 5, 12, 0.88));
  background-size: 140% 140%, 120% 120%, 100% 100%;
  animation: wm-add-tool-drift 14s ease-in-out infinite alternate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -28px rgba(19, 109, 244, 0.55);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

.wm-add-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.wm-add-tool-card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.wm-add-tool-card:hover,
.wm-add-tool-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  outline: none;
}

.wm-add-tool-card.is-open {
  cursor: default;
  transform: none;
}

.wm-add-tool-card > * {
  position: relative;
  z-index: 1;
}

.wm-add-tool-plus {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eefc;
  font: 500 22px Larken, serif;
  line-height: 1;
}

.wm-toolkit-search {
  margin-top: 10px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(19, 109, 244, 0.12), transparent 60%),
    rgba(8, 13, 31, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.wm-toolkit-search-input {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 5, 12, 0.55);
  color: inherit;
  font: 400 15px Inconsolata, ui-monospace, monospace;
  outline: none;
}

.wm-toolkit-search-input:focus {
  border-color: rgba(19, 109, 244, 0.7);
  box-shadow: 0 0 0 3px rgba(19, 109, 244, 0.18);
}

.wm-toolkit-hit {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.wm-toolkit-hit:hover,
.wm-toolkit-hit:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .wm-add-tool-card,
  .wm-add-tool-card:hover {
    transform: none;
    animation: none;
  }
}

/* ─── Handover close - the two things that keep running ─── */
/* Two lanes, not two cards: a hairline splits them, nothing boxes them in. */
.wm-nm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  text-align: left;
}

.wm-nm-rule {
  display: block;
  height: 1px;
  width: 100%;
  background-image: linear-gradient(90deg, transparent, var(--wm-nm-hair), transparent);
}

@media (min-width: 800px) {
  .wm-nm-grid {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    gap: 38px;
  }

  .wm-nm-rule {
    height: 100%;
    width: 1px;
    background-image: linear-gradient(180deg, transparent, var(--wm-nm-hair) 22%, var(--wm-nm-hair) 78%, transparent);
  }
}

.wm-nm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.wm-nm:focus-visible {
  outline: 2px solid var(--wm-nm-accent, currentColor);
  outline-offset: 8px;
  border-radius: 6px;
}

.wm-nm-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.wm-nm-tick {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 1px;
  transform: rotate(45deg);
}

.wm-nm-eyebrow-rule {
  flex: 1;
  height: 1px;
  min-width: 0;
}

.wm-nm-visual {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.wm-nm:hover .wm-nm-visual,
.wm-nm:focus-visible .wm-nm-visual {
  transform: translateY(-5px);
}

.wm-nm-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 9px 15px 9px 17px;
  border-radius: 999px;
  border: 1px solid;
  font: 600 12px Montserrat, sans-serif;
  letter-spacing: 0.01em;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.wm-nm:hover .wm-nm-cta {
  background: color-mix(in srgb, var(--wm-nm-accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--wm-nm-accent) 62%, transparent) !important;
}

.wm-nm-arrow {
  display: inline-block;
  font: 600 13px Montserrat, sans-serif;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.wm-nm:hover .wm-nm-arrow {
  transform: translateX(4px);
}

/* Growth: the week filling with posts */
.wm-nm-post {
  animation: wm-nm-post-in 0.75s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes wm-nm-post-in {
  from { opacity: 0; transform: translateY(16px) scale(0.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wm-nm-slot {
  animation: wm-nm-slot-in 0.5s ease both;
}

@keyframes wm-nm-slot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wm-nm-sheen {
  animation: wm-nm-sheen 5.2s cubic-bezier(0.45, 0, 0.2, 1) 1.6s infinite;
}

@keyframes wm-nm-sheen {
  0% { transform: translateX(-130%); opacity: 0; }
  14% { opacity: 0.9; }
  52% { opacity: 0.9; }
  70%, 100% { transform: translateX(130%); opacity: 0; }
}

/* Automations: the loop that keeps firing */
.wm-nm-pulse {
  animation: wm-nm-pulse 4.6s linear infinite;
}

@keyframes wm-nm-pulse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}

.wm-nm-node-glow {
  animation: wm-nm-node-glow 4.6s linear infinite;
}

@keyframes wm-nm-node-glow {
  0% { opacity: 0.85; }
  14% { opacity: 0; }
  100% { opacity: 0; }
}
/* Retain mounted content while its backing snapshot reconciles. The tiny sweep
   confirms activity without flashing a loader or resetting local controls. */
.wm-retained-refresh {
  position: relative;
}
.wm-retained-refresh::before {
  content: '';
  position: absolute;
  z-index: 4;
  top: -5px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--au-accent, #136df4);
  opacity: 0;
  pointer-events: none;
}
.wm-retained-refresh.is-refreshing::before {
  width: 100%;
  opacity: .8;
  transition: width .45s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.wm-brain-field {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.wm-brain-field.is-saved {
  border-color: color-mix(in srgb, var(--au-good, #39d98a) 62%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--au-good, #39d98a) 12%, transparent);
  transform: translateY(-1px);
}
.wm-decision-settled {
  animation: wm-settled-in .34s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes wm-settled-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wm-retained-refresh.is-refreshing::before,
  .wm-brain-field,
  .wm-decision-settled {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
[data-motion="calm"] .wm-retained-refresh.is-refreshing::before,
[data-motion="calm"] .wm-brain-field,
[data-motion="calm"] .wm-decision-settled {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}

/* ─── Top up modal (points checkout) ─── */
.wm-topup {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wm-topup-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 40px;
}
.wm-topup-title {
  font-family: "Larken", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}
.wm-topup-lede {
  font: 400 12.5px/1.5 Montserrat, sans-serif;
  max-width: 34em;
}
.wm-topup-packs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wm-topup-pack {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  isolation: isolate;
}
.wm-topup-pack.au-press:disabled {
  opacity: 1;
  cursor: wait;
}
.wm-topup-pack.au-press.is-muted:disabled {
  opacity: 0.32;
  cursor: default;
}
.wm-topup-pack.is-opening {
  box-shadow: 0 0 0 1px var(--wm-topup-accent, var(--wm-color-accent, #59BFFF)), 0 16px 36px -20px color-mix(in srgb, var(--wm-topup-accent, #59BFFF) 70%, transparent);
}
.wm-topup-pack.is-opening::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, color-mix(in srgb, var(--wm-topup-accent, #59BFFF) 22%, transparent) 50%, transparent 82%);
  background-size: 220% 100%;
  animation: wm-topup-shimmer 1.15s ease-in-out infinite;
}
.wm-topup-pack-copy,
.wm-topup-pack-meta {
  position: relative;
  z-index: 1;
}
.wm-topup-pack-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wm-topup-pack-name {
  font: 700 13.5px/1.2 Montserrat, sans-serif;
}
.wm-topup-pack-blurb {
  font: 400 11.5px/1.4 Montserrat, sans-serif;
}
.wm-topup-pack-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.wm-topup-pack-price {
  font-family: "Larken", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wm-topup-pack-points {
  font: 600 11px/1 Montserrat, sans-serif;
  font-variant-numeric: tabular-nums;
}
.wm-topup-pack-wait {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 11px;
}
.wm-topup-spinner {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--wm-topup-accent, #59BFFF) 28%, transparent);
  border-top-color: var(--wm-topup-accent, var(--wm-color-accent, #59BFFF));
  animation: au-spinSlow 0.75s linear infinite;
}
.wm-topup-err {
  font: 400 12px/1.5 Montserrat, sans-serif;
}
.wm-topup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wm-topup-stripe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.wm-topup-stripe img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}
.wm-topup-stripe-copy {
  font: 600 12px/1 Montserrat, sans-serif;
  letter-spacing: 0.01em;
}
.wm-topup-stripe-word {
  color: #635BFF;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@keyframes wm-topup-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-topup-pack.is-opening::after,
  .wm-topup-spinner {
    animation: none !important;
  }
  .wm-topup-pack.is-opening::after {
    background: color-mix(in srgb, var(--wm-topup-accent, #59BFFF) 12%, transparent);
  }
}
[data-motion="calm"] .wm-topup-pack.is-opening::after,
[data-motion="calm"] .wm-topup-spinner {
  animation: none !important;
}

.wm-handoff-choice:not(:disabled) {
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.28s ease;
}

.wm-handoff-choice:not(:disabled):hover,
.wm-handoff-choice:not(:disabled):focus-visible {
  border-color: var(--au-hair) !important;
  background: color-mix(in srgb, var(--au-accent) 8%, transparent) !important;
  box-shadow:
    0 0 22px -10px var(--au-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wm-handoff-choice__arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.33, 1, 0.68, 1), color 0.22s ease;
}

.wm-handoff-choice:not(:disabled):hover .wm-handoff-choice__arrow,
.wm-handoff-choice:not(:disabled):focus-visible .wm-handoff-choice__arrow {
  transform: translateX(3px);
  color: var(--au-accent);
}

/* ─── Authenticated boot veil (login -> workspace) ─── */
.wm-boot-screen-host {
  display: block;
  width: 100%;
  min-height: 100dvh;
}
.wm-boot-screen {
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--wm-boot-ink, rgba(255, 255, 255, 0.93));
}
.wm-boot-screen.is-embed {
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  padding: 36px 24px;
  background: var(--wm-boot-bg, #04050c);
}
.wm-boot-screen.is-embed .wm-boot-orb-a,
.wm-boot-screen.is-embed .wm-boot-orb-b,
.wm-boot-screen.is-embed .wm-boot-orb-c {
  width: 70%;
  height: 70%;
}
.wm-boot-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wm-boot-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.wm-boot-orb-a {
  width: 52vw;
  height: 52vw;
  left: -12vw;
  top: -16vw;
  animation: wm-boot-orb-a 28s ease-in-out infinite alternate;
}
.wm-boot-orb-b {
  width: 42vw;
  height: 42vw;
  right: -14vw;
  top: 8vh;
  opacity: 0.42;
  animation: wm-boot-orb-b 34s ease-in-out infinite alternate;
}
.wm-boot-orb-c {
  width: 38vw;
  height: 38vw;
  left: 22vw;
  bottom: -18vw;
  opacity: 0.38;
  animation: wm-boot-orb-c 31s ease-in-out infinite alternate;
}
.wm-boot-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wm-boot-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: min(420px, 88vw);
  text-align: center;
  overflow: visible;
}
.wm-boot-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  padding: 18px;
  margin: -18px;
  animation: wm-boot-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-boot-pulse {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  overflow: visible;
}
.wm-boot-pulse::before,
.wm-boot-pulse::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--wm-boot-grad, linear-gradient(110deg, #8ED8FF, #59BFFF));
}
.wm-boot-pulse::before {
  inset: 10.5px;
  box-shadow: 0 0 18px 6px var(--wm-boot-glow, rgba(89, 191, 255, 0.3));
}
.wm-boot-pulse::after {
  inset: 2px;
  opacity: 0.4;
  filter: blur(9px);
  animation: wm-boot-pulse-glow 2.4s ease-in-out infinite;
}
.wm-boot-filament-track {
  width: min(240px, 64vw);
  height: 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.wm-boot-filament {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  flex: none;
  border-radius: 999px;
  transform: translate3d(-110%, 0, 0);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--wm-boot-accent, #59BFFF) 42%,
    var(--wm-boot-accent2, #8ED8FF) 58%,
    transparent 100%
  );
  background-size: 100% 100%;
  box-shadow: 0 0 12px var(--wm-boot-glow, rgba(89, 191, 255, 0.3));
  animation: wm-boot-filament-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.wm-boot-filament::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  background-size: 42% 100%;
  background-repeat: no-repeat;
  background-position: -50% 0;
  animation: wm-boot-filament-run 2.4s cubic-bezier(0.45, 0, 0.2, 1) 1.2s infinite;
}
.wm-boot-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wm-boot-title {
  display: block;
  font-family: "Larken", serif;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--wm-boot-ink, rgba(255, 255, 255, 0.93));
  animation: wm-boot-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.wm-boot-sub {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--wm-boot-mut, rgba(255, 255, 255, 0.62));
  animation: wm-boot-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.wm-boot-screen.is-leaving .wm-boot-shell {
  animation: wm-boot-open 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-boot-screen.is-leaving .wm-boot-aurora {
  animation: wm-boot-veil-out 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-boot-destination {
  min-height: 100dvh;
}
.wm-boot-destination.is-veiled {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(0.992);
}
.wm-boot-destination.is-revealed {
  animation: wm-boot-scene-in 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-boot-cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  transition:
    opacity 0.88s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}
body:has(.wm-boot-cover) .au-modetoggle {
  opacity: 0;
  pointer-events: none;
}
.wm-boot-cover .wm-boot-screen-host,
.wm-boot-cover .wm-boot-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.wm-boot-cover.is-leaving {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

@keyframes wm-boot-orb-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(7vw, 5vw) scale(1.12); }
}
@keyframes wm-boot-orb-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 4vw) scale(1.1); }
}
@keyframes wm-boot-orb-c {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, -5vw) scale(1.14); }
}
@keyframes wm-boot-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes wm-boot-pulse-glow {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.72; }
}
@keyframes wm-boot-filament-in {
  from { transform: translate3d(-110%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes wm-boot-filament-run {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
@keyframes wm-boot-open {
  from { opacity: 1; transform: scale(1); filter: none; }
  to { opacity: 0; transform: scale(1.06); filter: blur(8px); }
}
@keyframes wm-boot-veil-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes wm-boot-scene-in {
  from { opacity: 0; transform: translateY(10px) scale(0.992); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

[data-wm-theme="light"] .wm-boot-orb {
  mix-blend-mode: multiply;
  opacity: 0.28;
}
[data-wm-theme="light"] .wm-boot-grain {
  opacity: 0.03;
}

@media (prefers-reduced-motion: reduce) {
  .wm-boot-orb,
  .wm-boot-pulse::after,
  .wm-boot-filament,
  .wm-boot-filament::after,
  .wm-boot-mark,
  .wm-boot-title,
  .wm-boot-sub {
    animation: none !important;
  }
  .wm-boot-filament {
    transform: none;
  }
  .wm-boot-filament::after {
    display: none;
  }
  .wm-boot-cover,
  .wm-boot-cover.is-leaving {
    transition-duration: 0.01s;
    filter: none;
  }
  .wm-boot-screen.is-leaving .wm-boot-shell,
  .wm-boot-screen.is-leaving .wm-boot-aurora,
  .wm-boot-destination.is-revealed {
    animation-duration: 0.01s;
  }
}
[data-motion="calm"] .wm-boot-orb,
[data-motion="calm"] .wm-boot-filament,
[data-motion="calm"] .wm-boot-filament::after {
  animation: none !important;
}
[data-motion="calm"] .wm-boot-filament {
  transform: none;
}
[data-motion="calm"] .wm-boot-filament::after {
  display: none;
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: wm-boot-vt-out 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
::view-transition-new(root) {
  animation: wm-boot-vt-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wm-boot-vt-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(10px); }
}
@keyframes wm-boot-vt-in {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
