/* 7Ecosystem v3.27.0 — shared mobile performance and responsive tokens. */
:root {
  --eco-mobile-gutter: 16px;
  --eco-mobile-section-gap: 22px;
  --eco-mobile-card-gap: 12px;
  --eco-mobile-touch-min: 44px;
  --eco-mobile-control-height: 48px;
  --eco-mobile-sheet-max: min(90dvh, 820px);
  --eco-mobile-nav-height: 68px;
  --eco-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --eco-mobile-safe-top: env(safe-area-inset-top, 0px);
}
@media (max-width: 479px) {
  :root {
    --eco-mobile-gutter: 14px;
    --eco-mobile-section-gap: 18px;
    --eco-mobile-card-gap: 10px;
    --eco-mobile-sheet-max: 92dvh;
  }
}
@media (max-width: 359px) {
  :root {
    --eco-mobile-gutter: 12px;
    --eco-mobile-card-gap: 8px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --eco-mobile-gutter: 22px;
    --eco-mobile-section-gap: 26px;
    --eco-mobile-card-gap: 14px;
  }
}
@media (min-width: 1024px) {
  :root {
    --eco-mobile-gutter: 28px;
    --eco-mobile-section-gap: 30px;
    --eco-mobile-card-gap: 16px;
  }
}
@media (max-width: 767px) {
  :where(.eco-mobile-more-sheet, .admin-mobile-sheet, .learn-mobile-more-sheet, .eco-mobile-nav, .admin-mobile-nav, .learn-mobile-nav, .mobile-dock, .hub-tabs, .eco-music-bridge) button,
  :where(.eco-mobile-more-sheet, .admin-mobile-sheet, .learn-mobile-more-sheet, .eco-mobile-nav, .admin-mobile-nav, .learn-mobile-nav, .mobile-dock, .hub-tabs, .eco-music-bridge) [role="button"] {
    min-width: var(--eco-mobile-touch-min);
    min-height: var(--eco-mobile-touch-min);
  }
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: max(16px, 1em);
  }
  :where(dialog, [role="dialog"], .admin-mobile-sheet, .learn-mobile-more-sheet) {
    max-height: var(--eco-mobile-sheet-max);
    padding-bottom: max(16px, var(--eco-mobile-safe-bottom));
    overscroll-behavior: contain;
  }
  :where(.eco-mobile-bottom-nav, .admin-mobile-nav, .learn-mobile-nav, .fefo-mobile-dock) {
    padding-bottom: var(--eco-mobile-safe-bottom);
  }
}
@media (hover: none) and (pointer: coarse) {
  :where(button, [role="button"], a) { -webkit-tap-highlight-color: rgba(52, 112, 78, .12); }
  :where(button, [role="button"], a):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto !important; }
  :where(.eco-flow-mark, .eco-flow-mark *, [data-eco-motion="ecosystem-flow"]) { animation: none !important; transition: none !important; transform: none !important; }
}


/* Kinetic Foundation: keep viewport bounds stable and animate composited properties. */
html, body { max-width: 100%; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
.eco-motion-ready .eco-reveal.eco-gsap-reveal { transition: none !important; will-change: transform, opacity; }
@media (hover: none) and (pointer: coarse) {
  :where(button, [role="button"], a, summary):active { transform: scale(.985); transition: transform 120ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-motion-ready .eco-reveal.eco-gsap-reveal { will-change: auto; }
  :where(button, [role="button"], a, summary):active { transform: none !important; transition: none !important; }
  .eco-motion-ready .eco-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* Mobile bottom-sheet entrance: composited properties only. */
@keyframes ecoBottomSheetIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (max-width: 767px) {
  :where(dialog.admin-mobile-sheet[open], dialog.eco-mobile-more-sheet[open], dialog[data-mobile-sheet][open]) {
    animation: ecoBottomSheetIn 240ms cubic-bezier(.2,.8,.2,1) both;
    will-change: transform, opacity;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(dialog.admin-mobile-sheet[open], dialog.eco-mobile-more-sheet[open], dialog[data-mobile-sheet][open]) {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}
