/* ============================================================================
   MOMENT BUDDY · MIMONT — the companion, its doghouse, and its jar
   ----------------------------------------------------------------------------
   Scoped to #pmm-buddy on purpose: the storefront's stylesheet is 2000+ lines
   of shared rules, and a mascot must not be able to move a Buy button.
   THREE deliberate exceptions live near the bottom, all clearly named
   `.mbud-*` utilities that must style page-owned nodes:
     · .mbud-drop / .mbud-drop-hot  — drop-target highlighting while carrying a
                                      design OUT to a product
     · .mbud-jar-hot                — the jar lighting up while a picture is
                                      carried IN
   Every other selector starts with the component's own id.
   ============================================================================ */

#pmm-buddy {
  position: fixed;
  inset: 0;
  z-index: 44;                 /* above the page, below the sticky header (50),
                                  the toast host (60) and the studio (95) */
  pointer-events: none;
  font-family: var(--sans);
  color: var(--ink);
  --mb-x: 0px;
  --mb-y: 0px;
  --mb-lean: 0deg;
  --mb-ex: 0px;
  --mb-ey: 0px;
}
#pmm-buddy[data-covered="1"] { opacity: 0; visibility: hidden; }
#pmm-buddy.mbud-open { z-index: 46; }
#pmm-buddy.mbud-carry, #pmm-buddy.mbud-carry * { cursor: grabbing !important; }

#pmm-buddy .mbud-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ house -- */
#pmm-buddy .mbud-house {
  position: absolute; left: 0; top: 0;
  width: 104px; height: 104px;
  padding: 0; border: 0; background: none;
  cursor: pointer; pointer-events: auto;
  transform: translate3d(var(--mb-hx, 0px), var(--mb-hy, 0px), 0);
  filter: drop-shadow(0 6px 16px rgba(38, 34, 30, 0.12));
  transition: filter .25s cubic-bezier(0.32, 0.72, 0, 1), transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-house[hidden] { display: none; }
/* No easing until the component has measured itself: a transition on a
   not-yet-positioned element is what made the house appear to travel across the
   page on every navigation. */
#pmm-buddy:not([data-ready]) .mbud-house,
#pmm-buddy:not([data-ready]) .mbud-dog { transition: none !important; }
#pmm-buddy .mbud-house:hover { filter: drop-shadow(0 10px 22px rgba(38, 34, 30, 0.18)); transform: translate3d(var(--mb-hx, 0px), calc(var(--mb-hy, 0px) - 2px), 0) scale(1.03); }
#pmm-buddy .mbud-house:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 12px; }
#pmm-buddy .mbud-roof { fill: #b4552d; }
#pmm-buddy .mbud-roof-in { fill: #c2694a; opacity: .6; }
#pmm-buddy .mbud-window { fill: #f4c877; stroke: #a04a26; stroke-width: 2; }
#pmm-buddy .mbud-window-bar { stroke: #a04a26; stroke-width: 2; fill: none; }
#pmm-buddy .mbud-wall { fill: #f0e2cb; }
#pmm-buddy .mbud-door { fill: #6e4a30; }
#pmm-buddy .mbud-door-in { fill: #f4c877; opacity: .8; }
#pmm-buddy .mbud-sign { fill: #fffaf1; stroke: #e6d8c2; stroke-width: 1; }
#pmm-buddy .mbud-sign-t {
  font: 700 7.4px/1 Inter, system-ui, sans-serif;
  letter-spacing: 1.1px; fill: #b4552d;
}
#pmm-buddy .mbud-bowl { fill: #efe3cf; stroke: #dccfba; stroke-width: 1.4; }
#pmm-buddy .mbud-bowl-in { fill: #d9c9ae; }

/* the "shh" flag on the house while MIMONT is resting */
#pmm-buddy .mbud-dndflag {
  position: absolute; top: -7px; right: -2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #6e4a30; color: #fff7ea;
  font: 600 9.5px/1.4 var(--sans); letter-spacing: .8px;
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
#pmm-buddy[data-dnd="1"] .mbud-dndflag { opacity: 1; transform: none; }
#pmm-buddy[data-dnd="1"] .mbud-house { filter: drop-shadow(0 4px 10px rgba(38, 34, 30, 0.10)) saturate(.72); }

/* -------------------------------------------------------------------- dog -- */
#pmm-buddy .mbud-dog {
  position: absolute; left: 0; top: 0;
  width: 88px; height: 88px;
  padding: 0; border: 0; background: none;
  cursor: pointer; pointer-events: auto;
  transform: translate3d(var(--mb-x), var(--mb-y), 0);
  /* ★ NO `transition: transform` HERE, ON PURPOSE.
     The position is interpolated per frame in JS (rAF). A CSS transition on the
     same property restarts on every frame, so the element chases its own tail
     and never arrives. The easing belongs to the rAF loop; CSS must not also
     animate it. */
  -webkit-tap-highlight-color: transparent;
}
/* resting: the flag is instant; the dog steps out of sight once it is home
   (.mbud-away), or immediately when there is no house to walk to */
#pmm-buddy.mbud-away .mbud-dog {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s, visibility 0s .35s;
}
#pmm-buddy .mbud-dog:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 50%; }
#pmm-buddy .mbud-dogsvg { width: 100%; height: 100%; overflow: visible; }
#pmm-buddy .mbud-shadow { fill: rgba(38, 34, 30, .10); }

/* MIMONT's clay palette — cream coat, caramel ears, blush, brown nose */
#pmm-buddy .mbud-torso { fill: #f6e9d0; stroke: rgba(154,120,86,.25); stroke-width: 1; }
#pmm-buddy .mbud-belly { fill: #fdf4e1; }
#pmm-buddy .mbud-paw { fill: #f2e2c4; stroke: rgba(154,120,86,.18); stroke-width: .8; }
#pmm-buddy .mbud-toe { stroke: rgba(154,120,86,.35); stroke-width: 1; stroke-linecap: round; fill: none; }
#pmm-buddy .mbud-face { fill: #f7ecd6; stroke: rgba(154,120,86,.22); stroke-width: 1; }
/* the fur crown: same fill as the face (merges into one silhouette) plus a few
   fine strands so it reads as hair rather than a bump */
#pmm-buddy .mbud-fur { fill: #f7ecd6; stroke: rgba(154,120,86,.18); stroke-width: .8; stroke-linejoin: round; }
#pmm-buddy .mbud-furline { fill: none; stroke: #cf9d6d; stroke-width: 1.05; stroke-linecap: round; opacity: .75; }
#pmm-buddy .mbud-ear { fill: #dda87a; transform-box: view-box; transform-origin: 32px 21px; transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
#pmm-buddy .mbud-ear-r { transform-origin: 64px 21px; }
#pmm-buddy .mbud-brow { stroke: #c99a6b; stroke-width: 1.6; stroke-linecap: round; fill: none; }
#pmm-buddy .mbud-eye { fill: #332a22; }
#pmm-buddy .mbud-glint { fill: #fffdf7; }
#pmm-buddy .mbud-pupil { transform: translate(var(--mb-ex), var(--mb-ey)); transition: transform .28s ease-out; }
#pmm-buddy .mbud-blush { fill: #f2b3a4; opacity: .55; }
#pmm-buddy .mbud-nose { fill: #8a5a3b; }
#pmm-buddy .mbud-mouth { fill: none; stroke: #8a5a3b; stroke-width: 1.4; stroke-linecap: round; }
#pmm-buddy .mbud-collar { fill: none; stroke: #b4552d; stroke-width: 4.2; stroke-linecap: round; }
#pmm-buddy .mbud-tag { fill: #e0a94a; stroke: #fffaf1; stroke-width: 1; }
#pmm-buddy .mbud-tail { fill: none; stroke: #dda87a; stroke-width: 8; stroke-linecap: round; }

#pmm-buddy .mbud-tail { transform-box: view-box; transform-origin: 67px 76px; animation: mbud-wag 3.6s ease-in-out infinite; }
#pmm-buddy .mbud-head { transform-box: view-box; transform-origin: 48px 56px; transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
#pmm-buddy .mbud-body { transform-box: view-box; transform-origin: 48px 81px; }
#pmm-buddy .mbud-eyes { transform-box: view-box; transform-origin: 48px 35.5px; animation: mbud-blink 6.4s infinite; }

#pmm-buddy .mbud-zzz, #pmm-buddy .mbud-marks, #pmm-buddy .mbud-heart { opacity: 0; transition: opacity .3s ease; }
#pmm-buddy .mbud-zzz text, #pmm-buddy .mbud-marks text {
  font: 600 9px/1 var(--serif), Georgia, serif; fill: #b9ad9c;
}
#pmm-buddy .mbud-qmark { fill: #b4552d; font-size: 16px; font-weight: 700; }
#pmm-buddy .mbud-heart path { fill: #e07a5f; stroke: none; }

/* --- poses ----------------------------------------------------------------- */
#pmm-buddy[data-state="rest"] .mbud-zzz { opacity: 1; }
#pmm-buddy[data-state="rest"] .mbud-zzz text:first-child { animation: mbud-drift 3.4s ease-in-out infinite; }
#pmm-buddy[data-state="rest"] .mbud-zzz text:last-child { animation: mbud-drift 3.4s ease-in-out .5s infinite; }
#pmm-buddy[data-state="rest"] .mbud-dogsvg { animation: mbud-breathe 5.2s ease-in-out infinite; }

#pmm-buddy[data-state="scroll"] .mbud-tail { animation-duration: 1.1s; }
#pmm-buddy[data-state="scroll"] .mbud-dogsvg { animation: mbud-bob .7s ease-in-out infinite; }
#pmm-buddy[data-state="scroll"] .mbud-ear { transform: rotate(12deg); }
#pmm-buddy[data-state="scroll"] .mbud-ear-r { transform: rotate(-12deg); }

#pmm-buddy[data-state="curious"] .mbud-marks { opacity: 1; }
#pmm-buddy[data-state="curious"] .mbud-head { transform: rotate(-8deg); }
#pmm-buddy[data-state="curious"] .mbud-tail { animation-duration: .9s; }

#pmm-buddy[data-state="assist"] .mbud-head { transform: rotate(5deg); }
#pmm-buddy[data-state="assist"] .mbud-tail { animation-duration: 1.6s; }
#pmm-buddy[data-state="assist"] .mbud-dogsvg { animation: mbud-bob 2.6s ease-in-out infinite; }

#pmm-buddy[data-state="happy"] .mbud-heart { opacity: 1; animation: mbud-pop 1.5s ease-out infinite; }
#pmm-buddy[data-state="happy"] .mbud-dogsvg { animation: mbud-hop .55s cubic-bezier(0.34, 1.56, 0.64, 1) 2; }
#pmm-buddy[data-state="happy"] .mbud-tail { animation-duration: .45s; }

/* walking lean (set from JS while the rAF loop is chasing a target) */
#pmm-buddy .mbud-dogsvg { transform: rotate(var(--mb-lean)); }

/* --- idle antics: one small unscripted thing at a time ---------------------- */
#pmm-buddy[data-antic="ear"] .mbud-ear { animation: mbud-twitch .5s ease-in-out 3; }
#pmm-buddy[data-antic="look"] .mbud-head { transform: rotate(9deg); }
#pmm-buddy[data-antic="look"] .mbud-ear-r { transform: rotate(-6deg); }
#pmm-buddy[data-antic="wag"] .mbud-tail { animation-duration: .38s; }
#pmm-buddy[data-antic="hop"] .mbud-dogsvg { animation: mbud-hop .5s cubic-bezier(0.34, 1.56, 0.64, 1) 2; }

/* a treat is being carried: head high, ears back, tail going */
#pmm-buddy.mbud-carry .mbud-head { transform: rotate(-6deg) translateY(-1.5px); }
#pmm-buddy.mbud-carry .mbud-tail { animation-duration: .4s; }

@keyframes mbud-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(.12); }
}
@keyframes mbud-wag {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}
@keyframes mbud-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(.8px) scale(1.014); }
}
@keyframes mbud-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes mbud-drift {
  0% { opacity: 0; transform: translate(0, 2px); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translate(5px, -9px); }
}
@keyframes mbud-twitch {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-14deg); }
  60% { transform: rotate(6deg); }
}
@keyframes mbud-hop {
  0%, 100% { transform: translateY(0) rotate(var(--mb-lean)); }
  40% { transform: translateY(-9px) rotate(var(--mb-lean)) scale(1.03, .96); }
  70% { transform: translateY(0) rotate(var(--mb-lean)) scale(.98, 1.02); }
}
@keyframes mbud-pop {
  0% { opacity: 0; transform: translate(0, 4px) scale(.5); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, -14px) scale(1.05); }
}

/* ------------------------------------------------------------------ bubble -- */
#pmm-buddy .mbud-bubble {
  position: absolute;
  right: 16px;
  bottom: 116px;
  max-width: 250px;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.45;
  pointer-events: auto;
  animation: mbud-bubble-in .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-bubble[hidden] { display: none; }
@keyframes mbud-bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
  to { opacity: 1; transform: none; }
}
#pmm-buddy .mbud-bubble-t { flex: 1; }
#pmm-buddy .mbud-bubble-x {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 0 2px;
}
#pmm-buddy .mbud-bubble-x:hover { color: var(--clay); }

/* ------------------------------------------------------------------- panel -- */
#pmm-buddy .mbud-panel {
  position: absolute;
  right: 12px; top: 86px;
  width: min(372px, calc(100vw - 24px));
  max-height: calc(100vh - 118px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(60, 42, 30, 0.16),
    0 2px 8px rgba(60, 42, 30, 0.06);
  pointer-events: auto;
  animation: mbud-in .34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-panel[hidden] { display: none; }
@keyframes mbud-in {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to { opacity: 1; transform: none; }
}

#pmm-buddy .mbud-phead {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 8px 14px;
}
#pmm-buddy .mbud-ava {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--cream, #f6ecdb);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
}
#pmm-buddy .mbud-ava svg { width: 30px; height: 30px; }
#pmm-buddy .mbud-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#pmm-buddy .mbud-who b {
  font: 700 14px/1.2 var(--sans); letter-spacing: 2px; color: var(--ink);
}
#pmm-buddy .mbud-who i {
  font: 400 10.5px/1.3 var(--sans); font-style: normal; color: var(--muted);
}
/* the only control in the panel besides closing it: send him home */
#pmm-buddy .mbud-dnd {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--muted);
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .15s, color .15s;
}
#pmm-buddy .mbud-dnd:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-1px); }
#pmm-buddy .mbud-dnd[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: #fffdf9; }
#pmm-buddy .mbud-homeicon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#pmm-buddy .mbud-pclose {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .15s, color .15s;
}
#pmm-buddy .mbud-pclose:hover { border-color: var(--clay); color: var(--clay); transform: rotate(90deg); }
#pmm-buddy .mbud-hello {
  margin: 0 14px 12px;
  font-size: 12.8px; line-height: 1.55; color: var(--ink-soft);
}

/* the sign-in link inside the greeting: underlined, in the brand's clay, and
   visibly a link — this is the way out of "only in this browser" */
#pmm-buddy .mbud-hello-link {
  color: var(--clay, #b4552d);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180, 85, 45, .55);
  transition: color .15s, text-decoration-color .15s;
}
#pmm-buddy .mbud-hello-link:hover {
  color: var(--clay-dark, #8f3f1d);
  text-decoration-color: currentColor;
}
#pmm-buddy .mbud-hello-link:focus-visible { outline: 2px solid var(--clay, #b4552d); outline-offset: 2px; border-radius: 3px; }

#pmm-buddy .mbud-view { margin: 0 14px; }
#pmm-buddy .mbud-view[hidden] { display: none; }
#pmm-buddy .mbud-loading { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }

/* --- the jar: three keepsakes at a time, arrows for the rest ---------------- */
#pmm-buddy .mbud-jar { position: relative; }
#pmm-buddy .mbud-jarhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin: 0 1px 8px;
}
#pmm-buddy .mbud-jar-t {
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--clay);
}
#pmm-buddy .mbud-jar-n { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

#pmm-buddy .mbud-railstrip { position: relative; }
#pmm-buddy .mbud-treats {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
/* Thumbnail sizing by page fill: three across is the design, but a jar holding
   one or two keepsakes must not squeeze them into a third of the panel and
   truncate their names. */
#pmm-buddy .mbud-jar[data-count="1"] .mbud-treats { grid-template-columns: minmax(0, 216px); }
#pmm-buddy .mbud-jar[data-count="2"] .mbud-treats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#pmm-buddy .mbud-treats[data-slide="next"] { animation: mbud-slide-l .34s cubic-bezier(0.32, 0.72, 0, 1); }
#pmm-buddy .mbud-treats[data-slide="prev"] { animation: mbud-slide-r .34s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes mbud-slide-l {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes mbud-slide-r {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

#pmm-buddy .mbud-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  margin-top: -12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf9;
  color: var(--ink-soft);
  font-size: 15px; line-height: 1; cursor: pointer;
  box-shadow: 0 3px 8px rgba(60, 42, 30, .10);
  transition: opacity .2s, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), color .15s;
}
#pmm-buddy .mbud-arrow--l { left: -9px; }
#pmm-buddy .mbud-arrow--r { right: -9px; }
#pmm-buddy .mbud-arrow:hover:not([disabled]) { color: var(--clay); transform: scale(1.08); }
#pmm-buddy .mbud-arrow[disabled] { opacity: 0; pointer-events: none; }

#pmm-buddy .mbud-treat {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .15s, box-shadow .2s;
}
#pmm-buddy .mbud-treat--grab { cursor: grab; }
#pmm-buddy .mbud-treat--grab:hover {
  transform: translateY(-2px) rotate(-.8deg);
  border-color: #d9b8a5;
  box-shadow: 0 8px 18px rgba(60, 42, 30, 0.10);
}
#pmm-buddy .mbud-treat--lift { opacity: .45; transform: scale(.96); }

/* The X on every card. It sits in the top-right corner of the picture and is
   ALWAYS visible (2026-11-06, operator request): a remove control that only
   appears on hover is a control most people never learn exists. */
#pmm-buddy .mbud-treat-x {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(60, 42, 30, .10); border-radius: 50%;
  background: rgba(255, 253, 249, .95);
  box-shadow: 0 1px 3px rgba(60, 42, 30, .18);
  color: #8a6b52; font: 400 15px/1 var(--sans);
  cursor: pointer;
  opacity: 1;
  transition: background .15s, color .15s, border-color .15s, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-treat-x:hover,
#pmm-buddy .mbud-treat-x:focus-visible {
  background: var(--clay, #b4552d); border-color: var(--clay, #b4552d); color: #fffdf9;
  transform: rotate(90deg);
  outline: none;
}
#pmm-buddy .mbud-thumb {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream, #f6ecdb);
  display: grid; place-items: center;
}
#pmm-buddy .mbud-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#pmm-buddy .mbud-thumb--empty svg { width: 34px; height: 34px; opacity: .5; }
#pmm-buddy .mbud-treat-n {
  font-size: 11.5px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#pmm-buddy .mbud-treat-m {
  font-size: 10px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#pmm-buddy .mbud-treat-a { display: flex; gap: 4px; margin-top: 1px; }
#pmm-buddy .mbud-treat-a button {
  flex: 1; min-width: 0;
  padding: 5px 4px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font: 500 10.5px/1 var(--sans); color: var(--ink-soft); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
#pmm-buddy .mbud-treat-a button:hover { border-color: var(--clay); color: var(--clay); }

#pmm-buddy .mbud-chip {
  display: inline-block; align-self: flex-start;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#pmm-buddy .mbud-chip--good { background: var(--sage-tint, #e6ecdf); color: #4d6047; }
#pmm-buddy .mbud-chip--warn { background: #fbf0dd; color: #8a6531; }
#pmm-buddy .mbud-chip--bad { background: var(--clay-tint, #f7e2d6); color: var(--clay-dark, #8f3f1d); }

#pmm-buddy .mbud-more {
  display: inline-block;
  margin: 10px 1px 0;
  font-size: 11.5px; color: var(--clay);
  border-bottom: 1px solid rgba(180, 85, 45, .3);
}
#pmm-buddy .mbud-empty {
  font-size: 12.5px; color: var(--ink-soft);
  padding: 16px 14px 18px;
  border: 1px dashed #e0cdb6;
  border-radius: 16px;
  background: #fffcf6;
  text-align: center;
  transition: border-color .2s, background .2s;
}
#pmm-buddy .mbud-empty-t { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
#pmm-buddy .mbud-empty p { margin-bottom: 5px; }
#pmm-buddy .mbud-empty-hint {
  display: block; margin-top: 10px;
  font-size: 10.5px; color: #b08a6d;
}
#pmm-buddy .mbud-link {
  font-size: 12.5px; color: var(--clay);
  border-bottom: 1px solid rgba(180, 85, 45, .3);
}

#pmm-buddy .mbud-pick-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 8px;
}
#pmm-buddy .mbud-back {
  border: 0; background: none; padding: 0;
  font: 500 12px/1 var(--sans); color: var(--clay); cursor: pointer;
}
#pmm-buddy .mbud-picks { list-style: none; display: flex; flex-direction: column; gap: 5px; }
#pmm-buddy .mbud-picks button {
  width: 100%;
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  font: 500 12.5px/1.2 var(--sans); text-align: left;
  transition: border-color .15s, background .15s, transform .15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-picks button:hover { border-color: #d9b8a5; background: #fffaf4; transform: translateX(2px); }
#pmm-buddy .mbud-pick-c { color: var(--muted); font-size: 11px; font-weight: 400; }

/* ------------------------------------------- drop targets (page-owned nodes) -- */
/* These classes land on nodes OUTSIDE #pmm-buddy, so they cannot be scoped
   under the component's id. They are transient highlights that exist only
   while a design is being carried and are removed on dragend/destroy. */
/* The design handle on a product page. It lives in the page's own
   .preview-stage (the PDP preview is an <svg> and cannot be dragged itself),
   so it must be a page-level class — but the name is ours and nothing else
   styles it. */
.mbud-keep {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(180, 85, 45, .38);
  border-radius: 999px;
  background: rgba(255, 253, 249, .95);
  box-shadow: 0 6px 16px rgba(60, 42, 30, .14);
  font: 600 11.5px/1 var(--sans); color: var(--clay, #b4552d);
  cursor: grab; user-select: none;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .22s, transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), background .15s;
}
.preview-stage:hover .mbud-keep,
.mbud-keep:focus-visible { opacity: 1; transform: none; }
.mbud-keep:hover { background: #fff6ee; }
.mbud-keep:active { cursor: grabbing; }
@media (hover: none) { .mbud-keep { opacity: 1; transform: none; } }

.mbud-drop { outline: 2px dashed rgba(180, 85, 45, .45); outline-offset: 3px; border-radius: 14px; }
.mbud-drop-hot { outline: 3px solid rgba(180, 85, 45, .8) !important; outline-offset: 2px; border-radius: 14px; transition: outline-color .15s; }
.mbud-jar-hot { border-color: var(--clay) !important; background: #fff6ee !important; box-shadow: 0 0 0 3px rgba(180, 85, 45, .12) !important; }
#pmm-buddy .mbud-dog.mbud-jar-hot {
  background: transparent !important;
  box-shadow: none !important;
  outline: 3px dashed rgba(180, 85, 45, .55);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ------------------------------------------------------------- narrow / a11y -- */
#pmm-buddy .mbud-wake {
  position: absolute;
  right: 12px; bottom: 20px;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: var(--shadow-md);
  font: 600 12px/1 var(--sans); color: var(--ink-soft);
  cursor: pointer; pointer-events: auto;
  animation: mbud-bubble-in .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pmm-buddy .mbud-wake[hidden] { display: none; }
#pmm-buddy .mbud-wake svg { width: 24px; height: 24px; }
#pmm-buddy .mbud-wake:hover { border-color: var(--clay); color: var(--clay); }

@media (max-width: 900px) {
  #pmm-buddy .mbud-house { display: none !important; }
  #pmm-buddy .mbud-dog { width: 60px; height: 60px; }
  #pmm-buddy .mbud-panel {
    right: 10px; left: 10px; top: auto;
    bottom: 84px;
    width: auto;
    max-height: 68vh;
    border-radius: 20px 20px 16px 16px;
  }
  #pmm-buddy .mbud-bubble { right: 12px; bottom: 156px; }
  #pmm-buddy .mbud-treats { gap: 6px; }
  #pmm-buddy .mbud-treat { padding: 6px; }
  #pmm-buddy .mbud-treat-m { display: none; }
  #pmm-buddy .mbud-wake { bottom: 84px; }
}

/* The shopper asked for less motion, or the system did. The states still change
   (the dog still tells you what it is doing, and the panel still opens) — only
   the movement goes away. */
#pmm-buddy[data-motion="reduced"] .mbud-dog,
#pmm-buddy[data-motion="reduced"] .mbud-house { transition: none; }
#pmm-buddy[data-motion="reduced"] .mbud-dogsvg,
#pmm-buddy[data-motion="reduced"] .mbud-tail,
#pmm-buddy[data-motion="reduced"] .mbud-eyes,
#pmm-buddy[data-motion="reduced"] .mbud-pupil,
#pmm-buddy[data-motion="reduced"] .mbud-ear,
#pmm-buddy[data-motion="reduced"] .mbud-head,
#pmm-buddy[data-motion="reduced"] .mbud-zzz text,
#pmm-buddy[data-motion="reduced"] .mbud-heart,
#pmm-buddy[data-motion="reduced"] .mbud-treats,
#pmm-buddy[data-motion="reduced"] .mbud-panel,
#pmm-buddy[data-motion="reduced"] .mbud-bubble { animation: none !important; }
#pmm-buddy[data-motion="reduced"] .mbud-dogsvg { transform: none; }

@media (prefers-reduced-motion: reduce) {
  #pmm-buddy .mbud-dog, #pmm-buddy .mbud-house { transition: none; }
  #pmm-buddy .mbud-dogsvg, #pmm-buddy .mbud-tail, #pmm-buddy .mbud-eyes,
  #pmm-buddy .mbud-pupil, #pmm-buddy .mbud-ear, #pmm-buddy .mbud-head,
  #pmm-buddy .mbud-heart, #pmm-buddy .mbud-treats,
  #pmm-buddy .mbud-panel, #pmm-buddy .mbud-bubble {
    animation: none !important;
  }
  #pmm-buddy .mbud-dogsvg { transform: none; }
}
