/* IA-restructure-1: "Your preferences · set once" group header inside
   the More popover. Quiet uppercase mini-label, no border, just spacing. */
html.pmg-chassis-v3 .pmg-chip-pop__group {
  padding: 10px 4px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text, #e8f3ec) 55%, transparent);
}
html.pmg-chassis-v3 .pmg-chip-pop__group:first-of-type { padding-top: 4px; }

/* pmg-tune-chips.css — quick-access tuning chip row + Tune & Build button.
   Lives directly under the #goal textarea. Two-way bound to the existing
   <select> elements inside #settingsPanel (id="category|skillLevel|tone|
   outputFormat|maxLength|outputLanguage|personality"). Chips ARE the
   tuning UI for casual use; the full Pro Tuning section is hidden by
   default and only revealed when the user clicks the "🎛️ Tune & Build"
   button next to "Fix My Prompt".

   Theme tokens only — no hardcoded teal. Scoped under html.pmg-chassis-v3
   so legacy chassis can never accidentally pick these up. */

/* tc-9b: when scrollIntoView pins the tuning panel to the top of the
   viewport, leave room for the chassis topbar (~64px) so the panel
   header isn't clipped behind it. */
html.pmg-chassis-v3 #tuning-panel {
  scroll-margin-top: 84px;
}

html.pmg-chassis-v3 .pmg-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 0;
  padding: 0;
  align-items: center;
}

html.pmg-chassis-v3 .pmg-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 28%, transparent);
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 6%, transparent);
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 90%, #ffffff 10%);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
  font-family: inherit;
}
html.pmg-chassis-v3 .pmg-chip:hover {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 14%, transparent);
  border-color: color-mix(in srgb, var(--color-primary, #3ee0a0) 50%, transparent);
}
html.pmg-chassis-v3 .pmg-chip:focus-visible {
  outline: 2px solid var(--color-primary, #3ee0a0);
  outline-offset: 2px;
}
html.pmg-chassis-v3 .pmg-chip[aria-expanded="true"] {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 22%, transparent);
  border-color: var(--color-primary, #3ee0a0);
}
html.pmg-chassis-v3 .pmg-chip__label {
  opacity: 0.7;
  font-weight: 500;
}
html.pmg-chassis-v3 .pmg-chip__value {
  font-weight: 700;
}
html.pmg-chassis-v3 .pmg-chip__caret {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 2px;
}

/* Brief flash when auto-tune (or any external code) updates the underlying
   select — teaches the user that the chip is live-bound. */
html.pmg-chassis-v3 .pmg-chip.is-just-updated {
  animation: pmg-chip-flash 0.9s ease-out;
}
@keyframes pmg-chip-flash {
  0%   { background: color-mix(in srgb, var(--color-primary, #3ee0a0) 38%, transparent); }
  100% { background: color-mix(in srgb, var(--color-primary, #3ee0a0) 6%, transparent); }
}

/* Popover — fixed-positioned by JS so it never gets clipped by overflow
   parents. data-pmg-overlay-root keeps the chassis universal-hide rule
   from erasing it when body-appended. */
html.pmg-chassis-v3 .pmg-chip-pop {
  position: fixed;
  z-index: 10050;
  min-width: 200px;
  max-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: #0c1a18;
  border: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 35%, transparent);
  border-radius: 12px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--color-primary, #3ee0a0) 8%, transparent) inset;
  padding: 6px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
html.pmg-chassis-v3 .pmg-chip-pop.is-open {
  opacity: 1;
  transform: translateY(0);
}
html.pmg-chassis-v3 .pmg-chip-pop__title {
  display: block;
  padding: 8px 10px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 70%, #ffffff 30%);
  opacity: 0.9;
}
html.pmg-chassis-v3 .pmg-chip-pop__opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #e6f7f1;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
html.pmg-chassis-v3 .pmg-chip-pop__opt:hover,
html.pmg-chassis-v3 .pmg-chip-pop__opt:focus-visible {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 14%, transparent);
  outline: none;
}
html.pmg-chassis-v3 .pmg-chip-pop__opt[aria-selected="true"] {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 22%, transparent);
  color: var(--color-primary, #3ee0a0);
  font-weight: 700;
}
html.pmg-chassis-v3 .pmg-chip-pop__opt[aria-selected="true"]::after {
  content: '✓';
  float: right;
  margin-left: 8px;
  color: var(--color-primary, #3ee0a0);
}

/* "More ▾" chip — visually identical to the others but slightly muted
   so it reads as secondary. */
html.pmg-chassis-v3 .pmg-chip.is-more {
  background: transparent;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--color-primary, #3ee0a0) 30%, transparent);
}

/* "🎛️ More tuning" — quiet inline pill at the end of the chip row.
   Intentionally NOT a competing CTA: the only big button is
   "Build My Prompt". This pill matches chip styling but uses a dashed
   border + dimmer text so it reads as "open everything else". */
html.pmg-chassis-v3 .pmg-tune-and-build.pmg-chip.is-tune-build {
  background: transparent;
  border-style: solid;
  border-color: color-mix(in srgb, var(--color-primary, #3ee0a0) 30%, transparent);
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 80%, white);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 12px;
  padding: 6px 12px;
}
html.pmg-chassis-v3 .pmg-tune-and-build.pmg-chip.is-tune-build:hover {
  border-color: var(--color-primary, #3ee0a0);
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 10%, transparent);
  color: var(--color-primary, #3ee0a0);
}

/* Single-pill row: align quietly to the right under the textarea
   (only used as a fallback when the voice row hasn't mounted yet). */
html.pmg-chassis-v3 .pmg-chip-row--single {
  justify-content: flex-end;
  margin-top: 6px;
}

/* When the pill is hosted INSIDE the voice/lang row, push it to the
   far right and shrink it slightly so it reads as secondary to the
   Voice Input mic + language picker. */
html.pmg-chassis-v3 .pmg-tune-and-build.is-in-voice-row {
  margin-left: auto;
  font-size: 11px;
  padding: 5px 10px;
  min-height: 0;
}

/* "✓ Done — back to Build" bar appended to the bottom of .tuning-section
   when the user opens the full panel. Sends them back to the primary
   "Build My Prompt" CTA. */
/* tc-9m: sticky bottom bar so "✓ Done — Build My Prompt" stays visible
   regardless of the section's internal scroll state. Without this, on
   mobile (where .tuning-section keeps its 360px cap) and on desktop in
   the rare case where AOS + Money Mode Pro both expand past the
   viewport cap, the Done button got buried below the internal scroll
   fold and users couldn't find their way out of Tuning. position:sticky
   pins it to the bottom edge of the scroll container so it's always
   one tap away. */
html.pmg-chassis-v3 .pmg-tune-done-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 4px 4px;
  border-top: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 18%, transparent);
  position: sticky;
  bottom: -16px; /* cancel the section's 16px bottom padding so the bar hugs the edge */
  background: color-mix(in srgb, #0b1620 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

/* Quiet "Open Expert Command Center" link inside the Done bar.
   Subtle — text-button styling, NOT a competing CTA. */
html.pmg-chassis-v3 .pmg-tune-ecc-link,
html.pmg-chassis-v3 .pmg-vs-ecc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px dashed color-mix(in srgb, var(--color-primary, #3ee0a0) 30%, transparent);
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 80%, white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
html.pmg-chassis-v3 .pmg-tune-ecc-link:hover,
html.pmg-chassis-v3 .pmg-vs-ecc-link:hover {
  border-color: var(--color-primary, #3ee0a0);
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 10%, transparent);
  color: var(--color-primary, #3ee0a0);
}
html.pmg-chassis-v3 .pmg-tune-ecc-link:focus-visible,
html.pmg-chassis-v3 .pmg-vs-ecc-link:focus-visible {
  outline: 2px solid var(--color-primary, #3ee0a0);
  outline-offset: 2px;
}

/* Photo / Video panels: the ECC link sits at the bottom of each
   already-collapsed Advanced Tuning accordion, right-aligned. */
html.pmg-chassis-v3 .pmg-vs-ecc-slot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--color-primary, #3ee0a0) 18%, transparent);
}
html.pmg-chassis-v3 .pmg-tune-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--color-primary, #3ee0a0);
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 14%, transparent);
  color: var(--color-primary, #3ee0a0);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
  transition: background 0.15s ease;
}
html.pmg-chassis-v3 .pmg-tune-done:hover {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 24%, transparent);
}
html.pmg-chassis-v3 .pmg-tune-done:focus-visible {
  outline: 2px solid var(--color-primary, #3ee0a0);
  outline-offset: 2px;
}

/* Brief attention pulse on #generateBtn after Done is clicked. */
@keyframes pmg-cta-pulse-kf {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary, #3ee0a0) 55%, transparent); }
  60%  { box-shadow: 0 0 0 14px color-mix(in srgb, var(--color-primary, #3ee0a0) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary, #3ee0a0) 0%, transparent); }
}
html.pmg-chassis-v3 .pmg-cta-pulse {
  animation: pmg-cta-pulse-kf 0.9s ease-out 1;
}

/* When chips are mounted AND user hasn't explicitly opted in to the full
   tuning section, hide it. Reveal when body has .pmg-tune-section-shown. */
html.pmg-chassis-v3 body.pmg-tune-chips-on:not(.pmg-tune-section-shown) .tuning-section {
  display: none !important;
}

/* tc-9g: When the user clicks the Prompt Tuning pill, reveal the panel
   in its natural DOM position (right under the textarea / pill row) and
   scroll the user to it. Force-display the inner #settingsPanel +
   .pmgv3-tuning-host + .pmgv3-epic-tuning so cv3-47's
   `.tuning-section:not(.is-mobile-open) .pmgv3-tuning-host {display:none}`
   can never hide the fields once the body class flips. */
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel {
  display: block !important;
  visibility: visible !important;
}
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel .pmgv3-tuning-host,
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel #settingsPanel,
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel .pmgv3-epic-tuning,
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel .tuning-hint {
  display: block !important;
  visibility: visible !important;
}
html.pmg-chassis-v3 body.pmg-tune-section-shown #tuning-panel .tuning-header {
  display: flex !important;
  visibility: visible !important;
}

/* tc-9p: Full-screen overlay that hosts the .tuning-section while open.
   Replaces the tc-9n right-column relocation. The overlay backdrop is
   a fixed full-viewport scrim; the panel is a centered modal that
   contains the reparented #tuning-panel and a sticky footer with the
   "✓ Done — Build My Prompt" CTA. Same layout on mobile and desktop —
   the only width-fork is that the panel grows to nearly the full
   viewport on narrow screens. data-pmg-overlay-root on both nodes is
   what keeps the chassis universal-hide rule from erasing them. */
html.pmg-chassis-v3 .pmg-tune-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 10, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
html.pmg-chassis-v3 .pmg-tune-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
html.pmg-chassis-v3 .pmg-tune-overlay-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  background: #0b1620;
  border: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 35%, transparent);
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--color-primary, #3ee0a0) 8%, transparent) inset;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}
html.pmg-chassis-v3 .pmg-tune-overlay.is-open .pmg-tune-overlay-panel {
  transform: translateY(0) scale(1);
}
html.pmg-chassis-v3 .pmg-tune-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 18%, transparent);
  flex: 0 0 auto;
}
html.pmg-chassis-v3 .pmg-tune-overlay-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 80%, white);
}
html.pmg-chassis-v3 .pmg-tune-overlay-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 22%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--color-primary, #3ee0a0) 80%, white);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}
html.pmg-chassis-v3 .pmg-tune-overlay-close:hover {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 12%, transparent);
  border-color: var(--color-primary, #3ee0a0);
}
html.pmg-chassis-v3 .pmg-tune-overlay-close:focus-visible {
  outline: 2px solid var(--color-primary, #3ee0a0);
  outline-offset: 2px;
}
html.pmg-chassis-v3 .pmg-tune-overlay-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}
/* Inside the overlay, the reparented #tuning-panel must drop the
   chassis-imposed cap and any sticky positioning that assumed an
   outer scroller. The overlay body is the scroll container now. */
html.pmg-chassis-v3 .pmg-tune-overlay-body #tuning-panel {
  display: block !important;
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
}
/* The in-section secondary Done bar: no longer sticky inside the
   overlay (the overlay footer is the always-visible primary CTA).
   Keep it as a regular block so it ends the scroll region cleanly. */
html.pmg-chassis-v3 .pmg-tune-overlay-body .pmg-tune-done-bar {
  position: static;
  bottom: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.pmg-chassis-v3 .pmg-tune-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid color-mix(in srgb, var(--color-primary, #3ee0a0) 22%, transparent);
  background: color-mix(in srgb, #0b1620 96%, transparent);
  flex: 0 0 auto;
}
html.pmg-chassis-v3 .pmg-tune-done--primary {
  padding: 12px 22px;
  font-size: 14px;
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary, #3ee0a0) 60%, transparent),
              0 4px 16px color-mix(in srgb, var(--color-primary, #3ee0a0) 25%, transparent);
}
html.pmg-chassis-v3 .pmg-tune-done--primary:hover {
  background: color-mix(in srgb, var(--color-primary, #3ee0a0) 38%, transparent);
}

/* tc-9p: hide the legacy left-column "Build/Generate My Prompt"
   button once a result is on screen. The right-column action grid
   (Run With AI, Auto-Boost, Edit, Rewrite, Send to ChatGPT…) provides
   every next-step CTA. Reopening the Tune overlay and clicking its
   sticky-footer Done re-fires the build, so users still have a way
   to regenerate after tweaking. Removes the "redundant Generate My
   Prompt button" friction surfaced in the post-launch UX walkthrough. */
html.pmg-chassis-v3 body.pmg-has-result #generateBtn {
  /* double-cta-1 REVERTED 2026-05-12: previously also matched
     body.pmg-has-generated to cover the in-flight phase, but that body
     class is persisted to localStorage and re-added on EVERY page load
     (app.html L13065). On return visits the legacy Build button became
     invisible BEFORE the user had built anything in this session, and
     the Tune overlay's "Done — Build My Prompt" path (which calls
     #generateBtn.click() programmatically) appeared to "do nothing"
     because users couldn't see any feedback until a result eventually
     landed. Falling back to post-result-only hide. The 1–2s in-flight
     flash is acceptable; breaking the rebuild flow is not. */
  display: none !important;
}

@media (max-width: 480px) {
  html.pmg-chassis-v3 .pmg-tune-overlay { padding: 12px; }
  html.pmg-chassis-v3 .pmg-tune-overlay-panel { max-height: calc(100vh - 24px); }
  html.pmg-chassis-v3 .pmg-tune-overlay-header,
  html.pmg-chassis-v3 .pmg-tune-overlay-footer { padding: 12px 14px; }
  html.pmg-chassis-v3 .pmg-tune-overlay-body { padding: 12px 14px; }
  html.pmg-chassis-v3 .pmg-tune-done--primary { width: 100%; justify-content: center; }
  html.pmg-chassis-v3 .pmg-tune-overlay-footer #pmg-tune-overlay-ecc { width: 100%; justify-content: center; }
}

/* Mobile fit — chips wrap, popover narrows. */
@media (max-width: 480px) {
  html.pmg-chassis-v3 .pmg-chip {
    font-size: 12px;
    padding: 6px 10px;
  }
  html.pmg-chassis-v3 .pmg-chip-pop {
    min-width: 180px;
    max-width: 88vw;
  }
  html.pmg-chassis-v3 .pmg-tune-and-build.pmg-chip.is-tune-build {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pmg-chassis-v3 .pmg-chip,
  html.pmg-chassis-v3 .pmg-chip-pop,
  html.pmg-chassis-v3 .pmg-tune-and-build { transition: none; }
  html.pmg-chassis-v3 .pmg-chip.is-just-updated { animation: none; }
}

/* ecc-apply-visibility-2: post-Apply visual feedback. */
@keyframes pmg-ecc-applied-pulse-kf {
  0%   { box-shadow: 0 0 0 0    color-mix(in srgb, var(--color-primary, #3ee0a0) 70%, transparent); }
  60%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-primary, #3ee0a0) 0%, transparent); }
  100% { box-shadow: 0 0 0 0    color-mix(in srgb, var(--color-primary, #3ee0a0) 0%, transparent); }
}
html.pmg-chassis-v3 #goal.pmg-ecc-applied-pulse {
  animation: pmg-ecc-applied-pulse-kf 1.6s ease-out 1;
  border-color: var(--color-primary, #3ee0a0) !important;
}
.pmg-ecc-apply-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 100000;
  background: #0e2722;
  color: #e8fff5;
  border: 1px solid var(--color-primary, #3ee0a0);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  max-width: calc(100vw - 32px);
  text-align: center;
  opacity: 0;
  animation: pmg-ecc-toast-in 220ms ease-out forwards;
}
.pmg-ecc-apply-toast.is-out {
  animation: pmg-ecc-toast-out 480ms ease-in forwards;
}
@keyframes pmg-ecc-toast-in  { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pmg-ecc-toast-out { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 12px); } }

html.pmg-chassis-v3 #pmg-ecc-inline-build {
  display: block;
  width: 100%;
  margin: 12px 0 4px;
  padding: 14px 18px;
  background: var(--color-primary, #3ee0a0);
  color: var(--color-text-inverse, #07221c);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary, #3ee0a0) 70%, transparent);
  animation: pmg-ecc-applied-pulse-kf 1.6s ease-out 1;
  transition: transform 120ms ease, filter 120ms ease;
}
html.pmg-chassis-v3 #pmg-ecc-inline-build:hover { filter: brightness(1.05); transform: translateY(-1px); }
html.pmg-chassis-v3 #pmg-ecc-inline-build:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.pmg-chassis-v3 #goal.pmg-ecc-applied-pulse,
  html.pmg-chassis-v3 #pmg-ecc-inline-build { animation: none; }
  .pmg-ecc-apply-toast, .pmg-ecc-apply-toast.is-out { animation: none; opacity: 1; }
}
