/* ── Playful mobile layer (colour blocks, pills, motion) ──────────────────
   Loaded after app.css and page stylesheets. The shared bits (tokens, press
   feedback, spot-card look, orb) apply everywhere; the layout changes only
   apply below 768px so the desktop layout stays as it is. */

:root {
  --fx-block-warm: #fde6d6;
  --fx-block-warm-2: #fcd3b8;
  --fx-block-blue: #dde9fb;
  --fx-block-blue-2: #c7dbf7;
  --fx-block-ink: #1b140c;
  --fx-block-muted: #4f4338;
  --fx-pill-bg: #15120e;
  --fx-pill-ink: #ffffff;
  --fx-block-radius: 30px;
  --fx-spring: cubic-bezier(.34, 1.56, .64, 1);
  --fx-snappy: cubic-bezier(.2, .9, .3, 1);
  --fx-story: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  --fx-block-warm: #1c2541;
  --fx-block-warm-2: #3a2a3a;
  --fx-block-blue: #1f2c42;
  --fx-block-blue-2: #27385a;
  --fx-block-ink: #f3efe9;
  --fx-block-muted: #cfc6ba;
  --fx-pill-bg: #f3efe9;
  --fx-pill-ink: #15120e;
}

/* ── Press-in feedback (snappy), springs back ── */
.btn:active,
.fx-segmented-btn:active,
.fx-prompt-chip:active,
.fx-attn-chip:active,
.fx-ai-round:active,
.fx-hello-icon:active,
.px-row:active,
.px-next-card:active {
  transform: scale(.96);
  transition: transform .12s var(--fx-snappy);
}

.fx-prompt-chip,
.fx-attn-chip,
.fx-ai-round,
.fx-hello-icon,
.px-next-card,
.fx-spot {
  transition: transform .18s var(--fx-spring), box-shadow .22s var(--fx-story), background-color .2s var(--fx-story);
}

/* ── Friendly hello header (avatar + greeting + bell) ── */
.fx-hello-tools {
  display: none;
}

.fx-hello-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fx-block-warm-2);
  color: var(--fx-block-ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
}

a.fx-hello-avatar:hover,
a.fx-hello-avatar:focus-visible {
  color: var(--fx-block-ink);
  text-decoration: none;
}

.fx-hello-icon {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fx-card-border);
  background: var(--fx-surface);
  color: var(--fx-ink);
  font-size: 1.1rem;
  text-decoration: none;
}

.fx-hello-icon:hover,
.fx-hello-icon:focus-visible {
  color: var(--fx-ink);
  transform: translateY(-1px);
}

.fx-hello-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fx-primary);
  box-shadow: 0 0 0 2px var(--fx-surface);
}

/* ── AI assistant hero card with the orb ── */
.fx-ai-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 auto;
  max-width: 34rem;
  padding: 1.6rem 1.25rem 1.4rem;
  border-radius: var(--fx-block-radius);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--fx-block-blue) 0%, transparent 60%),
    linear-gradient(160deg, var(--fx-block-warm) 0%, var(--fx-block-warm-2) 100%);
  color: var(--fx-block-ink);
  box-shadow: var(--fx-shadow);
}

.fx-ai-hero .fx-chat-greeting,
.fx-ai-hero .fx-chat-mark {
  color: var(--fx-block-ink);
}

.fx-ai-hero .fx-chat-lead {
  color: var(--fx-block-muted);
  font-weight: 500;
}

.fx-ai-orb {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 1.1rem;
}

.fx-ai-orb span {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  animation: fx-orb-morph 9s var(--fx-story) infinite alternate;
}

.fx-ai-orb span:nth-child(1) {
  background: radial-gradient(circle at 35% 30%, #fff7ef 0%, #ffb27f 38%, #e8743b 72%, #c2410c 100%);
  box-shadow: 0 18px 40px -12px rgba(232, 116, 59, .65);
}

.fx-ai-orb span:nth-child(2) {
  inset: 10%;
  background: radial-gradient(circle at 60% 60%, rgba(122, 167, 245, .85) 0%, rgba(122, 167, 245, 0) 70%);
  mix-blend-mode: screen;
  filter: blur(6px);
  animation-duration: 7s;
  animation-direction: alternate-reverse;
}

.fx-ai-orb span:nth-child(3) {
  inset: -18%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 170, 110, .55) 0%, rgba(255, 170, 110, 0) 65%);
  filter: blur(14px);
  animation: fx-orb-breathe 4.8s var(--fx-story) infinite alternate;
}

@keyframes fx-orb-morph {
  0%   { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; transform: rotate(0deg) scale(1); }
  50%  { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; transform: rotate(8deg) scale(1.03); }
  100% { border-radius: 42% 58% 60% 40% / 56% 40% 60% 44%; transform: rotate(-6deg) scale(.98); }
}

@keyframes fx-orb-breathe {
  from { opacity: .6; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1.06); }
}

.fx-ai-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.3rem;
}

.fx-ai-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .78);
  color: var(--fx-block-ink);
  font-size: 1.25rem;
  box-shadow: 0 6px 16px -8px rgba(60, 35, 10, .35);
}

:root[data-theme="dark"] .fx-ai-round {
  background: rgba(255, 255, 255, .12);
}

.fx-ai-round:hover,
.fx-ai-round:focus-visible {
  transform: translateY(-2px);
}

.fx-ai-round-main {
  width: 76px;
  height: 76px;
  font-size: 1.7rem;
  background: var(--fx-pill-bg);
  color: var(--fx-pill-ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
}

:root[data-theme="dark"] .fx-ai-round-main {
  background: var(--fx-pill-bg);
}

.fx-ai-round-label {
  display: block;
  margin-top: .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fx-block-muted);
}

/* Pill-shaped quick suggestions everywhere */
.fx-prompt-chip {
  border-radius: 999px;
  min-height: 44px;
  padding: .5rem 1rem;
}

.fx-prompt-chip:hover,
.fx-prompt-chip:focus-visible {
  transform: translateY(-1px);
}

/* Skeleton shimmer while the assistant is thinking */
.fx-ai-skeleton {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: min(15rem, 60vw);
  margin-top: .35rem;
}

.fx-ai-skeleton span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fx-surface-soft) 0%, var(--fx-card-border) 45%, var(--fx-surface-soft) 90%);
  background-size: 220% 100%;
  animation: fx-shimmer 1.3s linear infinite;
}

.fx-ai-skeleton span:nth-child(2) { width: 82%; }
.fx-ai-skeleton span:nth-child(3) { width: 58%; }

.fx-ai-thinking-wrap {
  display: flex;
  flex-direction: column;
}

@keyframes fx-shimmer {
  from { background-position: 110% 0; }
  to   { background-position: -110% 0; }
}

/* ── Soft check-mark on success messages ── */
.fx-toast-success .fx-toast-icon {
  display: inline-block;
  animation: fx-check-pop .5s var(--fx-spring) .12s both;
  border-radius: 50%;
}

@keyframes fx-check-pop {
  0%   { transform: scale(.2) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(0deg); opacity: 1; box-shadow: 0 0 0 0 rgba(15, 157, 107, .35); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(15, 157, 107, 0); }
}

/* ── Smooth fade when filtered content arrives ── */
[data-request-list],
[data-booking-list],
.px-list,
.fx-ai-hero {
  animation: fx-fade-up .32s var(--fx-story) both;
}

@keyframes fx-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Small mascot mark above the message box ── */
.fx-chat-mascot {
  display: flex;
  margin: 0 0 .35rem .35rem;
  line-height: 0;
}

.fx-chat-mascot svg {
  overflow: visible;
  transform-origin: 50% 90%;
}

.fx-mascot-roof { fill: #e8743b; }
.fx-mascot-body { fill: #fbf7f1; stroke: #e7dccd; stroke-width: 1; }
.fx-mascot-screen { fill: #1d1a24; filter: drop-shadow(0 0 3px rgba(232, 116, 59, .55)); }
.fx-mascot-eyes circle { fill: #ffb27f; }

.fx-mascot-eyes {
  transform-origin: 20px 25px;
  animation: fx-mascot-blink 5s steps(1, end) infinite;
}

@keyframes fx-mascot-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(.15); }
}

.fx-chat.is-thinking .fx-chat-mascot svg {
  animation: fx-mascot-pulse 1.1s var(--fx-story) infinite alternate;
}

.fx-chat.is-thinking .fx-mascot-screen {
  filter: drop-shadow(0 0 6px rgba(232, 116, 59, .9));
}

@keyframes fx-mascot-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateY(-1px); }
}

/* ── Phones ── */
@media (max-width: 767px) {
  /* Hello header */
  .fx-hello-tools {
    display: flex;
    align-items: center;
    gap: .6rem;
  }

  .fx-hello {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
  }

  .fx-hello .fx-hello-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Filters and tabs become a scrolling row of rounded pills */
  .fx-segmented {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    padding: 0 0 .25rem;
    border: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .fx-segmented::-webkit-scrollbar { display: none; }

  .fx-segmented-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: .55rem 1.05rem;
    font-size: .86rem;
    color: var(--fx-ink);
    background: var(--fx-surface);
    border: 1px solid var(--fx-card-border);
  }

  .fx-segmented-btn.is-active {
    background: var(--fx-pill-bg);
    border-color: var(--fx-pill-bg);
    color: var(--fx-pill-ink);
    box-shadow: none;
  }

  .fx-segmented-btn.is-active .px-seg-count {
    color: inherit;
    opacity: .8;
  }

  /* Main action: bold black pill */
  :root:not(.fx-x) main .btn.btn-primary,
  :root:not(.fx-x) .fx-job-draft .btn.btn-primary {
    --bs-btn-bg: var(--fx-pill-bg);
    --bs-btn-border-color: var(--fx-pill-bg);
    --bs-btn-color: var(--fx-pill-ink);
    --bs-btn-hover-bg: var(--fx-pill-bg);
    --bs-btn-hover-border-color: var(--fx-pill-bg);
    --bs-btn-hover-color: var(--fx-pill-ink);
    --bs-btn-active-bg: var(--fx-pill-bg);
    --bs-btn-active-border-color: var(--fx-pill-bg);
    --bs-btn-active-color: var(--fx-pill-ink);
    border-radius: 999px;
    min-height: 44px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
  }

  :root:not(.fx-x) main .btn.btn-primary:hover,
  :root:not(.fx-x) main .btn.btn-primary:focus-visible {
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .65);
  }

  main .btn-success,
  main .btn-outline-primary,
  main .btn-outline-secondary,
  main .btn-outline-danger {
    border-radius: 999px;
    min-height: 44px;
  }

  /* The one important thing: a big rounded colour block */
  .fx-spot,
  .px-next-card,
  [data-request-list] > :first-child .fx-request-card {
    border: 0 !important;
    border-radius: var(--fx-block-radius) !important;
    background: linear-gradient(160deg, var(--fx-block-warm) 0%, var(--fx-block-warm-2) 100%) !important;
    color: var(--fx-block-ink);
    box-shadow: 0 18px 36px -24px rgba(154, 52, 18, .55);
    padding: 1.3rem 1.25rem;
  }

  .fx-spot-blue,
  .px-next-card {
    background: linear-gradient(160deg, var(--fx-block-blue) 0%, var(--fx-block-blue-2) 100%) !important;
    box-shadow: 0 18px 36px -24px rgba(37, 99, 235, .45);
  }

  .fx-spot .text-muted,
  .fx-spot .small,
  .fx-spot .px-row-meta,
  .fx-spot .jd-meta-label,
  .fx-spot .px-stat-label,
  .fx-spot .px-stat-hint,
  .px-next-card .px-row-meta,
  [data-request-list] > :first-child .fx-request-meta {
    color: var(--fx-block-muted) !important;
  }

  .fx-spot .px-row,
  .fx-spot .jd-meta-tile {
    background: transparent;
    color: var(--fx-block-ink);
  }

  li.fx-spot {
    padding: .2rem;
  }

  li.fx-spot .px-row {
    padding: .9rem .9rem;
  }

  /* A spot row inside a list sits on its own, above the rest of the list */
  .px-list:has(> li.fx-spot) {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .px-list:has(> li.fx-spot) > li:not(.fx-spot) {
    background: var(--fx-surface);
    border-left: 1px solid var(--fx-card-border);
    border-right: 1px solid var(--fx-card-border);
  }

  .px-list:has(> li.fx-spot) > li.fx-spot + li {
    margin-top: .9rem;
    border-top: 1px solid var(--fx-card-border);
    border-radius: 18px 18px 0 0;
  }

  .px-list:has(> li.fx-spot) > li:not(.fx-spot):last-child {
    border-bottom: 1px solid var(--fx-card-border);
    border-radius: 0 0 18px 18px;
  }

  .px-list:has(> li.fx-spot) > li.fx-spot + li:last-child {
    border-radius: 18px;
  }

  .px-next-card {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
  }

  .px-next-card .px-next-title {
    font-size: 1.2rem;
    font-weight: 800;
  }

  .px-next-card .px-next-cta {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    background: var(--fx-pill-bg);
    color: var(--fx-pill-ink);
    font-weight: 700;
  }

  /* Other cards: softer, rounder */
  .card-soft,
  .fx-section,
  .px-card,
  .px-stat {
    border-radius: 24px;
  }

  /* Generous spacing */
  .fx-page-header {
    margin-bottom: 1.1rem;
  }

  /* Assistant on phones: the card is the first thing you see */
  .fx-chat-welcome {
    text-align: center;
    padding-bottom: 1rem;
  }

  .fx-ai-hero {
    padding: 1.4rem 1rem 1.2rem;
  }

  .fx-ai-orb {
    width: 84px;
    height: 84px;
    margin-bottom: .8rem;
  }

  .fx-ai-hero-actions {
    margin-top: 1rem;
  }

  .fx-ai-hero .fx-chat-greeting {
    font-size: 1.65rem;
  }

  .fx-hello .px-greeting i {
    display: none;
  }

  .fx-hello .px-greeting {
    font-size: 1.45rem;
  }

  .fx-hello .px-lead {
    font-size: .9rem;
    margin-bottom: 0;
  }

  /* Never cut off the top of the welcome card on short screens. */
  .fx-chat.is-empty .fx-chat-col {
    justify-content: safe center;
    overflow-y: auto;
    padding-top: .5rem;
  }

  .fx-chat-hello {
    margin: .4rem 0 1rem;
    text-align: left;
  }

  .fx-chat-hello-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    color: var(--fx-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Bottom tab bar: clean, with a soft pill behind the active tab */
  .fx-bottom-link.active i {
    background: var(--fx-accent-soft);
    border-radius: 999px;
    padding: .2rem .9rem;
  }
}

@media (hover: hover) {
  .card-soft:hover,
  .fx-spot:hover,
  .px-next-card:hover {
    transform: translateY(-2px);
  }
}

/* ── Bubble: visibly alive (wobble, float, swirling highlight); livelier while thinking ── */
.fx-ai-orb {
  animation: fx-orb-float 5s ease-in-out infinite;
}

.fx-ai-orb span:nth-child(1) {
  animation: fx-orb-wobble 4.5s ease-in-out infinite;
}

.fx-ai-orb span:nth-child(2) {
  animation: fx-orb-swirl 6s linear infinite;
}

.fx-chat.is-thinking .fx-ai-orb {
  animation-duration: 2.2s;
}

.fx-chat.is-thinking .fx-ai-orb span:nth-child(1) {
  animation-duration: 1.6s;
}

.fx-chat.is-thinking .fx-ai-orb span:nth-child(2) {
  animation-duration: 2s;
}

.fx-chat.is-thinking .fx-ai-orb span:nth-child(3) {
  animation-duration: 1.2s;
}

@keyframes fx-orb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes fx-orb-wobble {
  0%   { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; transform: rotate(0deg) scale(1); }
  25%  { border-radius: 60% 40% 44% 56% / 44% 60% 40% 56%; transform: rotate(10deg) scale(1.05); }
  50%  { border-radius: 40% 60% 62% 38% / 58% 38% 62% 42%; transform: rotate(-4deg) scale(.97); }
  75%  { border-radius: 55% 45% 40% 60% / 40% 56% 44% 60%; transform: rotate(-12deg) scale(1.04); }
  100% { border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; transform: rotate(0deg) scale(1); }
}

@keyframes fx-orb-swirl {
  0%   { transform: rotate(0deg) translateX(8%) scale(1); }
  50%  { transform: rotate(180deg) translateX(14%) scale(1.12); }
  100% { transform: rotate(360deg) translateX(8%) scale(1); }
}

/* ── No movement for people who asked for less motion ── */
@media (prefers-reduced-motion: reduce) {
  .fx-ai-orb,
  .fx-ai-orb span,
  .fx-ai-skeleton span,
  .fx-mascot-eyes,
  .fx-chat.is-thinking .fx-chat-mascot svg,
  .fx-toast-success .fx-toast-icon,
  [data-request-list],
  [data-booking-list],
  .px-list,
  .fx-ai-hero {
    animation: none !important;
  }

  .btn:active,
  .fx-segmented-btn:active,
  .fx-prompt-chip:active,
  .fx-attn-chip:active,
  .fx-ai-round:active,
  .fx-hello-icon:active,
  .px-row:active,
  .px-next-card:active,
  .fx-prompt-chip:hover,
  .fx-ai-round:hover,
  .fx-hello-icon:hover,
  .card-soft:hover,
  .fx-spot:hover,
  .px-next-card:hover {
    transform: none !important;
  }

  .fx-prompt-chip,
  .fx-attn-chip,
  .fx-ai-round,
  .fx-hello-icon,
  .px-next-card,
  .fx-spot {
    transition: none;
  }
}


/* ── The mascot's walks and moods (static/marketplace/mascot.js) ── */
.fx-chat-mascot {
  position: relative;
  height: 44px;
  margin: 0 .5rem .25rem;
}
.fx-mascot {
  --x: 0px;
  position: absolute;
  left: 0;
  bottom: -2px;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  transform: translateX(var(--x));
  transition: transform var(--walk-ms, 0ms) linear;
  -webkit-tap-highlight-color: transparent;
}
.fx-mascot:focus { outline: none; }
.fx-mascot:focus-visible { outline: 2px solid var(--fx-primary); outline-offset: 3px; border-radius: 50%; }
.fx-mascot-flip { display: inline-block; transition: transform .25s ease; }
.fx-mascot.is-left .fx-mascot-flip { transform: scaleX(-1); }
.fx-mascot svg { overflow: visible; }
.fx-mascot-foot { fill: #3a3440; }
.fx-mascot-bodygroup, .fx-mascot-foot, .fx-mascot-lift { transform-box: fill-box; transform-origin: 50% 100%; }

/* Resting: no legs, sitting on the bar. Legs pop out for an outing. */
.fx-mascot-lift { transform: translateY(5px); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.fx-mascot-feet { opacity: 0; transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 0; transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.fx-mascot.has-legs .fx-mascot-lift { transform: translateY(0); }
.fx-mascot.has-legs .fx-mascot-feet { opacity: 1; transform: scaleY(1); }

.fx-mascot-ouch path, .fx-mascot-sleepy path, .fx-mascot-brows path { stroke: #ffb27f; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.fx-mascot-ouch, .fx-mascot-sleepy, .fx-mascot-zzz, .fx-mascot-brows, .fx-mascot-steam { opacity: 0; }
.fx-mascot-zzz { font: 700 8px/1 "Inter", sans-serif; fill: #8a7e70; }
.fx-mascot-steam circle { fill: #c9c1b6; }
.fx-mascot-screen, .fx-mascot-roof, .fx-mascot-eyes circle { transition: fill .3s ease, filter .3s ease; }

/* Walking: little steps and a bob. */
.fx-mascot.is-walking .fx-mascot-bodygroup { animation: fx-mascot-bob .32s ease-in-out infinite alternate; }
.fx-mascot.is-walking .fx-mascot-foot-l { animation: fx-mascot-step .32s ease-in-out infinite alternate; }
.fx-mascot.is-walking .fx-mascot-foot-r { animation: fx-mascot-step .32s ease-in-out infinite alternate-reverse; }
@keyframes fx-mascot-bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-2px) rotate(2deg); } }
@keyframes fx-mascot-step { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }

/* Funny things it does on an outing. */
.fx-mascot.is-hop .fx-mascot-bodygroup { animation: fx-mascot-hop .5s cubic-bezier(.3, 1.6, .5, 1) 2; }
@keyframes fx-mascot-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(0) scale(1.08, .9); } 60% { transform: translateY(-7px) scale(.95, 1.06); } }
.fx-mascot.is-look .fx-mascot-eyes { animation: fx-mascot-look 1.8s ease-in-out; }
@keyframes fx-mascot-look { 0%, 100% { transform: translateX(0); } 25%, 40% { transform: translateX(-2.5px); } 60%, 80% { transform: translateX(2.5px); } }
.fx-mascot.is-wiggle .fx-mascot-bodygroup { animation: fx-mascot-wiggle .7s ease-in-out; }
@keyframes fx-mascot-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-5deg); } }
.fx-mascot.is-spin .fx-mascot-flip { animation: fx-mascot-spin .8s ease-in-out; }
@keyframes fx-mascot-spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(0); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.fx-mascot.is-dance .fx-mascot-bodygroup { animation: fx-mascot-dance .4s ease-in-out 4 alternate; }
@keyframes fx-mascot-dance { from { transform: rotate(-12deg) translateY(-2px); } to { transform: rotate(12deg) translateY(0); } }
.fx-mascot.is-sleep .fx-mascot-eyes { opacity: 0; animation: none; }
.fx-mascot.is-sleep .fx-mascot-sleepy { opacity: 1; }
.fx-mascot.is-sleep .fx-mascot-zzz { animation: fx-mascot-zzz 1.6s ease-in-out infinite; }
@keyframes fx-mascot-zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(5px, -9px); } }

/* Poked. */
.fx-mascot.is-hit .fx-mascot-bodygroup { animation: fx-mascot-hit .55s cubic-bezier(.2, .9, .3, 1.3); }
.fx-mascot.is-hit .fx-mascot-eyes { opacity: 0; animation: none; }
.fx-mascot.is-hit .fx-mascot-ouch { opacity: 1; }
@keyframes fx-mascot-hit {
  0% { transform: scale(1, 1); }
  15% { transform: scale(1.25, .7); }
  35% { transform: scale(.85, 1.15) rotate(-10deg); }
  55% { transform: translateX(-3px) rotate(8deg); }
  75% { transform: translateX(3px) rotate(-5deg); }
  100% { transform: none; }
}

/* Getting crosser: brows, a redder face, steam, and a stomp. */
.fx-mascot[data-anger="2"] .fx-mascot-brows,
.fx-mascot[data-anger="3"] .fx-mascot-brows,
.fx-mascot[data-anger="4"] .fx-mascot-brows,
.fx-mascot[data-anger="5"] .fx-mascot-brows { opacity: 1; }
.fx-mascot[data-anger="3"] .fx-mascot-screen { filter: drop-shadow(0 0 5px rgba(232, 80, 40, .8)); }
.fx-mascot[data-anger="3"] .fx-mascot-eyes circle { fill: #ff8a5c; }
.fx-mascot[data-anger="4"] .fx-mascot-screen,
.fx-mascot[data-anger="5"] .fx-mascot-screen { fill: #3a1411; filter: drop-shadow(0 0 7px rgba(230, 50, 30, 1)); }
.fx-mascot[data-anger="4"] .fx-mascot-eyes circle,
.fx-mascot[data-anger="5"] .fx-mascot-eyes circle,
.fx-mascot[data-anger="4"] .fx-mascot-brows path,
.fx-mascot[data-anger="5"] .fx-mascot-brows path { fill: #ff5a3c; stroke: #ff5a3c; }
.fx-mascot[data-anger="4"] .fx-mascot-roof,
.fx-mascot[data-anger="5"] .fx-mascot-roof { fill: #d6331c; }
.fx-mascot[data-anger="4"] .fx-mascot-steam,
.fx-mascot[data-anger="5"] .fx-mascot-steam { animation: fx-mascot-steam 1s ease-out infinite; }
@keyframes fx-mascot-steam { 0% { opacity: .9; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(-8px) scale(1.3); } }
.fx-mascot[data-anger="5"].is-hit .fx-mascot-bodygroup { animation: fx-mascot-stomp .5s ease-in-out; }
@keyframes fx-mascot-stomp { 0%, 100% { transform: none; } 20%, 60% { transform: translateY(-5px) scale(1.05); } 40%, 80% { transform: translateY(1px) scale(1.1, .9); } }
.fx-mascot.is-sulking .fx-mascot-flip { transform: scaleX(-1); }

/* Speech bubble. */
.fx-mascot-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: 220px;
  padding: .4rem .7rem;
  border-radius: 14px 14px 14px 4px;
  background: #1d1a24;
  color: #fff;
  font: 600 .8rem/1.3 "Inter", sans-serif;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(4px) scale(.9);
  transform-origin: 20% 100%;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.fx-mascot-bubble.is-shown { opacity: 1; transform: none; }
.fx-mascot[data-anger="4"] .fx-mascot-bubble,
.fx-mascot[data-anger="5"] .fx-mascot-bubble { background: #b42318; font-weight: 800; }
:root[data-theme="dark"] .fx-mascot-bubble { background: #f5f1ea; color: #1d1a24; }
:root[data-theme="dark"] .fx-mascot[data-anger="4"] .fx-mascot-bubble,
:root[data-theme="dark"] .fx-mascot[data-anger="5"] .fx-mascot-bubble { background: #ff6b52; color: #1d1a24; }

@media (prefers-reduced-motion: reduce) {
  .fx-mascot, .fx-mascot-lift, .fx-mascot-feet { transition: none; }
  .fx-mascot .fx-mascot-bodygroup, .fx-mascot .fx-mascot-foot, .fx-mascot .fx-mascot-eyes,
  .fx-mascot .fx-mascot-zzz, .fx-mascot .fx-mascot-steam, .fx-mascot .fx-mascot-flip { animation: none !important; }
}


/* Hard hat for inspecting a problem. */
.fx-mascot-hat { opacity: 0; transform: translateY(-14px); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .2s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.fx-mascot-hat-dome, .fx-mascot-hat-ridge { fill: #f7c318; }
.fx-mascot-hat-brim { fill: #e3ad07; }
.fx-mascot-hat-ridge { fill: #ffd84d; }
.fx-mascot.has-hat .fx-mascot-hat { opacity: 1; transform: translateY(0); }
.fx-mascot.is-thinking-hard .fx-mascot-eyes { animation: fx-mascot-ponder 1.6s ease-in-out infinite; }
@keyframes fx-mascot-ponder { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.5px, -1.5px); } }
.fx-mascot.is-thinking-hard .fx-mascot-bodygroup { animation: fx-mascot-tilt 1.6s ease-in-out infinite; }
@keyframes fx-mascot-tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .fx-mascot-hat { transition: none; }
}


/* Asleep at home: eyes shut, no "z"; now and then a peek with one eye or both. */
.fx-mascot.is-sleep .fx-mascot-zzz { animation: none; opacity: 0; }
.fx-mascot.is-sleep .fx-mascot-eyes { opacity: 1; }
.fx-mascot.is-sleep .fx-eye-l, .fx-mascot.is-sleep .fx-eye-r { opacity: 0; transition: opacity .12s ease; }
.fx-mascot.is-sleep .fx-lid-l, .fx-mascot.is-sleep .fx-lid-r { transition: opacity .12s ease; }
.fx-mascot.is-sleep.peek-l .fx-eye-l, .fx-mascot.is-sleep.peek-both .fx-eye-l { opacity: 1; }
.fx-mascot.is-sleep.peek-r .fx-eye-r, .fx-mascot.is-sleep.peek-both .fx-eye-r { opacity: 1; }
.fx-mascot.is-sleep.peek-l .fx-lid-l, .fx-mascot.is-sleep.peek-both .fx-lid-l { opacity: 0; }
.fx-mascot.is-sleep.peek-r .fx-lid-r, .fx-mascot.is-sleep.peek-both .fx-lid-r { opacity: 0; }


/* ── Round 1 of the mascot loop: slow eyes, gaze, being petted, yawns ── */
.fx-eye-l, .fx-eye-r { transform-box: fill-box; transform-origin: 50% 50%; }
/* Asleep: the eyes are thin slits; a peek opens them slowly, a squint first. */
.fx-mascot.is-sleep .fx-mascot-eyes { animation: none; }
.fx-mascot.is-sleep .fx-eye-l,
.fx-mascot.is-sleep .fx-eye-r { opacity: 1; transform: scaleY(.12); transition: transform .38s cubic-bezier(.5, 0, .75, 0); }
.fx-mascot.is-sleep .fx-lid-l,
.fx-mascot.is-sleep .fx-lid-r { opacity: 0; }
.fx-mascot.is-sleep.half-l .fx-eye-l,
.fx-mascot.is-sleep.half-r .fx-eye-r { transform: scaleY(.45); transition: transform .9s cubic-bezier(.25, .1, .25, 1); }
.fx-mascot.is-sleep.peek-l .fx-eye-l,
.fx-mascot.is-sleep.peek-r .fx-eye-r,
.fx-mascot.is-sleep.peek-both .fx-eye-l,
.fx-mascot.is-sleep.peek-both .fx-eye-r { transform: scaleY(1); transition: transform 1.1s cubic-bezier(.25, .1, .25, 1); }

/* Following the pointer with its eyes. */
.fx-mascot-gaze { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .3s ease-out; }

/* Petted: happy eyes, rosy cheeks, a heart. */
.fx-mascot-happy path { stroke: #ffb27f; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.fx-mascot-happy, .fx-mascot-blush, .fx-mascot-heart { opacity: 0; transition: opacity .3s ease; }
.fx-mascot-blush ellipse { fill: #ff8fa3; }
.fx-mascot-heart { fill: #ff5d7d; transform-box: fill-box; transform-origin: 50% 100%; }
.fx-mascot.is-happy .fx-mascot-gaze { opacity: 0; }
.fx-mascot.is-happy .fx-mascot-happy, .fx-mascot.is-happy .fx-mascot-blush { opacity: 1; }
.fx-mascot.is-happy .fx-mascot-heart { animation: fx-mascot-heart 1.6s ease-out infinite; }
.fx-mascot.is-happy .fx-mascot-bodygroup { animation: fx-mascot-sway 1.6s ease-in-out infinite; }
@keyframes fx-mascot-heart { 0% { opacity: 0; transform: translateY(2px) scale(.5); } 25% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-9px) scale(1.1); } }
@keyframes fx-mascot-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* Waking up for an outing: a yawn and a stretch. */
.fx-mascot.is-yawn .fx-mascot-bodygroup { animation: fx-mascot-yawn 1.1s ease-in-out; }
.fx-mascot.is-yawn .fx-eye-l, .fx-mascot.is-yawn .fx-eye-r { transform: scaleY(.3); transition: transform .3s ease; }
@keyframes fx-mascot-yawn { 0%, 100% { transform: none; } 40% { transform: scale(.94, 1.12) rotate(-3deg); } 70% { transform: scale(1.04, .96) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  .fx-mascot-gaze, .fx-eye-l, .fx-eye-r { transition: none !important; }
  .fx-mascot .fx-mascot-heart { animation: none !important; }
}


/* Bubble anchored towards the middle near either end of the bar. */
.fx-mascot-bubble.from-start { left: 0; translate: 0 0; border-radius: 14px 14px 14px 4px; transform-origin: 10% 100%; }
.fx-mascot-bubble.from-end { left: auto; right: 0; translate: 0 0; border-radius: 14px 14px 4px 14px; transform-origin: 90% 100%; }
/* No text selection or callout on a long press. */
.fx-mascot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }


/* ── Picked up, dropped, parachute, ladder ── */
.fx-mascot { touch-action: none; }
.fx-mascot.is-free {
  position: fixed;
  left: var(--fx, 0px);
  top: var(--fy, 0px);
  bottom: auto;
  transform: none;
  transition: none;
  z-index: 1060;
}
.fx-mascot.is-dragged { cursor: grabbing; }
.fx-mascot.is-dragged .fx-mascot-bodygroup { animation: fx-mascot-dangle .9s ease-in-out infinite alternate; }
.fx-mascot.is-dragged .fx-mascot-foot-l { animation: fx-mascot-kick .25s ease-in-out infinite alternate; }
.fx-mascot.is-dragged .fx-mascot-foot-r { animation: fx-mascot-kick .25s ease-in-out infinite alternate-reverse; }
@keyframes fx-mascot-dangle { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes fx-mascot-kick { from { transform: translateY(0) rotate(-15deg); } to { transform: translateY(1.5px) rotate(15deg); } }
.fx-mascot.is-dragged .fx-eye-l, .fx-mascot.is-dragged .fx-eye-r,
.fx-mascot.is-falling .fx-eye-l, .fx-mascot.is-falling .fx-eye-r { transform: scale(1.3); }
.fx-mascot.is-scared .fx-mascot-flip { animation: fx-mascot-shiver .09s linear infinite; }
.fx-mascot.is-scared .fx-eye-l, .fx-mascot.is-scared .fx-eye-r { transform: scale(1.45); }
.fx-mascot.is-scared .fx-mascot-screen { filter: drop-shadow(0 0 5px rgba(120, 170, 255, .9)); }
@keyframes fx-mascot-shiver { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(1px); } }
.fx-mascot.is-falling .fx-mascot-foot-l, .fx-mascot.is-falling .fx-mascot-foot-r { animation: fx-mascot-kick .12s linear infinite alternate; }
.fx-mascot.is-landing .fx-mascot-bodygroup { animation: fx-mascot-land .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fx-mascot-land { 0% { transform: scale(1.2, .75); } 60% { transform: scale(.95, 1.06); } 100% { transform: none; } }

/* Parachute. */
.fx-mascot-chute { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .2s ease, transform .45s cubic-bezier(.3, 1.7, .5, 1); }
.fx-mascot-canopy { fill: #e8743b; }
.fx-mascot-canopy-stripe { fill: #fff3e8; }
.fx-mascot-chute-strings { stroke: #8a7e70; stroke-width: .8; fill: none; }
.fx-mascot.has-chute .fx-mascot-chute { opacity: 1; transform: none; }
.fx-mascot.has-chute .fx-mascot-flip { animation: fx-mascot-glide 2.2s ease-in-out infinite; }
@keyframes fx-mascot-glide { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

/* Climbing. */
.fx-mascot.is-climbing .fx-mascot-foot-l { animation: fx-mascot-step .28s ease-in-out infinite alternate; }
.fx-mascot.is-climbing .fx-mascot-foot-r { animation: fx-mascot-step .28s ease-in-out infinite alternate-reverse; }
.fx-mascot.is-climbing .fx-mascot-bodygroup { animation: fx-mascot-bob .28s ease-in-out infinite alternate; }

/* The ladder it fetches to get back up. */
.fx-mascot-ladder {
  position: fixed;
  z-index: 1059;
  width: 22px;
  border-left: 3px solid #b06a2c;
  border-right: 3px solid #b06a2c;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, transparent 0 8px, #c98042 8px 11px);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
.fx-mascot-ladder.is-up { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .fx-mascot .fx-mascot-flip, .fx-mascot-chute, .fx-mascot-ladder { animation: none !important; transition: none !important; }
}


/* Under an open parachute the speech bubble goes above the canopy. */
.fx-mascot.has-chute .fx-mascot-bubble { bottom: calc(100% + 36px); }

/* A visit whose time has passed without being started: warm amber, not the calm blue. */
.px-next-card.is-overdue {
  background: linear-gradient(160deg, #fde7c8 0%, #fbd3a2 100%) !important;
  box-shadow: 0 18px 36px -24px rgba(194, 65, 12, .5);
}
:root[data-theme="dark"] .px-next-card.is-overdue {
  background: linear-gradient(160deg, #4a3214 0%, #3a240c 100%) !important;
}

/* Reactions to what the homeowner wrote: gas mask and run, zapped, umbrella, sweating */
.fx-mascot-mask, .fx-mascot-zap, .fx-mascot-sweat, .fx-mascot-umbrella { opacity: 0; transition: opacity .2s ease; }
.fx-mascot-mask-strap { fill: #3a3f4d; }
.fx-mascot-mask-glass { fill: #9fd3ff; stroke: #3a3f4d; stroke-width: 1.4; }
.fx-mascot-mask-filter { fill: #5b6170; stroke: #3a3f4d; stroke-width: 1; }
.fx-mascot-mask-grill { stroke: #c9c1b6; stroke-width: .9; stroke-linecap: round; }
.fx-mascot.has-mask .fx-mascot-mask { opacity: 1; }
.fx-mascot.has-mask .fx-mascot-eyes { opacity: 0; }
.fx-mascot.is-fleeing .fx-mascot-feet .fx-mascot-foot-l, .fx-mascot.is-fleeing .fx-mascot-feet .fx-mascot-foot-r { animation: fx-mascot-kick .1s linear infinite alternate; }
.fx-mascot.is-fleeing .fx-mascot-flip { animation: fx-mascot-shiver .12s linear infinite; }
.fx-mascot.is-gone { opacity: 0; transition: opacity .3s ease; }

.fx-mascot-zap path { fill: none; stroke: #ffd84d; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fx-mascot.is-zapped .fx-mascot-zap { animation: fx-mascot-zap .14s steps(2) infinite; }
.fx-mascot.is-zapped .fx-mascot-flip { animation: fx-mascot-shiver .06s linear infinite; }
.fx-mascot.is-zapped .fx-mascot-body { animation: fx-mascot-flash .14s steps(2) infinite; }
.fx-mascot.is-zapped .fx-mascot-eyes, .fx-mascot.is-singed .fx-mascot-eyes { opacity: 0; }
.fx-mascot.is-zapped .fx-mascot-ouch, .fx-mascot.is-singed .fx-mascot-ouch { opacity: 1; }
.fx-mascot.is-singed .fx-mascot-body { fill: #6b6258; transition: fill .4s ease; }
.fx-mascot.is-singed .fx-mascot-steam { animation: fx-mascot-steam 1s ease-out infinite; }
@keyframes fx-mascot-zap { 0% { opacity: 1; } 100% { opacity: .2; } }
@keyframes fx-mascot-flash { 0% { fill: #fff6c2; } 100% { fill: #3a3f4d; } }

.fx-mascot-umbrella { transform: translateY(-10px); transform-box: fill-box; transition: opacity .2s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.fx-mascot-umbrella-top { fill: #e8743b; }
.fx-mascot-umbrella-pole { stroke: #3a3f4d; stroke-width: 1.4; }
.fx-mascot-rain { stroke: #6fb6ff; stroke-width: 1.2; stroke-linecap: round; }
.fx-mascot.has-umbrella .fx-mascot-umbrella { opacity: 1; transform: translateY(0); }
.fx-mascot.has-umbrella .fx-mascot-rain { animation: fx-mascot-rain .5s linear infinite; }
@keyframes fx-mascot-rain { from { transform: translateY(-3px); opacity: 1; } to { transform: translateY(6px); opacity: 0; } }

.fx-mascot-sweat path { fill: #6fb6ff; }
.fx-mascot.is-sweating .fx-mascot-sweat { animation: fx-mascot-drip 1s ease-in infinite; }
.fx-mascot.is-sweating .fx-mascot-bodygroup { animation: fx-mascot-sway 1.4s ease-in-out infinite; }
@keyframes fx-mascot-drip { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .fx-mascot .fx-mascot-zap, .fx-mascot .fx-mascot-rain, .fx-mascot .fx-mascot-sweat, .fx-mascot .fx-mascot-body { animation: none !important; }
}
.fx-mascot.has-umbrella .fx-mascot-bubble { bottom: calc(100% + 30px); }
/* The umbrella is held in a little hand at its side, not balanced on the roof */
.fx-mascot-umbrella-pole { fill: none; stroke-linecap: round; }
.fx-mascot-arm { fill: none; stroke: #e7dccd; stroke-width: 2.2; stroke-linecap: round; }
.fx-mascot-hand { fill: #fbf7f1; stroke: #e7dccd; stroke-width: 1; }
.fx-mascot.has-umbrella .fx-mascot-bubble { bottom: calc(100% + 24px); }
/* The little hand in the other reactions: phone for gas, reaching out for electrics, fan for heat */
.fx-mascot-phone, .fx-mascot-reach, .fx-mascot-fan { opacity: 0; transition: opacity .2s ease; }
.fx-mascot-phone-body { fill: #3a3f4d; }
.fx-mascot-phone-screen { fill: #ffb27f; }
.fx-mascot.has-mask .fx-mascot-phone { opacity: 1; }
.fx-mascot.has-mask .fx-mascot-phone-screen { animation: fx-mascot-zap .5s steps(2) infinite; }
.fx-mascot-reach-zap { fill: none; stroke: #ffd84d; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fx-mascot.is-zapped .fx-mascot-reach, .fx-mascot.is-singed .fx-mascot-reach { opacity: 1; }
.fx-mascot.is-zapped .fx-mascot-reach-zap { opacity: 1; animation: fx-mascot-zap .14s steps(2) infinite; }
.fx-mascot.is-singed .fx-mascot-reach .fx-mascot-hand { fill: #6b6258; }
.fx-mascot-fan-blade path:first-child { fill: #6fb6ff; stroke: #3f7fc4; stroke-width: .7; }
.fx-mascot-fan-ribs { fill: none; stroke: #3f7fc4; stroke-width: .5; }
.fx-mascot-fan-blade { transform-box: view-box; transform-origin: 35.8px 22px; }
.fx-mascot.is-sweating .fx-mascot-fan { opacity: 1; }
.fx-mascot.is-sweating .fx-mascot-fan-blade { animation: fx-mascot-fanning .35s ease-in-out infinite alternate; }
@keyframes fx-mascot-fanning { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .fx-mascot .fx-mascot-fan-blade, .fx-mascot .fx-mascot-phone-screen, .fx-mascot .fx-mascot-reach-zap { animation: none !important; } }
/* Hard-hat inspection: a magnifying glass in its hand, sweeping while it thinks */
.fx-mascot-magnifier { opacity: 0; transition: opacity .2s ease; }
.fx-mascot-magnifier-handle { stroke: #3a3f4d; stroke-width: 1.8; stroke-linecap: round; }
.fx-mascot-magnifier-lens { fill: rgba(159, 211, 255, .55); stroke: #3a3f4d; stroke-width: 1.3; }
.fx-mascot-magnifier-glass { transform-box: view-box; transform-origin: 37.5px 24.5px; }
.fx-mascot.has-hat .fx-mascot-magnifier { opacity: 1; }
.fx-mascot.is-thinking-hard .fx-mascot-magnifier-glass { animation: fx-mascot-scan .8s ease-in-out infinite alternate; }
@keyframes fx-mascot-scan { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
@media (prefers-reduced-motion: reduce) { .fx-mascot .fx-mascot-magnifier-glass { animation: none !important; } }
/* Putting things on: the arm swings up from the side with the item, the mask is pulled
   up over the face, and the umbrella pops open. The hand only shows during an action. */
.fx-mascot.has-mask .fx-mascot-phone,
.fx-mascot.is-zapped .fx-mascot-reach,
.fx-mascot.is-sweating .fx-mascot-fan,
.fx-mascot.has-umbrella .fx-mascot-umbrella,
.fx-mascot.has-hat .fx-mascot-magnifier { transform-box: view-box; transform-origin: 32px 28px; animation: fx-mascot-raise .5s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes fx-mascot-raise { from { opacity: 0; transform: rotate(80deg) scale(.5); } to { opacity: 1; transform: none; } }
.fx-mascot-mask { transform-box: fill-box; transform-origin: 50% 100%; }
.fx-mascot.has-mask .fx-mascot-mask { animation: fx-mascot-mask-on .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes fx-mascot-mask-on { from { opacity: 0; transform: translateY(12px) scale(.4); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.fx-mascot-umbrella-top { transform-box: fill-box; transform-origin: 50% 100%; }
.fx-mascot.has-umbrella .fx-mascot-umbrella-top { animation: fx-mascot-open .4s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes fx-mascot-open { from { transform: scale(.12, .5); } to { transform: none; } }
.fx-mascot.has-umbrella .fx-mascot-rain { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .fx-mascot .fx-mascot-phone, .fx-mascot .fx-mascot-reach, .fx-mascot .fx-mascot-fan, .fx-mascot .fx-mascot-umbrella,
  .fx-mascot .fx-mascot-magnifier, .fx-mascot .fx-mascot-mask, .fx-mascot .fx-mascot-umbrella-top { animation: none !important; }
}
/* Taking things off before going home */
.fx-mascot.is-taking-off .fx-mascot-phone,
.fx-mascot.is-taking-off .fx-mascot-reach,
.fx-mascot.is-taking-off .fx-mascot-fan,
.fx-mascot.is-taking-off .fx-mascot-magnifier { animation: fx-mascot-lower .45s ease-in both; }
.fx-mascot.is-taking-off .fx-mascot-umbrella { animation: fx-mascot-lower .3s .25s ease-in both; }
.fx-mascot.is-taking-off .fx-mascot-umbrella-top { animation: fx-mascot-close .25s ease-in both; }
.fx-mascot.is-taking-off .fx-mascot-mask { animation: fx-mascot-mask-off .4s ease-in both; }
.fx-mascot.is-taking-off .fx-mascot-hat { opacity: 0; transform: translateY(-14px); }
@keyframes fx-mascot-lower { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotate(80deg) scale(.5); } }
@keyframes fx-mascot-close { from { transform: none; } to { transform: scale(.12, .5); } }
@keyframes fx-mascot-mask-off { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .fx-mascot.is-taking-off .fx-mascot-phone, .fx-mascot.is-taking-off .fx-mascot-reach, .fx-mascot.is-taking-off .fx-mascot-fan,
  .fx-mascot.is-taking-off .fx-mascot-magnifier, .fx-mascot.is-taking-off .fx-mascot-umbrella, .fx-mascot.is-taking-off .fx-mascot-umbrella-top,
  .fx-mascot.is-taking-off .fx-mascot-mask { animation: none !important; opacity: 0; }
}
/* Off-topic question: leafs through its repair manual, then shrugs with a question mark */
.fx-mascot-book { opacity: 0; transition: opacity .2s ease; }
.fx-mascot-book-cover { fill: #e8743b; }
.fx-mascot-book-page { fill: #fffdf9; stroke: #d9cfc4; stroke-width: .4; }
.fx-mascot-book-lines { stroke: #b8aca2; stroke-width: .5; stroke-linecap: round; }
.fx-mascot-book-pages { transform-box: view-box; transform-origin: 36.5px 24px; }
.fx-mascot.has-book .fx-mascot-book { transform-box: view-box; transform-origin: 32px 28px; animation: fx-mascot-raise .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.fx-mascot.has-book:not(.is-shrugging) .fx-mascot-book-pages { animation: fx-mascot-leaf .3s ease-in-out .5s infinite alternate; }
@keyframes fx-mascot-leaf { from { transform: scaleX(1); } to { transform: scaleX(.75) skewY(4deg); } }
.fx-mascot.has-book:not(.is-shrugging) .fx-eye-l, .fx-mascot.has-book:not(.is-shrugging) .fx-eye-r { transform: translate(1.5px, 1.2px); }
.fx-mascot-huh { opacity: 0; font: 800 11px/1 "Inter", sans-serif; fill: #e8743b; }
.fx-mascot.is-shrugging .fx-mascot-huh { animation: fx-mascot-huh .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.fx-mascot.is-shrugging .fx-mascot-bodygroup { animation: fx-mascot-shrug .6s ease-in-out 2; }
@keyframes fx-mascot-huh { from { opacity: 0; transform: translateY(4px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fx-mascot-shrug { 0%, 100% { transform: none; } 40% { transform: translateY(-2.5px) scale(1.04, .97); } }
.fx-mascot.is-taking-off .fx-mascot-book { animation: fx-mascot-lower .45s ease-in both; }
.fx-mascot.is-taking-off .fx-mascot-huh { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fx-mascot .fx-mascot-book, .fx-mascot .fx-mascot-book-pages, .fx-mascot .fx-mascot-huh { animation: none !important; } .fx-mascot.has-book .fx-mascot-book, .fx-mascot.is-shrugging .fx-mascot-huh { opacity: 1; } }
/* A photo was added: a little camera, and a flash */
.fx-mascot-camera { opacity: 0; transition: opacity .2s ease; }
.fx-mascot-camera-body { fill: #3a3f4d; }
.fx-mascot-camera-top { fill: #5b6170; }
.fx-mascot-camera-lens { fill: #9fd3ff; stroke: #1d1a24; stroke-width: .8; }
.fx-mascot-camera-flash { stroke: #ffd84d; stroke-width: 1.3; stroke-linecap: round; opacity: 0; }
.fx-mascot.has-camera .fx-mascot-camera { transform-box: view-box; transform-origin: 32px 28px; animation: fx-mascot-raise .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.fx-mascot.has-camera .fx-mascot-camera-flash { animation: fx-mascot-flash-pop .5s .7s ease-out 2 both; }
.fx-mascot.has-camera .fx-mascot-camera-lens { animation: fx-mascot-lens .5s .7s ease-out 2; }
@keyframes fx-mascot-flash-pop { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-mascot-lens { 20% { fill: #fff; } }
.fx-mascot.is-taking-off .fx-mascot-camera { animation: fx-mascot-lower .45s ease-in both; }
@media (prefers-reduced-motion: reduce) { .fx-mascot .fx-mascot-camera, .fx-mascot .fx-mascot-camera-flash, .fx-mascot .fx-mascot-camera-lens { animation: none !important; } .fx-mascot.has-camera .fx-mascot-camera { opacity: 1; } }
/* Dark theme: the props' dark lines are drawn light so they stay visible */
:root[data-theme="dark"] .fx-mascot-umbrella-pole,
:root[data-theme="dark"] .fx-mascot-magnifier-handle { stroke: #c9cfdd; }
:root[data-theme="dark"] .fx-mascot-magnifier-lens { stroke: #c9cfdd; }
:root[data-theme="dark"] .fx-mascot-camera-body,
:root[data-theme="dark"] .fx-mascot-phone-body,
:root[data-theme="dark"] .fx-mascot-mask-filter { stroke: #c9cfdd; stroke-width: .8; }
:root[data-theme="dark"] .fx-mascot-rain { stroke: #8cc6ff; }

/* ══ Phone top bar: avatar button + slide-up menu sheet ═══════════════════ */
.fx-sheet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--fx-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cc4a0e, #a8380a);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(234, 88, 12, .7);
  padding: 0;
}

.fx-sheet-avatar.is-static {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.offcanvas.fx-sheet {
  --bs-offcanvas-height: auto;
  max-height: 88vh;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--fx-surface);
  color: var(--fx-ink);
  box-shadow: 0 -20px 50px -20px rgba(10, 15, 29, .5);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

.fx-sheet-grab {
  width: 42px;
  height: 5px;
  border-radius: 9px;
  background: var(--fx-card-border);
  margin: 0 auto 14px;
}

.fx-sheet-me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fx-line);
}

.fx-sheet-me b {
  display: block;
  font-size: 1.05rem;
}

.fx-sheet-me small {
  color: var(--fx-faint);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .7rem;
  text-transform: uppercase;
}

.fx-sheet-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--fx-surface-soft);
  color: var(--fx-muted);
}

.fx-sheet .offcanvas-body {
  padding: 6px 0 0;
  overflow-y: auto;
}

.fx-sheet .navbar-nav {
  flex-direction: column;
}

.fx-sheet .navbar-nav + .navbar-nav {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--fx-line);
}

.fx-sheet .nav-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 2px !important;
  border: 0;
  background: none;
  color: var(--fx-ink) !important;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
}

.fx-sheet .nav-link > i {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--fx-accent-soft);
  color: var(--fx-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin: 0 !important;
}

.fx-sheet .nav-link.active {
  color: var(--fx-primary) !important;
}

.fx-sheet .logout-link {
  color: var(--fx-primary-dark) !important;
}

.fx-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fx-sheet-row .nav-link {
  width: auto;
}

.offcanvas-backdrop.show {
  opacity: 1;
  background: rgba(10, 15, 29, .45);
  backdrop-filter: blur(3px);
}

/* ══ Phone pages: tighter headers, unboxed card lists, frosted bottom bar ══ */
@media (max-width: 767px) {
  .fx-page-header {
    margin-bottom: .7rem !important;
  }

  body.fx-ws .fx-page-header .fx-page-title {
    font-size: 1.55rem !important;
    margin-bottom: .15rem !important;
  }

  body.fx-ws .fx-page-header .fx-page-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
  }

  body.fx-ws .fx-page-header .btn {
    white-space: nowrap;
    min-height: 38px !important;
    padding: .4rem .9rem !important;
    font-size: .88rem;
  }

  .fx-requests-section,
  .fx-section:has(.fx-spot) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .fx-bottom-nav {
    background: color-mix(in srgb, var(--fx-surface) 72%, transparent) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border-top: 1px solid var(--fx-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* The sheet and its dimmed backdrop sit above the bottom tab bar. */
.offcanvas.fx-sheet { z-index: 1095; }
.offcanvas-backdrop { z-index: 1090; }
.fx-sheet form { display: block !important; width: 100%; }
.fx-sheet .logout-link { justify-content: flex-start; }
.fx-sheet .fx-sheet-row form { width: auto; margin-left: auto !important; }

/* ══ Concept v3: glass canvas, night-blue key blocks, progress and journey ══ */
body.fx-ws:not(.fx-pro-ws) {
  --fx-glass-card: rgba(255, 255, 255, .46);
  --fx-glass-edge: rgba(255, 255, 255, .78);
  background:
    radial-gradient(40% 30% at 100% 0%, rgba(234, 88, 12, .22), transparent 70%),
    radial-gradient(35% 30% at 25% 40%, rgba(91, 134, 214, .16), transparent 70%),
    radial-gradient(40% 30% at 100% 85%, rgba(245, 158, 11, .16), transparent 70%),
    var(--fx-bg-1);
  background-attachment: fixed;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) {
  --fx-glass-card: rgba(255, 255, 255, .06);
  --fx-glass-edge: rgba(255, 255, 255, .12);
  background:
    radial-gradient(40% 30% at 100% 0%, rgba(234, 88, 12, .30), transparent 70%),
    radial-gradient(35% 30% at 25% 40%, rgba(80, 110, 230, .22), transparent 70%),
    var(--fx-bg-1);
  background-attachment: fixed;
}

/* Frosted glass cards */
body.fx-ws:not(.fx-pro-ws) .fx-request-card,
body.fx-ws:not(.fx-pro-ws) main .fx-section:not(.fx-spot):not(.fx-requests-section),
body.fx-ws:not(.fx-pro-ws) main .card-soft {
  background: var(--fx-glass-card) !important;
  border: 1px solid var(--fx-glass-edge) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 40px -28px rgba(90, 58, 24, .45) !important;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) .fx-request-card,
:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .fx-section:not(.fx-spot):not(.fx-requests-section),
:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .card-soft {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -28px rgba(0, 0, 0, .7) !important;
}

/* Night-blue key block: the first request and the journey header */
body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card,
.fx-journey {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  --fx-block-ink: #f5f1ea;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .92), rgba(10, 15, 29, .95)) !important;
  color: #f5f1ea !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8) !important;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card,
:root[data-theme="dark"] .fx-journey {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e) !important;
}

body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-title,
body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-next,
body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-metric strong {
  color: #f5f1ea !important;
}

body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-meta,
body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-metric span {
  color: #b7bfd0 !important;
}

/* Progress on every request card */
.fx-progress {
  margin: .7rem 0 .5rem;
}

.fx-progress-bar {
  height: 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--fx-faint) 22%, transparent);
  overflow: hidden;
}

.fx-progress-bar b {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 9px;
  background: linear-gradient(90deg, #f59e0b, var(--fx-primary));
  box-shadow: 0 0 12px rgba(234, 88, 12, .65);
}

.fx-progress[data-step="2"] .fx-progress-bar b { width: 50%; }
.fx-progress[data-step="3"] .fx-progress-bar b { width: 75%; }
.fx-progress[data-step="4"] .fx-progress-bar b { width: 100%; }

.fx-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: .35rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--fx-faint);
}

.fx-progress[data-step="1"] .fx-progress-steps span:nth-child(-n+1),
.fx-progress[data-step="2"] .fx-progress-steps span:nth-child(-n+2),
.fx-progress[data-step="3"] .fx-progress-steps span:nth-child(-n+3),
.fx-progress[data-step="4"] .fx-progress-steps span {
  color: var(--fx-primary-dark);
  font-weight: 700;
}

body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-progress-steps,
:root[data-theme="dark"] .fx-progress-steps {
  --fx-primary-dark: #ff9a5c;
}

/* Repair journey on one request */
.fx-journey {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: 24px;
}

.fx-journey-ring {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--fx-primary) 0 25%, rgba(255, 255, 255, .12) 25% 100%);
  box-shadow: 0 16px 36px -16px rgba(234, 88, 12, .8);
}

.fx-journey[data-step="2"] .fx-journey-ring { background: conic-gradient(var(--fx-primary) 0 50%, rgba(255, 255, 255, .12) 50% 100%); }
.fx-journey[data-step="3"] .fx-journey-ring { background: conic-gradient(var(--fx-primary) 0 75%, rgba(255, 255, 255, .12) 75% 100%); }
.fx-journey[data-step="4"] .fx-journey-ring { background: conic-gradient(var(--fx-primary) 0 100%, rgba(255, 255, 255, .12) 100% 100%); }

.fx-journey-ring > div {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #0f1628;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-journey-ring b {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fx-journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}

.fx-journey-steps li {
  position: relative;
  padding-top: 1.4rem;
}

.fx-journey-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  background: transparent;
}

.fx-journey-steps li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 22px;
  right: -.4rem;
  border-top: 2px dashed rgba(255, 255, 255, .18);
}

.fx-journey-steps li:last-child::after { display: none; }
.fx-journey-steps li.is-done::before { background: var(--fx-primary); border-color: var(--fx-primary); }
.fx-journey-steps li.is-now::before { background: #fff; border-color: var(--fx-primary); box-shadow: 0 0 0 6px rgba(234, 88, 12, .25); }
.fx-journey-steps b { display: block; font-size: .92rem; }
.fx-journey-steps small { display: block; color: #b7bfd0; font-size: .78rem; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .fx-journey {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .fx-journey-ring { margin: 0 auto; }

  .fx-journey-steps {
    grid-template-columns: 1fr;
    gap: .2rem;
    margin-left: .3rem;
  }

  .fx-journey-steps li {
    padding: 0 0 .8rem 1.8rem;
  }

  .fx-journey-steps li::after {
    top: 20px;
    left: 7px;
    right: auto;
    bottom: 0;
    border-top: 0;
    border-left: 2px dashed rgba(255, 255, 255, .18);
  }
}

body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .btn-primary {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(234, 88, 12, .8) !important;
}

/* Metric tiles on the night-blue first card: dark glass, not cream, so the labels stay readable */
body.fx-ws:not(.fx-pro-ws) [data-request-list] > :first-child .fx-request-card .fx-request-metric {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

/* ══ Concept v3, sheet A: compare quotes, booking, post a request ══════════ */
/* The best quote and the booking status are the night-blue key blocks. */
body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot,
body.fx-ws .fx-section.fx-spot.fx-spot-blue {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  --fx-block-ink: #f5f1ea;
  --fx-block-muted: #b7bfd0;
  --fx-surface-soft: rgba(255, 255, 255, .07);
  --fx-card-border: rgba(255, 255, 255, .12);
  --fx-line: rgba(255, 255, 255, .12);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .94), rgba(10, 15, 29, .96)) !important;
  color: #f5f1ea !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8) !important;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot,
:root[data-theme="dark"] body.fx-ws .fx-section.fx-spot.fx-spot-blue {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e) !important;
}

body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot .oc-price-block,
body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot .oc-price-row {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: #f5f1ea;
}

body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot .text-muted,
body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot small,
body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot a:not(.btn) {
  color: #b7bfd0 !important;
}

/* Its one action glows orange */
body.fx-ws:not(.fx-pro-ws) main .oc-card.fx-spot .oc-btn-ink {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(234, 88, 12, .8) !important;
}

/* Post a request: the chosen category is filled orange */
.pj-category-btn.is-active {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -12px rgba(234, 88, 12, .8) !important;
}

.pj-category-btn.is-active i {
  color: #fff !important;
}

/* ══ Concept v3, sheet B: maintenance, profile, pro booking ════════════════ */
/* First maintenance task: night-blue key block with an orange action */
body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  --fx-block-ink: #f5f1ea;
  --fx-block-muted: #b7bfd0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .94), rgba(10, 15, 29, .96)) !important;
  color: #f5f1ea !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8) !important;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e) !important;
}

body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) .btn-primary,
body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) .btn-dark {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Checkbox labels stay normal text, not small caps */
.form-label.form-check-label {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fx-ink);
}

/* Profile: identity card in night blue */
.fx-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  color: #f5f1ea;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .94), rgba(10, 15, 29, .96));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8);
}

:root[data-theme="dark"] .fx-profile-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e);
}

.fx-profile-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cc4a0e, #a8380a);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 14px 30px -10px rgba(234, 88, 12, .8);
}

.fx-profile-card b {
  display: block;
  font-size: 1.1rem;
}

.fx-profile-card span:not(.fx-profile-avatar) {
  color: #b7bfd0;
  font-size: .9rem;
}

body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) .badge {
  background: rgba(255, 255, 255, .14) !important;
  color: #f5f1ea !important;
}

body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) .text-primary {
  color: #ffb48a !important;
}

body.fx-ws:not(.fx-pro-ws) main .card-soft.fx-spot:not(.oc-card) .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .3);
  color: #f5f1ea;
}

/* ══ Concept v3, sheet C: calendar, earnings, pro profile ══════════════════ */
/* Calendar visits as glass chips with an orange time */
body.fx-ws .pc-visit {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  border-left: 3px solid var(--fx-primary);
  border-radius: 12px;
  color: var(--fx-ink);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 18px -14px rgba(90, 58, 24, .5);
}

body.fx-ws .pc-visit .pc-visit-time { color: var(--fx-primary-dark); }
body.fx-ws .pc-visit-in_progress { border-left-color: #0f9d6b; }
body.fx-ws .pc-visit-completed { border-left-color: #9aa4b9; }

:root[data-theme="dark"] body.fx-ws .pc-visit {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  border-left-color: var(--fx-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

:root[data-theme="dark"] body.fx-ws .pc-visit .pc-visit-time { color: #ffb48a; }

/* Earnings: the total is the night-blue key block */
body.fx-ws .px-stats .px-stat.fx-spot {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  --fx-block-ink: #f5f1ea;
  --fx-block-muted: #b7bfd0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .94), rgba(10, 15, 29, .96)) !important;
  color: #f5f1ea !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8) !important;
}

:root[data-theme="dark"] body.fx-ws .px-stats .px-stat.fx-spot {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e) !important;
}

body.fx-ws .px-stats .px-stat.fx-spot .px-stat-label,
body.fx-ws .px-stats .px-stat.fx-spot .px-stat-hint { color: #b7bfd0 !important; }
body.fx-ws .px-stats .px-stat.fx-spot .px-stat-value { color: #fff !important; }

/* Pro profile: chosen trades filled orange, like Post a request */
#id_categories label:has(:checked) {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
}

#id_categories label:has(:checked) .form-check-input {
  background-color: rgba(255, 255, 255, .28);
  border-color: #fff;
}

/* ══ Concept v3, sheet D: admin and sign in ═════════════════════════════════ */
/* Admin pages: frosted glass panels like the rest of the app */
body.fx-ws:not(.fx-pro-ws) main .px-list,
body.fx-ws:not(.fx-pro-ws) main .px-stats,
body.fx-ws:not(.fx-pro-ws) main .px-card {
  background: rgba(255, 255, 255, .46) !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 40px -28px rgba(90, 58, 24, .45) !important;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .px-list,
:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .px-stats,
:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .px-card {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -28px rgba(0, 0, 0, .7) !important;
}

/* The first figure ("waiting for you") is the night-blue key block */
body.fx-ws:not(.fx-pro-ws) main .px-stats > .px-stat:first-child:not(.fx-spot) {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, #121a2e, #0a0f1d);
  color: #f5f1ea;
  border-radius: 18px;
}

:root[data-theme="dark"] body.fx-ws:not(.fx-pro-ws) main .px-stats > .px-stat:first-child:not(.fx-spot) {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e);
}

/* Sign in and sign up: the night scene in both modes, with a night-blue glass card */
.fx-auth-night > .fx-auth-card,
.fx-auth-night > .fx-auth-card:hover,
.fx-auth-night > .fx-auth-card:active,
:root[data-theme="dark"] .fx-auth-night > .fx-auth-card {
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #9aa4b9;
  --fx-surface-soft: rgba(255, 255, 255, .07);
  --fx-card-border: rgba(255, 255, 255, .14);
  color: #f5f1ea;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, rgba(28, 37, 65, .82), rgba(10, 15, 29, .9));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.fx-auth-night > .fx-auth-card .form-control {
  background-color: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f5f1ea !important;
}

.fx-auth-night > .fx-auth-card .form-control::placeholder { color: #9aa4b9; }
.fx-auth-night > .fx-auth-card .form-label,
.fx-auth-night > .fx-auth-card label { color: #b7bfd0; }
.fx-auth-night > .fx-auth-card a:not(.btn) { color: #ffb48a !important; }
.fx-auth-night > .fx-auth-card .fx-page-kicker { color: #ffb48a; }
.fx-auth-night > .fx-auth-card h1,
.fx-auth-night > .fx-auth-card h2,
.fx-auth-night > .fx-auth-card .fx-page-title { color: #fff !important; }
.fx-auth-night > .fx-auth-card p,
.fx-auth-night > .fx-auth-card .text-muted,
.fx-auth-night > .fx-auth-card .small { color: #b7bfd0 !important; }
.fx-auth-night > .fx-auth-card .btn-primary {
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 14px 28px -12px rgba(234, 88, 12, .85) !important;
}

/* ══ Desktop: requests list and detail side by side, pinned summary ════════ */
.fx-req-detail { display: none; }

@media (min-width: 1200px) {
  .fx-req-split.is-split {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .fx-req-split.is-split .fx-requests-section {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  /* One column of cards in the list */
  .fx-req-split.is-split [data-request-list] > [data-detail-url] {
    flex: 0 0 100%;
    max-width: 100%;
    cursor: pointer;
  }

  .fx-req-split.is-split [data-request-list] > .is-selected .fx-request-card {
    outline: 2px solid rgba(234, 88, 12, .55);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, .12), 0 20px 40px -28px rgba(90, 58, 24, .45) !important;
  }

  .fx-req-split.is-split .fx-req-detail {
    display: block;
    min-height: 60vh;
    transition: opacity .15s var(--fx-ease);
  }

  .fx-req-split.is-split .fx-req-detail.is-loading { opacity: .45; }

  /* A single request: content on the left, the summary pinned on the right */
  .fx-jd-grid:has(> .fx-jd-summary) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
  }

  .fx-jd-summary {
    position: sticky;
    top: 1rem;
  }
}

.fx-jd-summary {
  margin-bottom: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  color: #f5f1ea;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .34), transparent 60%),
    linear-gradient(160deg, rgba(18, 26, 46, .94), rgba(10, 15, 29, .96));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 44px -24px rgba(10, 15, 29, .8);
}

:root[data-theme="dark"] .fx-jd-summary {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .30), transparent 60%),
    linear-gradient(160deg, #1c2a4d, #121a2e);
}

.fx-jd-summary-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9aa4b9;
}

.fx-jd-summary-big {
  margin: .2rem 0 .1rem;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.fx-jd-summary-sub {
  margin: 0 0 .9rem;
  color: #b7bfd0;
  font-size: .9rem;
}

.fx-jd-summary .btn-primary {
  border-radius: 999px;
  background: linear-gradient(135deg, #cc4a0e, #a8380a) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(234, 88, 12, .8);
}

@media (min-width: 1200px) {
  /* Next to the summary (or inside the requests pane) the info tiles go two per row */
  .fx-jd-grid:has(> .fx-jd-summary) .fx-jd-main .row > [class*="col-md-3"],
  .fx-req-detail .fx-jd-main .row > [class*="col-md-3"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ══ Performance ═══════════════════════════════════════════════════════════
   1. Fixed page glows: a "background-attachment: fixed" background makes the
      browser repaint the whole page on every scroll frame. The same glow now
      sits on one fixed layer behind the page, which never repaints. */
body.fx-ws,
body:has(.fx-auth-night) {
  background-attachment: scroll !important;
}

body.fx-ws::before,
body:has(.fx-auth-night)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: inherit;
  background-attachment: scroll !important;
  transform: translateZ(0);
}

/* 2. Blur is costly and invisible over a smooth gradient: cards that repeat in
      lists keep their see-through look but drop the live blur. Bars, sheets and
      floating notes that sit over busy content keep it. */
.fx-request-card,
.px-list,
.px-list > li,
.px-card,
.px-stats,
.px-stat,
.card-soft,
.fx-section,
.qf-job,
.oc-card,
.pc-visit,
.nx-stream-card,
.fx-journey,
.fx-jd-summary,
.fx-profile-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 3. Long pages: let the browser skip drawing sections until they are near the
      screen. */
.fx-req-split .fx-request-card { contain: layout paint; }

/* ══ Accessibility: readable contrast (WCAG AA) ═══════════════════════════
   Status pills on the night-blue first booking card take the card's cream
   text, so they get a dark glass fill instead of their pale light fill. */
body.fx-pro-ws .px-list > li.fx-spot .px-pill {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}
/* Calendar: days from other months stay quieter, but still readable */
.pc-day.is-other .pc-date { opacity: 1; color: #6b665f; }
:root[data-theme="dark"] .pc-day.is-other .pc-date { color: #9aa0ab; }
.pc-day.is-today .pc-date { background: var(--fx-primary-dark); }
:root[data-theme="dark"] .pc-day.is-today .pc-date { background: var(--fx-primary); color: #0a0f1d; }
.pc-day.is-past:not(.is-today) .pc-visit { opacity: 1; }

/* ══ Accessibility: one clear keyboard focus ring everywhere ══════════════
   Only for keyboard focus (:focus-visible), so mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fx-primary-dark, #c2410c) !important;
  outline-offset: 2px;
}
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] .btn:focus-visible,
:root[data-theme="dark"] .nav-link:focus-visible,
:root[data-theme="dark"] summary:focus-visible,
:root[data-theme="dark"] [tabindex]:focus-visible,
.fx-auth-night :focus-visible,
.home-hero :focus-visible,
.navbar :focus-visible {
  outline-color: #ffc08f !important;
}
