/* Lively look: Settings > Animations > Lively, the default. site.js sets html[data-motion] to
   lively, simple or calm, and adds the background layer, scroll line, click rings and the cart
   dot to <body>. Simple and Calm hide every rule here. The computer's reduce-motion switch keeps
   the background glow still and turns the rest off. Only transform, translate, scale and opacity
   move, so long tables and the shop PCs keep scrolling smoothly. Shop TV and print stay plain. */

@property --qh-spot { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.qh-aurora, .qh-scrollline, .qh-ring, .qh-fly { display: none; }

html body.qh-portal-og {
  --fx-1: var(--qh-action, #c45a12);
  --fx-2: #3f7fe0;
  --fx-3: #13a493;
  --fx-4: #e0663a;
  --fx-o1: .17;
  --fx-o2: .13;
  --fx-o3: .11;
  --fx-o4: .09;
  --fx-grid: rgba(24, 35, 44, .055);
  --fx-grain: .05;
}
html[data-theme="dark"] body.qh-portal-og {
  --fx-o1: .34;
  --fx-o2: .27;
  --fx-o3: .22;
  --fx-o4: .16;
  --fx-grid: rgba(255, 255, 255, .04);
  --fx-grain: .07;
}

/* ---- Moving background ---- */
/* The body is its own layer so the glow sits above the body colour and under every page panel. */
html[data-motion="lively"] body.qh-portal-og:not(.qh-display) { isolation: isolate; }
html[data-motion="lively"] body.qh-portal-og:not(.qh-display) #qh-charcoal-final :is(.cc-app, #shell, #stage.cc-main) { background: transparent !important; }
html[data-motion="lively"]:not(.qh-embedded) body.qh-portal-og:not(.qh-display) > .qh-aurora {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  translate: var(--fx-px, 0px) var(--fx-py, 0px);
  transition: translate 1.4s cubic-bezier(.2, .7, .2, 1);
  animation: qhFxIn 1.2s ease both;
}
.qh-aurora > i {
  position: absolute;
  display: block;
  width: 64vmax;
  height: 64vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--fx-c), transparent);
  will-change: transform;
}
.qh-aurora > .qa1 { --fx-c: var(--fx-1); top: -26vmax; left: -16vmax; opacity: var(--fx-o1); animation: qhAur1 31s ease-in-out infinite alternate; }
.qh-aurora > .qa2 { --fx-c: var(--fx-2); top: -12vmax; right: -24vmax; width: 58vmax; height: 58vmax; opacity: var(--fx-o2); animation: qhAur2 39s ease-in-out infinite alternate; }
.qh-aurora > .qa3 { --fx-c: var(--fx-3); bottom: -34vmax; left: 16vw; width: 72vmax; height: 72vmax; opacity: var(--fx-o3); animation: qhAur3 47s ease-in-out infinite alternate; }
.qh-aurora > .qa4 { --fx-c: var(--fx-4); top: 36vh; left: 38vw; width: 40vmax; height: 40vmax; opacity: var(--fx-o4); animation: qhAur4 27s ease-in-out infinite alternate; }
@supports (animation-timeline: scroll()) {
  .qh-aurora > .qa1 { animation: qhAur1 31s ease-in-out infinite alternate, qhAurScroll 1ms linear both; animation-timeline: auto, scroll(root block); }
  .qh-aurora > .qa2 { animation: qhAur2 39s ease-in-out infinite alternate, qhAurScroll 1ms linear both; animation-timeline: auto, scroll(root block); }
  .qh-aurora > .qa3 { animation: qhAur3 47s ease-in-out infinite alternate, qhAurScroll 1ms linear both; animation-timeline: auto, scroll(root block); }
  .qh-aurora > .qa4 { animation: qhAur4 27s ease-in-out infinite alternate, qhAurScroll 1ms linear both; animation-timeline: auto, scroll(root block); }
}
/* A faint grid near the top and a still film grain: modern texture, drawn once. */
.qh-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 58% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 58% at 50% 0%, #000 0%, transparent 78%);
}
.qh-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--fx-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-fx-still] .qh-aurora > i { animation: none; }
html[data-fx-still] .qh-aurora { translate: none; }
@keyframes qhFxIn { from { opacity: 0; } }
@keyframes qhAur1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(18vw, 10vh, 0) scale(1.15); } 100% { transform: translate3d(6vw, 26vh, 0) scale(.92); } }
@keyframes qhAur2 { 0% { transform: translate3d(0, 0, 0) scale(1.05); } 50% { transform: translate3d(-22vw, 18vh, 0) scale(.9); } 100% { transform: translate3d(-8vw, 40vh, 0) scale(1.12); } }
@keyframes qhAur3 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-16vw, -14vh, 0) scale(1.1); } 100% { transform: translate3d(14vw, -24vh, 0) scale(.95); } }
@keyframes qhAur4 { 0% { transform: translate3d(0, 0, 0) scale(.9); } 50% { transform: translate3d(-24vw, 12vh, 0) scale(1.2); } 100% { transform: translate3d(18vw, -10vh, 0) scale(1); } }
/* The glow lags behind the page as it scrolls, which reads as depth. */
@keyframes qhAurScroll { from { translate: 0 0; } to { translate: 0 -14vh; } }
@media (max-width: 680px) {
  .qh-aurora > .qa3, .qh-aurora > .qa4 { display: none; }
  .qh-aurora > i { width: 90vmax; height: 90vmax; }
}

/* ---- Header turns to frosted glass once the page scrolls under it (mouse screens only;
   phones skip the blur to save battery). ---- */
@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  html[data-motion="lively"].qh-scrolled body.qh-portal-og #qh-charcoal-final #appChrome {
    background: #0d1316;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 16px 32px -24px rgba(0, 0, 0, .75);
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #appChrome :is(.cc-header, #primaryTabs) { transition: background-color .3s ease; }
  html[data-motion="lively"].qh-scrolled body.qh-portal-og #qh-charcoal-final #appChrome .cc-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html[data-motion="lively"].qh-scrolled body.qh-portal-og #qh-charcoal-final #appChrome #primaryTabs { background: rgba(255, 255, 255, .76); }
  html[data-motion="lively"][data-theme="dark"].qh-scrolled body.qh-portal-og #qh-charcoal-final #appChrome #primaryTabs { background: rgba(42, 55, 67, .8); }
}

/* ---- Scroll line: how far down the page you are. ---- */
@supports (animation-timeline: scroll()) {
  html[data-motion="lively"] body.qh-portal-og:not(.qh-display) > .qh-scrollline {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147482000;
    height: 3px;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--qh-action, #c45a12), color-mix(in srgb, var(--qh-action, #c45a12) 45%, #fff));
    box-shadow: 0 0 12px color-mix(in srgb, var(--qh-action, #c45a12) 60%, transparent);
    animation: qhScrollLine 1ms linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes qhScrollLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Page change: the old page ghosts out (blur and fade) while the new one settles in.
   The header and phone tab bar hold still. ---- */
html.qh-vt body.qh-portal-og #qh-charcoal-final #appChrome { view-transition-name: qh-chrome; }
html.qh-vt body.qh-portal-og .bottom-nav { view-transition-name: qh-bottom; }
html.qh-vt { background-color: var(--qh-bg, #19222a); }
html.qh-vt::view-transition-group(qh-chrome),
html.qh-vt::view-transition-group(qh-bottom),
html.qh-vt::view-transition-new(qh-chrome),
html.qh-vt::view-transition-new(qh-bottom) { animation: none; }
html.qh-vt::view-transition-old(qh-chrome),
html.qh-vt::view-transition-old(qh-bottom) { display: none; }
html.qh-vt::view-transition-old(root) { animation: qhGhostOut .36s cubic-bezier(.4, 0, .2, 1) both; }
html.qh-vt::view-transition-new(root) { animation: qhGhostIn .36s cubic-bezier(.4, 0, .2, 1) both; }
/* Operations and Create Order get a sideways handoff so tool-to-tool swaps feel clearer. */
html.qh-vt.qh-vt-ops::view-transition-old(root) { animation: qhOpsOut .42s cubic-bezier(.4, 0, .2, 1) both; }
html.qh-vt.qh-vt-ops::view-transition-new(root) { animation: qhOpsIn .46s cubic-bezier(.2, .7, .2, 1) both; }
/* Jobs and Calendar share a screen. Ease the page down instead of sliding the whole shop sideways. */
html.qh-vt.qh-vt-board::view-transition-old(root) { animation: qhBoardOut 180ms cubic-bezier(.4, 0, .2, 1) both; }
html.qh-vt.qh-vt-board::view-transition-new(root) { animation: qhBoardIn 180ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes qhGhostOut { to { opacity: 0; transform: translateY(-8px) scale(.99); filter: blur(7px); } }
@keyframes qhGhostIn { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } }
@keyframes qhGhostOutLite { to { opacity: 0; transform: translateY(-6px); } }
@keyframes qhGhostInLite { from { opacity: 0; transform: translateY(10px); } }
@keyframes qhOpsOut { to { opacity: 0; transform: translateX(-28px) scale(.985); filter: blur(6px); } }
@keyframes qhOpsIn { from { opacity: 0; transform: translateX(36px) scale(.99); filter: blur(6px); } }
@keyframes qhBoardOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes qhBoardIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes qhOpsOutLite { to { opacity: 0; transform: translateX(-16px); } }
@keyframes qhOpsInLite { from { opacity: 0; transform: translateX(20px); } }
@media (pointer: coarse) {
  html.qh-vt::view-transition-old(root) { animation-name: qhGhostOutLite; }
  html.qh-vt::view-transition-new(root) { animation-name: qhGhostInLite; }
  html.qh-vt.qh-vt-ops::view-transition-old(root) { animation-name: qhOpsOutLite; }
  html.qh-vt.qh-vt-ops::view-transition-new(root) { animation-name: qhOpsInLite; }
}

/* ---- Page title: arrives with a short copper afterimage, then a light sweeps across it.
   site.js only tags a title made of plain text. ---- */
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage h1.qh-sheen {
  background: linear-gradient(100deg, currentColor 0 42%, var(--qh-accent-ink, var(--qh-action, #c45a12)) 50%, currentColor 58% 100%) 0 0 / 260% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: qhTitleGhost .7s cubic-bezier(.2, .7, .2, 1) both, qhSheen 1.25s cubic-bezier(.4, 0, .2, 1) .3s both;
}
@keyframes qhTitleGhost {
  from {
    opacity: 0;
    translate: 14px 0;
    text-shadow: -16px 0 14px color-mix(in srgb, var(--qh-action, #c45a12) 55%, transparent), -34px 0 24px color-mix(in srgb, var(--qh-action, #c45a12) 25%, transparent);
  }
  to { opacity: 1; translate: 0 0; text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes qhSheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- Home hero: slow zoom on the photo, depth on scroll, a shimmer on the tagline, and a
   pulse ring on Shop all. ---- */
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-hero { overflow: hidden; isolation: isolate; contain: paint; }
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-hero-copy { position: relative; z-index: 1; }
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-hero > img {
  transform: scale(1.06);
  transform-origin: center;
  will-change: transform;
  animation: qhKen 26s ease-in-out infinite alternate;
}
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-hero h1 em {
  background: linear-gradient(90deg, var(--qh-accent-ink, var(--orange)) 0%, #ffe3bd 25%, var(--qh-accent-ink, var(--orange)) 50%, #ffe3bd 75%, var(--qh-accent-ink, var(--orange)) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: qhShimmer 7s linear infinite;
}
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-go { position: relative; overflow: visible; }
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-go::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--orange);
  opacity: 0;
  pointer-events: none;
  animation: qhPulseRing 2.8s cubic-bezier(.2, .7, .3, 1) 1.2s infinite;
}
@keyframes qhKen { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@keyframes qhShimmer { to { background-position: -200% 0; } }
@keyframes qhPulseRing { 0% { opacity: .8; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.75); } }

/* ---- Cards rise in as they scroll into view (browsers with scroll timelines; the rest just
   show them). Each card plays once on the way down and stays put after. ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .welcome-ind, .qh-home-scene, .qh-home-services a, .qh-video, .qh-home-pricing, .welcome-row-head, .sp-card, .sp-product, .sp-hero, .tsc-cat-card, .set-card, .po-sup, .acct-stat, .ops-metric, .ops-tool-tile, .ops-card, .order-card, .ops-lane, .ops-section, .oe-page .oe-line:not(.oe-line-head):not(.is-blank), .qh-ops-workspace .ops-side a, .folder-card, .lane-card):not([data-qr]) {
      animation: qhScrollIn 1ms linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    /* Pick board cards are long lists that refresh; scroll-in restart felt like a reload. */
    html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage .pick-board :is(.ops-card, .pick-order) {
      animation: none;
      opacity: 1;
      translate: none;
      scale: none;
    }
  }
}
@keyframes qhScrollIn { from { opacity: 0; translate: 0 34px; scale: .96; } }

/* ---- Mouse light: a soft glow follows the pointer across a card; photo cards tilt toward it. ---- */
@media (hover: hover) and (pointer: fine) {
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .qh-home-services a, .sp-card, .tsc-cat-card, .set-card, .po-sup, .acct-stat, .ops-metric, .ops-tool-tile, .ops-card, .order-card, .folder-card) {
    background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--qh-action, #c45a12) var(--qh-spot), transparent), transparent 70%);
    transition: --qh-spot .3s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .2s ease;
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .qh-home-services a, .sp-card, .tsc-cat-card, .set-card, .po-sup, .acct-stat, .ops-metric, .ops-tool-tile, .ops-card, .order-card, .folder-card):hover { --qh-spot: 15%; }
  html[data-motion="lively"][data-theme="dark"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .qh-home-services a, .sp-card, .tsc-cat-card, .set-card, .po-sup, .acct-stat, .ops-metric, .ops-tool-tile, .ops-card, .order-card, .folder-card):hover { --qh-spot: 20%; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .welcome-ind, .qh-home-scene, .sp-card, .tsc-cat-card, .qh-video):hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
    box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--qh-action, #c45a12) 35%, transparent);
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .qh-home-scene, .sp-card, .tsc-cat-card) img { transition: scale .55s cubic-bezier(.2, .7, .2, 1); }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage :is(.dept-card, .qh-home-cat, .welcome-card, .welcome-pop-card, .qh-home-scene, .sp-card, .tsc-cat-card):hover img { scale: 1.06; }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-home-scene { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
  /* Buttons: a light sweeps across on hover. Overlay only, so filled orange stays filled
     and the Shop all text link keeps its underline and arrow. */
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.action-btn, .add-btn) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.action-btn, .add-btn)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .42) 48%, transparent 66%);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position: 130% 0;
    transition: background-position .65s cubic-bezier(.2, .7, .2, 1);
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.action-btn, .add-btn):hover::before { background-position: -30% 0; }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.action-btn, .add-btn) > * { position: relative; z-index: 1; }
}

/* ---- 926-fx9: phones and Safari, which have no scroll timelines, get the same rise as cards
   scroll into view (site.js qhRevealWatch adds .qh-io-wait below the fold, then .qh-io-in). ---- */
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-io-wait { opacity: 0; translate: 0 30px; scale: .965; }
html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-io-in {
  transition: opacity .55s cubic-bezier(.2, .7, .2, 1), translate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1);
}
/* Phones: cards popping in during a flick looks like jank. Keep them on-screen. */
@media (pointer: coarse) {
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final .qh-io-wait { opacity: 1; translate: none; scale: none; }
}

/* ---- A fold that opens slides its contents down. ---- */
html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final details.qh-opening > :not(summary) {
  animation: qhFoldOpen .38s cubic-bezier(.2, .7, .2, 1) both;
}
html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final details.qh-opening > :not(summary):nth-child(3) { animation-delay: .04s; }
html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final details.qh-opening > :not(summary):nth-child(n+4) { animation-delay: .08s; }
@keyframes qhFoldOpen { from { opacity: 0; translate: 0 -10px; clip-path: inset(0 0 100% 0); } to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); } }

/* ---- Lively: tool chips, order cards, and supplier cards lift a little under the mouse. ---- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.qh-ops-workspace .ops-side a[data-ops-group], .sh-tile, .dept-card, .folder-card, .ob-row, .order-card, .po-sup, .ops-card:not(.pick-order), .family-tile, .hist-section-head, .search-lead .adapter-results tbody tr) {
    transition: translate .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, border-color .2s ease;
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.qh-ops-workspace .ops-side a[data-ops-group], .sh-tile, .dept-card, .folder-card, .ob-row, .order-card, .po-sup, .ops-card:not(.pick-order), .family-tile, .hist-section-head):hover {
    translate: 0 -2px; box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .55);
  }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.qh-ops-workspace .ops-side a[data-ops-group], .sh-tile, .dept-card, .folder-card):hover .ops-nav-ic { animation: qhIconNudge .45s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes qhIconNudge { 40% { transform: translateY(-3px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }

/* ---- Phones: a press dips a button so a tap reads as a tap. Cards stay still —
   iOS keeps :active on the card you started the pan on, which looks like stutter. ---- */
@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final :is(.action-btn, .ghost-btn, .add-btn, .bottom-nav a, .ops-phone-grid a, .ops-ic-btn, .sh-tile, .ops-tool-tile, .ops-side a[data-ops-group], .ops-phone-menu summary, .ops-seg-btn, .catalog-top) {
    transition: scale .14s ease;
    -webkit-tap-highlight-color: transparent;
  }
  html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final :is(.action-btn, .ghost-btn, .add-btn, .bottom-nav a, .ops-phone-grid a, .ops-ic-btn, .ops-seg-btn, .catalog-top):active { scale: .94; }
  /* A tool or a screen is a bigger target, so it dips less and lifts its icon instead. */
  html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final :is(.sh-tile, .ops-tool-tile, .ops-side a[data-ops-group], .ops-phone-menu summary):active { scale: .97; }
  html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final :is(.sh-tile, .ops-tool-tile, .ops-phone-grid a, .ops-side a[data-ops-group]) .ops-nav-ic { transition: transform .14s ease; }
  html:not([data-motion="calm"]) body.qh-portal-og #qh-charcoal-final :is(.sh-tile, .ops-tool-tile, .ops-phone-grid a, .ops-side a[data-ops-group]):active .ops-nav-ic { transform: translateY(-2px) scale(1.06); }
}

/* ---- Click ring and the dot that flies to the cart (site.js plays them). ---- */
html[data-motion="lively"] body.qh-portal-og > .qh-ring {
  display: block;
  position: fixed;
  left: -100px;
  top: -100px;
  z-index: 2147482500;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--qh-action, #c45a12);
  border-radius: 50%;
  box-shadow: 0 0 14px color-mix(in srgb, var(--qh-action, #c45a12) 55%, transparent);
  opacity: 0;
  pointer-events: none;
}
html[data-motion="lively"] body.qh-portal-og > .qh-fly {
  display: block;
  position: fixed;
  left: -100px;
  top: -100px;
  z-index: 2147482600;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--qh-action, #c45a12) center / cover no-repeat;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 0 4px color-mix(in srgb, var(--qh-action, #c45a12) 30%, transparent);
  opacity: 0;
  pointer-events: none;
}
html[data-motion="lively"] body.qh-portal-og > .qh-fly.has-img { background-color: #fff; background-size: contain; }

@media (prefers-reduced-motion: reduce) {
  html body.qh-portal-og #qh-charcoal-final .qh-io-wait { opacity: 1 !important; translate: none !important; scale: none !important; }
  html body.qh-portal-og #qh-charcoal-final details.qh-opening > :not(summary) { animation: none !important; }
  .qh-aurora, .qh-aurora > i, .qh-scrollline { animation: none !important; translate: none !important; }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final :is(.qh-home-hero > img, .qh-home-hero h1 em, .qh-home-go::before, #stage h1.qh-sheen) { animation: none !important; }
  html[data-motion="lively"] body.qh-portal-og #qh-charcoal-final #stage h1.qh-sheen {
    background: none;
    -webkit-text-fill-color: unset;
    color: inherit;
  }
  html[data-motion="lively"] body.qh-portal-og > :is(.qh-ring, .qh-fly) { display: none; }
}

@media print {
  .qh-aurora, .qh-scrollline, .qh-ring, .qh-fly { display: none !important; }
}
