/* Kenneth feedback (2026-09-30): Analytics, Inbox and Swipe pages.
   Loaded after every other stylesheet on those three pages only. */

/* A — hero: the mascot now stands still inside the video; the figure only enters once. */
.manage-hero-motion.fx-hero-enter {
  animation: fx-hero-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fx-hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* B — Inbox: clickable rows, an active conversation from the start, a clear hint. */
.fx-inbox-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--omg-muted, #4f4a56);
}
.fx-inbox-hint b {
  color: var(--omg-ink, #141018);
  font-weight: 700;
}
.fx-inbox-hint-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--omg-tint-pink, #ffe8f0);
  color: var(--omg-pink-ink, #c81e5b);
  font-size: 15px;
  font-weight: 700;
}
.fx-inbox-hint-dot {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--omg-tint-pink, #ffe8f0);
}
.fx-inbox-hint-dot::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--omg-pink, #ff4d8d);
  animation: fx-pulse 1.6s ease-in-out infinite;
}
@keyframes fx-pulse {
  50% {
    transform: scale(1.5);
    opacity: 0.55;
  }
}
.inbox-layout {
  border-color: transparent;
  box-shadow: var(--omg-shadow);
}
.inbox-list {
  border-right: 0;
  box-shadow: inset -1px 0 0 #f1eff3;
}
.inbox-list button {
  position: relative;
  align-items: flex-start;
  padding: 15px 36px 15px 12px;
  border: 0;
  overflow: hidden;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.inbox-list button:hover {
  background: #fff;
  box-shadow: var(--omg-shadow);
}
.inbox-list button:focus-visible {
  outline: 3px solid var(--omg-pink, #ff4d8d);
  outline-offset: 2px;
}
.inbox-list button[aria-pressed='true'] {
  background: #fff;
  border: 0;
  box-shadow:
    inset 4px 0 0 var(--omg-pink, #ff4d8d),
    var(--omg-shadow);
}
.inbox-list button[aria-pressed='true'] .inbox-avatar {
  background: var(--omg-pink, #ff4d8d);
  color: #141018; /* ink paa pink, 6,0:1 — BRAND.md §A.3 */
}
.inbox-list button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.inbox-list small {
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted, #4f4a56);
  margin: 4px 0 6px;
}
.fx-inbox-open {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--omg-pink-ink, #c81e5b);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.inbox-list button:hover .fx-inbox-open,
.inbox-list button:focus-visible .fx-inbox-open,
.inbox-list button[aria-pressed='true'] .fx-inbox-open {
  opacity: 1;
  transform: none;
}
.inbox-list button[aria-pressed='true'] .fx-inbox-open {
  background: var(--omg-tint-pink, #ffe8f0);
}
/* Auto-preview timer: a thin bar that fills, then the next conversation opens. */
.fx-inbox-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--omg-pink, #ff4d8d);
  transform-origin: left;
  animation: fx-inbox-timer 4.2s linear both;
}
.fx-inbox-paused .fx-inbox-timer {
  animation-play-state: paused;
}
@keyframes fx-inbox-timer {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.inbox-thread.fx-thread-in > * {
  animation: fx-thread-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fx-thread-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.inbox-message small b {
  color: var(--omg-ink, #141018);
  margin-right: 6px;
}
.inbox-thread form small,
.inbox-post-context span,
.inbox-message small {
  font-size: 13px;
  font-weight: 500;
}
.inbox-thread-heading > div > span {
  font-size: 13px;
  font-weight: 600;
}

/* C — Swipe: the homepage deck on the left, the calendar on the right. */
.fx-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 10px 0 0;
}
.fx-deck-progress {
  align-self: stretch;
  max-width: 420px;
  width: 100%;
  margin: 0 auto 70px;
}
.fx-deck-progress > span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--omg-ink, #141018);
}
.fx-deck .swipe-demo {
  /* room for the coach, which the homepage places just left of the card */
  margin: 0 0 0 170px;
  width: calc(100% - 170px);
}
.fx-deck .swipe-card {
  margin: 0;
  min-height: 200px;
}
.fx-deck .swipe-card img {
  display: block;
}
.fx-deck .swipe-card figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted, #4f4a56);
}
.fx-deck .swipe-button:disabled,
.fx-deck .coach-demo:disabled {
  opacity: 0.45;
  cursor: default;
}
.fx-deck .swipe-help {
  font-size: 13px;
  font-weight: 500;
}
.fx-deck-done .swipe-help,
.fx-deck-done .swipe-stamp {
  visibility: hidden;
}
.fx-deck-finished {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 25px;
  text-align: center;
}
.fx-deck-finished > span {
  font-size: 54px;
  line-height: 1;
  color: var(--omg-pink, #ff4d8d);
}
.fx-deck-finished h3 {
  font-size: 22px;
  margin: 14px 0 8px;
}
.fx-deck-finished p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--omg-muted, #4f4a56);
}
.fx-card-done {
  cursor: default;
}
.fx-deck-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 26px;
}
.fx-deck-foot .mg-swipe-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted, #4f4a56);
}
.fx-deck-undo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--omg-shadow);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--omg-text, #2a2530);
  cursor: pointer;
}
.fx-deck-undo:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: default;
}
@media (max-width: 1150px) {
  .fx-deck .swipe-demo {
    margin-left: 140px;
    width: calc(100% - 140px);
  }
}
@media (max-width: 900px) {
  .fx-deck .swipe-demo {
    margin-left: 110px;
    width: calc(100% - 110px);
  }
}
@media (max-width: 760px) {
  .fx-deck-progress {
    margin-bottom: 40px;
  }
}
@media (max-width: 650px) {
  .fx-deck .swipe-demo {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
  }
  .fx-deck {
    padding-left: 100px;
  }
  .fx-deck-progress,
  .fx-deck-foot {
    margin-left: -100px;
    width: calc(100% + 100px);
    max-width: none;
  }
  .fx-deck .swipe-coach {
    bottom: 76px;
  }
  .fx-deck .swipe-controls {
    margin-left: -100px;
    width: calc(100% + 100px);
    gap: 10px;
  }
  .fx-deck .swipe-button {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    min-height: 46px;
  }
  .fx-deck .swipe-button,
  .fx-deck .coach-demo,
  .fx-deck .coach-speech,
  .fx-deck .swipe-card figcaption {
    font-size: 13px;
  }
  .fx-inbox-hint {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .manage-hero-motion.fx-hero-enter,
  .inbox-thread.fx-thread-in > *,
  .fx-inbox-hint-dot::after {
    animation: none;
  }
}

.fx-deck-undo > span {
  font-size: 17px;
  line-height: 1;
}

/* C2 — Swipe calendar (client feedback 2026-09-30): a real calendar the approved
   creative plops into. No box-in-box: the aside is flat, cells are split by hairlines. */
.mg-swipe-demo .mg-swipe-calendar {
  padding: 4px 0 0 34px;
  background: none;
  border: 0;
  border-left: 1px solid #f1e9f0;
  border-radius: 0;
  box-shadow: none;
}
.mg-swipe-demo .mg-swipe-calendar > p {
  font-size: 14px;
  font-weight: 500;
}
.mg-swipe-demo .mg-swipe-calendar .manage-footnote {
  margin-top: 16px;
  font-size: 13px;
}
#mg-swipe-calendar {
  display: block;
  margin-top: 22px;
}
.fx-cal {
  --fx-line: #efe8ee;
  font-variant-numeric: tabular-nums;
}
.fx-cal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.fx-cal-top b {
  font-size: 17px;
  font-weight: 700;
  color: var(--omg-ink, #141018);
}
.fx-cal-top span {
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-pink-ink, #c81e5b);
}
.fx-cal-week,
.fx-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.fx-cal-week > span {
  padding: 0 0 8px 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted, #4f4a56);
}
.fx-cal-week > .fx-cal-weekend {
  color: #7a7480;
}
.fx-cal-s {
  display: none;
}
.fx-cal-grid {
  gap: 1px;
  background: var(--fx-line);
  border-top: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
}
/* Reset the old list-row styles that manage.css/mobile.css hang on the slot class. */
.fx-cal .fx-cal-cell,
.fx-cal .mg-swipe-calendar-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 6px 6px 7px;
  border: 0;
  background: #fff;
}
.fx-cal .fx-cal-weekend {
  background: #fbf8fb;
}
.fx-cal .fx-cal-cell > span {
  min-width: 0;
  font-size: 13px;
}
.fx-cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 22px !important;
  height: 22px;
  padding: 0 4px;
  margin: -2px 0 0 -2px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1;
  white-space: nowrap;
  color: var(--omg-text, #2a2530);
}
.fx-cal-weekend .fx-cal-num {
  color: #7a7480;
}
/* The first date of the view is marked like "today" in a calendar app, but softly. */
.fx-cal-first .fx-cal-num {
  background: var(--omg-tint-pink, #ffe8f0);
  color: var(--omg-pink-ink, #c81e5b);
  font-weight: 700;
}
.fx-cal-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 64px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.fx-cal-cell:not(.mg-swipe-calendar-slot)::after {
  /* keeps plain days as tall as slot days */
  content: '';
  display: block;
  width: 100%;
  max-width: 64px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.fx-cal-cell:not(.mg-swipe-calendar-slot) {
  padding-bottom: 27px;
}
.fx-cal .mg-swipe-calendar-slot .fx-cal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(20, 16, 24, 0.1),
    0 4px 10px rgba(20, 16, 24, 0.08);
}
.fx-cal .mg-swipe-calendar-slot .fx-cal-thumb em {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  transition: background 0.2s;
}
/* The small plus: about 65% of the old 32px box, a hairline ring instead of a box. */
.fx-cal .mg-slot-plus {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 1.5px solid #ffc4d9;
  border-radius: 50%;
  background: #fff;
  font-size: 0;
  color: var(--omg-pink, #ff4d8d);
}
.fx-cal .mg-slot-plus::before,
.fx-cal .mg-slot-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.fx-cal .mg-slot-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
/* The next free slot is where the following approval lands. */
.fx-cal .fx-slot-next .fx-cal-thumb em {
  background: linear-gradient(180deg, #fff5f9, #ffe8f0);
}
.fx-cal .fx-slot-next .mg-slot-plus {
  border-color: var(--omg-pink, #ff4d8d);
  background: var(--omg-pink, #ff4d8d);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.35);
  animation: fx-cal-next 2.4s ease-out infinite;
}
@keyframes fx-cal-next {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.35);
  }
  60%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 77, 141, 0);
  }
}
.fx-cal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: #7a7480;
  white-space: nowrap;
}
.fx-cal-meta svg {
  flex: none;
  width: 11px;
  height: 11px;
}
.fx-slot-filled .fx-cal-meta {
  color: var(--omg-text, #2a2530);
}
.fx-slot-filled .fx-cal-meta svg {
  color: var(--omg-pink, #ff4d8d);
}
/* Landing: the thumbnail pops in with a little bounce and a sparkle burst. */
.fx-cal .fx-slot-new .fx-cal-thumb img {
  animation: fx-cal-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.fx-cal .fx-slot-new .fx-cal-thumb::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  border: 2px solid var(--omg-pink, #ff4d8d);
  opacity: 0;
  animation: fx-cal-ring 0.7s ease-out both;
  pointer-events: none;
}
.fx-cal .fx-slot-new {
  animation: fx-cal-flash 0.9s ease-out both;
}
@keyframes fx-cal-pop {
  0% {
    transform: scale(0.82);
  }
  55% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fx-cal-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
@keyframes fx-cal-flash {
  from {
    background: var(--omg-tint-pink, #ffe8f0);
  }
}
.fx-cal-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  pointer-events: none;
}
.fx-cal-ghost {
  position: fixed;
  z-index: 60;
  margin: 0;
  object-fit: cover;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 1000px) {
  .mg-swipe-demo .mg-swipe-calendar {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid #f1e9f0;
    background: none;
    border-radius: 0;
  }
  .fx-cal-thumb,
  .fx-cal-cell:not(.mg-swipe-calendar-slot)::after {
    max-width: 72px;
  }
}
@media (max-width: 650px) {
  .fx-cal-l {
    display: none;
  }
  .fx-cal-s {
    display: inline;
  }
  .fx-cal-week > span {
    padding-left: 4px;
    text-align: left;
  }
  .fx-cal .fx-cal-cell,
  .fx-cal .mg-swipe-calendar-slot {
    padding: 4px 3px 6px;
  }
  .fx-cal-num {
    margin: 0;
    min-width: 20px;
    height: 20px;
  }
  .fx-cal-meta svg {
    display: none;
  }
  .fx-cal-meta {
    letter-spacing: -0.02em;
  }
  .fx-cal .mg-slot-plus {
    width: 20px;
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-cal .fx-slot-next .mg-slot-plus,
  .fx-cal .fx-slot-new,
  .fx-cal .fx-slot-new .fx-cal-thumb img,
  .fx-cal .fx-slot-new .fx-cal-thumb::after {
    animation: none;
  }
}
