/* Shared month rail: Projection reference, including the Transactions mobile rail. */
@layer nexo-month-reference {
 :root {--month-tile-width:72px;--month-tile-height:108px;--month-tile-radius:25px;--month-circle-size:56px;--month-tile-surface:#f1f3f7;--month-tile-selected:#e52a21;}
 :is(.projection-month-chips,.mobile-tx-months):has(>button:is([data-proj-month],.ux-month-capsule)) {
  display:flex!important;align-items:center!important;gap:9px!important;
  min-height:117px!important;padding:2px 2px 9px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
  scroll-snap-type:x proximity!important;
 }
 :is(.projection-month-chips>button[data-proj-month],.mobile-tx-months>button.ux-month-capsule) {
  box-sizing:border-box!important;display:flex!important;flex:0 0 var(--month-tile-width)!important;
  flex-direction:column!important;align-items:center!important;justify-content:space-between!important;
  width:var(--month-tile-width)!important;min-width:var(--month-tile-width)!important;max-width:var(--month-tile-width)!important;
  height:var(--month-tile-height)!important;min-height:var(--month-tile-height)!important;max-height:var(--month-tile-height)!important;
  padding:13px 7px 8px!important;margin:0!important;
  border:1px solid #edf0f4!important;border-radius:var(--month-tile-radius)!important;
  background:var(--month-tile-surface)!important;background-image:none!important;
  box-shadow:none!important;filter:none!important;transform:none!important;
  scroll-snap-align:center!important;
  transition:background-color .16s ease,border-color .16s ease!important;
 }
 :is(.proj-month-year,.ux-month-year) {
  display:block!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important;
  color:var(--text-secondary)!important;letter-spacing:0!important;
 }
 :is(.proj-month-circle,.ux-month-circle) {
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:var(--month-circle-size)!important;min-width:var(--month-circle-size)!important;height:var(--month-circle-size)!important;min-height:var(--month-circle-size)!important;
  border-radius:50%!important;background:#fff!important;color:var(--text-primary)!important;
  font-size:15px!important;font-weight:650!important;line-height:1!important;
  box-shadow:0 1px 4px #24394f09!important;
 }
 :is(.projection-month-chips>button[data-proj-month],.mobile-tx-months>button.ux-month-capsule)[aria-pressed=true] {
  background:var(--month-tile-selected)!important;border-color:var(--month-tile-selected)!important;
  box-shadow:0 3px 9px #a71f1917!important;
 }
 :is(.projection-month-chips,.mobile-tx-months)>button[aria-pressed=true] :is(.proj-month-year,.ux-month-year) {color:#fff!important;font-weight:650!important;}
 @media(hover:hover) and (pointer:fine) {
  :is(.projection-month-chips>button[data-proj-month],.mobile-tx-months>button.ux-month-capsule):hover:not([aria-pressed=true]) {background:#e9ecf1!important;border-color:#e0e5ec!important;}
 }
 :is(.projection-month-chips>button[data-proj-month],.mobile-tx-months>button.ux-month-capsule):focus-visible {outline:2px solid #9bafc3!important;outline-offset:2px!important;}
 @media(prefers-reduced-motion:reduce) {
  :is(.projection-month-chips>button[data-proj-month],.mobile-tx-months>button.ux-month-capsule) {transition:none!important;}
 }
 /* Initial render and re-entry must never interpolate native button borders/colors. */
 @media(max-width:800px) {
  .mobile-tx-months>button.ux-month-capsule {
   transition:none!important;animation:none!important;opacity:1!important;
  }
 }
 /* Squash & stretch runs only on deliberate month interaction. The existing
    ux-notion-selected class is added after a tap; it is absent on initial render.
    Use individual scale so the approved transform:none layout remains intact. */
 @media(max-width:800px) and (prefers-reduced-motion:no-preference) {
  .mobile-transactions .mobile-tx-months>button.ux-month-capsule {
   transform-origin:center center!important;
  }
  .mobile-transactions .mobile-tx-months>button.ux-month-capsule:active {
   scale:1.065 .955!important;
  }
  .mobile-transactions .mobile-tx-months>button.ux-month-capsule.ux-notion-selected {
   animation:nexo-tx-month-squash 420ms cubic-bezier(.22,.8,.3,1) both!important;
  }
  .mobile-transactions .mobile-tx-months>button.ux-month-capsule.ux-notion-selected>.ux-month-circle {
   animation:nexo-tx-month-circle-squash 420ms cubic-bezier(.22,.8,.3,1) both!important;
  }
 }
 @keyframes nexo-tx-month-squash {
  0% {scale:1.065 .955}
  38% {scale:.985 1.025}
  70% {scale:1.014 .993}
  100% {scale:1 1}
 }
 @keyframes nexo-tx-month-circle-squash {
  0% {scale:1.08 .94}
  38% {scale:.965 1.055}
  70% {scale:1.018 .986}
  100% {scale:1 1}
 }
}

/* During a deliberate month change, keep one traveling selected tile.
   The real selected button remains in layout but is visually hidden until arrival. */
@media(max-width:800px) and (prefers-reduced-motion:no-preference) {
 body.nexo-month-slide-active #app :is(.mobile-tx-months,.projection-month-chips)>button[aria-pressed=true] {
  visibility:hidden!important;
 }
}
@layer nexo-month-reference {
 body > .nexo-month-travel {
  position:fixed!important;z-index:2147483000!important;pointer-events:none!important;
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:space-between!important;
  padding:13px 7px 8px!important;margin:0!important;
  border:1px solid var(--month-tile-selected,#e52a21)!important;
  border-radius:var(--month-tile-radius,25px)!important;
  background:var(--month-tile-selected,#e52a21)!important;
  background-image:none!important;
  box-shadow:0 3px 9px #a71f1917!important;
  transition:none!important;will-change:transform!important;
 }
 body > .nexo-month-travel > :is(.proj-month-year,.ux-month-year) {
  display:block!important;font-size:12px!important;font-weight:650!important;line-height:1.2!important;
  color:#fff!important;letter-spacing:0!important;
 }
 body > .nexo-month-travel > :is(.proj-month-circle,.ux-month-circle) {
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:var(--month-circle-size,56px)!important;
  min-width:var(--month-circle-size,56px)!important;
  height:var(--month-circle-size,56px)!important;
  min-height:var(--month-circle-size,56px)!important;
  border-radius:50%!important;
  background:#fff!important;color:var(--text-primary)!important;
  font-size:15px!important;font-weight:650!important;line-height:1!important;
  box-shadow:0 1px 4px #24394f09!important;
 }
}
