/* ==========================================================================
   Budgie Audio · UI Polish 2026-11-20 ("Daylight Studio")
   Strictly preserves all original hand-designed brand & product logos,
   the body content of all 5 product pages, and /work body content.
   ========================================================================== */

:root {
  --ba-ui-bg: #f6f8fb;
  --ba-ui-bg-soft: #edf2f7;
  --ba-ui-surface: #ffffff;
  --ba-ui-ink: #1e2e42;
  --ba-ui-ink-2: #4b5e73;
  --ba-ui-muted: #66798f;
  --ba-ui-line: #dce5ee;
  --ba-ui-line-strong: #c3d2e1;
  --ba-ui-accent: #2e6496;
  --ba-ui-accent-hover: #24527d;
  --ba-ui-green: #1e845a;
  --ba-ui-green-soft: #e3f5ec;
  --ba-ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ba-ui-shadow-sm: 0 2px 8px rgba(24, 46, 74, 0.045);
  --ba-ui-shadow-md: 0 12px 32px rgba(24, 46, 74, 0.075);
  --ba-ui-shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 14px rgba(46, 100, 150, 0.22);
  --ba-ui-shadow-btn-hover: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 7px 20px rgba(46, 100, 150, 0.3);
}

/* ==========================================================================
   1. ALL 5 PLUG-IN PAGES — UNIFIED 62px FLOATING TOPBAR ONLY
   (1:1 dimensions with approved preview; NEVER touches product body)
   ========================================================================== */
body[data-budgie-product] .budgie-product-nav {
  padding: 12px 20px 6px !important;
  height: auto !important;
  overflow: visible !important;
}

body[data-budgie-product] .budgie-product-nav .nav-inner {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  height: 62px !important;
  min-height: 62px !important;
  margin: 0 auto !important;
  padding: 0 16px 0 18px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
}

body[data-budgie-product] .budgie-product-nav .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

body[data-budgie-product] .budgie-product-nav .brand img {
  width: 34px !important;
  height: 36px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

body[data-budgie-product] .budgie-product-nav .brand small {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  margin-top: 2px !important;
  opacity: 0.7 !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-product-global {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  height: auto !important;
  gap: 4px !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-plugin-group,
.budgie-nav .budgie-plugin-group {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  height: 36px !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-product-global > a,
body[data-budgie-product] .budgie-product-nav .budgie-plugins-trigger {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 11px !important;
  margin: 0 !important;
  height: 36px !important;
  line-height: 1 !important;
  align-self: center !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  transition: background-color 0.14s ease, color 0.14s ease;
}

body[data-budgie-product="motion"] .budgie-product-nav .budgie-product-global > a,
body[data-budgie-product="motion"] .budgie-product-nav .budgie-plugins-trigger {
  color: #4b5c6e !important;
}

body[data-budgie-product="motion"] .budgie-product-nav .budgie-product-global > a:hover,
body[data-budgie-product="motion"] .budgie-product-nav .budgie-plugins-trigger:hover {
  color: #223245 !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-product-global > a::after,
body[data-budgie-product] .budgie-product-nav .budgie-plugins-trigger::after {
  display: none !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-product-global > a:hover,
body[data-budgie-product] .budgie-product-nav .budgie-plugins-trigger:hover {
  background: rgba(128, 148, 175, 0.14) !important;
}

/* Hide Contact from 5-product topbar to eliminate crowding (matches preview) */
body[data-budgie-product] .budgie-product-nav .budgie-product-global > a[href$="/contact"] {
  display: none !important;
}

/* Right product anchor & action cluster */
body[data-budgie-product] .budgie-product-nav .budgie-feature-links {
  margin-left: auto !important;
  padding-left: 14px !important;
  border-left: 1px solid rgba(138, 156, 180, 0.26) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a:not(.primary):not(.ba-nav-icon-btn),
body[data-budgie-product] .budgie-product-nav .budgie-feature-links > button:not(.primary) {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  opacity: 0.86;
  transition: background-color 0.14s ease, opacity 0.14s ease;
}

body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a:not(.primary):not(.ba-nav-icon-btn):hover,
body[data-budgie-product] .budgie-product-nav .budgie-feature-links > button:not(.primary):hover {
  background: rgba(128, 148, 175, 0.15) !important;
  opacity: 1;
}

/* 36px Cart & Account pills (icon-only on product pages, icon + label on public pages) */
.ba-nav-icon-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  opacity: 0.9;
  flex-shrink: 0 !important;
  transition: background-color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease !important;
}

.ba-nav-icon-btn.is-icon-only {
  width: 36px !important;
  padding: 0 !important;
}

.ba-nav-icon-btn:hover {
  background: rgba(128, 148, 175, 0.15) !important;
  opacity: 1 !important;
}

.ba-nav-icon-btn svg {
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.ba-nav-icon-btn .ba-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2e6496;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ba-nav-icon-btn.is-icon-only .ba-icon-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 10px;
}

.ba-nav-icon-btn .ba-icon-badge[hidden] {
  display: none !important;
}

body[data-budgie-product="ultimate-rack"] .ba-nav-icon-btn .ba-icon-badge {
  background: #9f7aea;
}

/* Compact 38px Buy pill keeping each product's signature accent color */
body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a.primary,
body[data-budgie-product] .budgie-product-nav .budgie-feature-links > button.primary,
body[data-budgie-product="hare"] .budgie-nav-actions > a.ba-buy {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  margin-left: 4px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.16) !important;
  transition: transform 0.15s var(--ba-ui-ease), filter 0.15s ease, box-shadow 0.15s ease !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a.primary::before,
body[data-budgie-product="hare"] .budgie-nav-actions > a.ba-buy::before {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}

body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a.primary:hover,
body[data-budgie-product="hare"] .budgie-nav-actions > a.ba-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a.primary:active,
body[data-budgie-product="hare"] .budgie-nav-actions > a.ba-buy:active {
  transform: translateY(0) scale(0.98);
}

/* Outlined Language pill — guaranteed NEVER clipped on right edge */
.budgie-product-nav .budgie-language-group,
.budgie-nav .budgie-language-group {
  margin-left: 4px !important;
  flex-shrink: 0 !important;
}

.budgie-product-nav .budgie-language-trigger,
.budgie-nav .budgie-language-trigger {
  height: 34px !important;
  padding: 0 11px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(138, 156, 180, 0.34) !important;
  background: rgba(138, 156, 180, 0.08) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  gap: 5px !important;
  transition: background-color 0.14s ease, border-color 0.14s ease !important;
}

.budgie-product-nav .budgie-language-trigger:hover,
.budgie-nav .budgie-language-trigger:hover {
  background: rgba(138, 156, 180, 0.18) !important;
  border-color: rgba(138, 156, 180, 0.54) !important;
}

/* Hare uses .budgie-nav; match identical 62px floating bar sizing */
body[data-budgie-product="hare"] .budgie-nav {
  padding: 12px 20px 6px !important;
  height: auto !important;
  background: transparent !important;
  border-bottom: 0 !important;
}

body[data-budgie-product="hare"] .budgie-nav-inner {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 16px 0 18px !important;
  border-radius: 20px !important;
  gap: 16px !important;
  background: rgba(251, 250, 246, 0.88) !important;
  border: 1px solid rgba(46, 51, 56, 0.12) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
  box-shadow: 0 8px 26px rgba(32, 42, 46, 0.08) !important;
}

body[data-budgie-product="hare"] .budgie-nav-brand {
  font-size: 17px !important;
  gap: 10px !important;
}

body[data-budgie-product="hare"] .budgie-nav-brand img {
  width: 34px !important;
  height: 36px !important;
}

body[data-budgie-product="hare"] .budgie-nav-brand small {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  margin-top: 2px !important;
}

body[data-budgie-product="hare"] .budgie-nav-links > a[href$="/contact"],
body[data-budgie-product="hare"] .budgie-nav-consult {
  display: none !important;
}

/* Responsive step-down on 5 product topbars so zero overflow at 1280/1150/1024/900px */
@media (max-width: 1220px) {
  body[data-budgie-product] .budgie-product-nav .brand small { display: none !important; }
  body[data-budgie-product] .budgie-product-nav .nav-inner { gap: 10px !important; }
  body[data-budgie-product] .budgie-product-nav .budgie-feature-links > .minor:not(.ba-nav-icon-btn) { display: none !important; }
}

@media (max-width: 1060px) {
  body[data-budgie-product] .budgie-product-nav .budgie-product-global > a:not(.ba-nav-bundle) { display: none !important; }
}

@media (max-width: 900px) {
  body[data-budgie-product] .budgie-product-nav .budgie-feature-links { border-left: 0 !important; padding-left: 0 !important; }
  body[data-budgie-product] .budgie-product-nav .budgie-feature-links > a:not(.primary):not(.ba-nav-icon-btn),
  body[data-budgie-product] .budgie-product-nav .budgie-feature-links > button:not(.primary) {
    display: none !important;
  }
}

/* Fix missing dark mobile bar styling on Ultimate Rack */
@media (max-width: 760px) {
  body[data-budgie-product="ultimate-rack"] .budgie-product-nav {
    background: #140f2a !important;
    border-bottom: 1px solid rgba(190, 174, 245, 0.16) !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-bar,
  body[data-budgie-product="ultimate-rack"] .ba-mobile-panel {
    background: #140f2a !important;
    color: #f2edff !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-products .budgie-plugin-card {
    background: #1e173b !important;
    border-color: rgba(190, 174, 245, 0.2) !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-products .budgie-plugin-price {
    color: #c6bae6 !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-pages > a {
    border-color: rgba(190, 174, 245, 0.16) !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-features > a {
    border-color: rgba(190, 174, 245, 0.22) !important;
  }
  body[data-budgie-product="ultimate-rack"] .ba-mobile-features > .primary {
    background: #8b6cf6 !important;
    border-color: #8b6cf6 !important;
  }
  body[data-budgie-product="sound-agent"] .budgie-product-nav {
    background: #1a1c20 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  body[data-budgie-product="sound-agent"] .ba-mobile-pages > a {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* ==========================================================================
   2. GLOBAL FLOATING 62px FROSTED-GLASS NAV & GROUPED MEGA-MENU
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav {
  height: auto !important;
  padding: 12px 20px 6px !important;
  background: transparent !important;
  border-bottom: 0 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-inner {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  height: 62px !important;
  min-height: 62px !important;
  margin: 0 auto !important;
  padding: 0 16px 0 18px !important;
  gap: 20px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  box-shadow: 0 6px 26px rgba(24, 46, 74, 0.07), 0 1px 2px rgba(24, 46, 74, 0.04) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-brand {
  font-size: 17px !important;
  gap: 10px !important;
  color: var(--ba-ui-ink) !important;
}

body:not([data-budgie-product]) .budgie-nav-brand img {
  width: 34px !important;
  height: 36px !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-brand small {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  margin-top: 2px !important;
  color: var(--ba-ui-muted) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-links {
  gap: 4px !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-links > a,
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugins-trigger {
  font-size: 14px !important;
  font-weight: 500 !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  color: var(--ba-ui-ink-2) !important;
  transition: background-color 0.14s ease, color 0.14s ease;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-links > a:hover,
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-links > a[aria-current="page"],
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugins-trigger:hover,
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugins-trigger[aria-expanded="true"] {
  background: rgba(46, 100, 150, 0.08) !important;
  color: var(--ba-ui-ink) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-links > a::after,
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugins-trigger::after {
  display: none !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-actions {
  gap: 6px !important;
  font-size: 13px !important;
  color: var(--ba-ui-ink-2) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-actions > a:not(.ba-nav-icon-btn) {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-actions > a:not(.ba-nav-icon-btn):hover {
  background: rgba(46, 100, 150, 0.08);
  color: var(--ba-ui-ink);
}

/* Remove redundant "项目咨询 ↗" pill from topbar (Contact link is right beside it) */
body:not([data-budgie-product]) .budgie-nav-consult {
  display: none !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav-cart-count {
  background: var(--ba-ui-accent) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
}

@media (max-width: 1060px) {
  body:not([data-budgie-product]) .budgie-nav-consult { display: none !important; }
}

@media (max-width: 760px) {
  html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-nav {
    padding: 0 !important;
    background: rgba(246, 248, 251, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ba-ui-line) !important;
  }
  html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .ba-mobile-bar {
    background: transparent !important;
  }
}

/* Polished Mega-Menu across all pages */
.budgie-plugin-menu {
  top: calc(100% + 8px) !important;
  width: 580px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 14px !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 54px rgba(15, 28, 46, 0.16) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-menu,
body.home-refined .budgie-plugin-menu {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #d7e2ec !important;
  backdrop-filter: blur(24px) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-card,
body.home-refined .budgie-plugin-card {
  background: #f2f6fb !important;
  border-color: transparent !important;
  color: #1e2e42 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-card:hover,
body.home-refined .budgie-plugin-card:hover {
  background: #e5eff9 !important;
  border-color: #b7cfe3 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-card strong,
body.home-refined .budgie-plugin-card strong {
  color: #1e2e42 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-card .budgie-plugin-price,
body.home-refined .budgie-plugin-card .budgie-plugin-price {
  color: #5b7188 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-plugin-all,
body.home-refined .budgie-plugin-all {
  color: #2e6496 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-language-options,
body.home-refined .budgie-language-options {
  background: #ffffff !important;
  border-color: #d7e2ec !important;
  box-shadow: 0 12px 30px rgba(24, 46, 74, 0.12) !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-language-options > button,
body.home-refined .budgie-language-options > button {
  color: #1e2e42 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-language-options > button:hover,
body.home-refined .budgie-language-options > button:hover {
  background: #edf3f9 !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]) .budgie-language-options i,
body.home-refined .budgie-language-options i {
  color: #2e6496 !important;
}

.budgie-plugin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.budgie-plugin-card {
  border-radius: 12px !important;
  padding: 10px 11px !important;
  gap: 11px !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ba-ui-ease) !important;
}

.budgie-plugin-card:hover {
  transform: translateY(-1px);
}

.budgie-plugin-card img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}

.budgie-plugin-card .budgie-plugin-price {
  margin-top: 3px !important;
  font-size: 12px !important;
}

.ba-mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(128, 148, 170, 0.18);
}

.ba-mega-foot .budgie-plugin-all {
  margin: 0 !important;
  font-weight: 600;
  font-size: 13px !important;
}

.ba-mega-bundle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  background: rgba(46, 100, 150, 0.11);
  color: #265987 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.ba-mega-bundle-link:hover {
  background: rgba(46, 100, 150, 0.18);
}

body[data-budgie-product="ultimate-rack"] .ba-mega-bundle-link,
body[data-budgie-product="sound-agent"] .ba-mega-bundle-link {
  background: rgba(255, 255, 255, 0.1);
  color: #e9f2fb !important;
}

/* ==========================================================================
   3. DAYLIGHT STUDIO UNIFIED BUTTON CRAFT
   (Explicitly excludes 5 product pages & /work)
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]):not(.ba-work-page) :is(.solid-button, .primary-link, .checkout-button:not(.paypal-checkout), .download-button:not(:disabled), .bw-btn-main) {
  background: linear-gradient(180deg, #3c79b0 0%, #2b6090 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: var(--ba-ui-shadow-btn) !important;
  font-weight: 650 !important;
  transition: transform 0.16s var(--ba-ui-ease), box-shadow 0.16s ease, filter 0.16s ease !important;
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]):not(.ba-work-page) :is(.solid-button, .primary-link, .checkout-button:not(.paypal-checkout), .download-button:not(:disabled), .bw-btn-main):hover {
  transform: translateY(-1px);
  box-shadow: var(--ba-ui-shadow-btn-hover) !important;
  filter: brightness(1.04);
}

html:not([data-checkout-theme="dark"]) body:not([data-budgie-product]):not(.ba-work-page) :is(.solid-button, .primary-link, .checkout-button:not(.paypal-checkout), .download-button:not(:disabled), .bw-btn-main):active {
  transform: translateY(0) scale(0.985);
}

/* ==========================================================================
   4. HOMEPAGE (/) — 5-PRODUCT ASYMMETRIC BENTO GRID + STUDIO THUMBS
   ========================================================================== */
body.home-refined {
  background: radial-gradient(ellipse 72% 620px at 74% 210px, #d9ecfc 0%, #ecf4fc 46%, transparent 100%), #f6f8fb !important;
  color: var(--ba-ui-ink);
}

body.home-refined .home-intro {
  min-height: 540px;
  padding: 56px 0 72px;
}

body.home-refined .intro-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d5e3ef;
  color: #366894;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(42, 74, 108, 0.05);
}

body.home-refined .intro-eyebrow-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27a270;
  box-shadow: 0 0 0 4px rgba(39, 162, 112, 0.16);
}

body.home-refined .intro-actions {
  gap: 14px;
}

body.home-refined .intro-actions .secondary-link {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--ba-ui-line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ba-ui-ink);
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ba-ui-ease);
}

body.home-refined .intro-actions .secondary-link:hover {
  text-decoration: none;
  background: #ffffff;
  border-color: #9fb8ce;
  transform: translateY(-1px);
}

/* Bento 5-product grid: 1 flagship full-width + 4 balanced cards underneath */
.ba-bento-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 26px;
  border: 1px solid #d9e3ec;
  background: linear-gradient(135deg, #ffffff 0%, #f9f6ee 100%);
  box-shadow: 0 12px 34px rgba(36, 56, 78, 0.065), inset 0 1px 0 #ffffff;
  margin-bottom: 20px;
  transition: transform 0.2s var(--ba-ui-ease), box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.ba-bento-featured:hover {
  transform: translateY(-3px);
  border-color: #d6be93;
  box-shadow: 0 20px 44px rgba(124, 92, 34, 0.11);
}

.ba-bento-feat-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ba-bento-feat-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ba-bento-feat-top img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(30, 44, 62, 0.12));
}

.ba-bento-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fdf2dc;
  color: #996515;
  width: fit-content;
}

.ba-bento-feat-copy h3 {
  font-family: BudgieTitle, var(--font);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.ba-bento-feat-copy .product-purpose {
  margin: 0;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ba-ui-ink);
}

.ba-bento-feat-copy .product-description {
  margin: 0;
  max-width: 48ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ba-ui-muted);
}

.ba-bento-feat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 6px;
}

.ba-bento-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ba-ui-ink);
  font-variant-numeric: tabular-nums;
}

.ba-bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ba-ui-accent);
}

.ba-bento-feat-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 50, 69, 0.1);
  background: #ece8de;
  aspect-ratio: 16 / 10;
  box-shadow: 0 12px 28px rgba(34, 50, 69, 0.08);
}

.ba-bento-feat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-bento-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.home-refined .ba-bento-four .product-entry {
  align-items: flex-start;
  text-align: left;
  padding: 24px 22px 22px;
  gap: 14px;
  border-radius: 22px !important;
  border: 1px solid #dbe4ed !important;
  background: linear-gradient(165deg, #ffffff 0%, #f5f9fd 100%) !important;
  box-shadow: var(--ba-ui-shadow-sm);
  transition: transform 0.18s var(--ba-ui-ease), box-shadow 0.18s ease, border-color 0.18s ease;
}

body.home-refined .ba-bento-four .product-entry:hover {
  transform: translateY(-3px);
  border-color: #b7cfe4 !important;
  box-shadow: var(--ba-ui-shadow-md);
}

body.home-refined .ba-bento-four .product-entry img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(30, 54, 78, 0.12));
}

body.home-refined .ba-bento-four .product-heading {
  justify-content: space-between;
  width: 100%;
}

body.home-refined .ba-bento-four .product-heading h3 {
  font-size: 20px;
}

body.home-refined .ba-bento-four .entry-arrow {
  position: static;
  font-size: 17px;
  color: #7c92a8;
}

body.home-refined .ba-bento-four .product-purpose {
  font-size: 13.5px;
  font-weight: 550;
  margin-top: 4px;
  color: var(--ba-ui-ink-2);
}

body.home-refined .ba-bento-four .product-description {
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: none;
  color: var(--ba-ui-muted);
}

body.home-refined .ba-bento-four .product-platform {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11.5px;
  color: #677e94;
}

.ba-home-all-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid #dbe4ed;
  background: rgba(255, 255, 255, 0.78);
}

.ba-home-all-row p {
  font-size: 14px;
  color: var(--ba-ui-ink-2);
}

.ba-home-all-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ba-ui-accent);
}

.ba-home-all-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Studio Real-Work Thumbnail Strip on Homepage */
.ba-studio-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ba-studio-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe4ed;
  background: #e9eff5;
  aspect-ratio: 1 / 1;
  transition: transform 0.18s var(--ba-ui-ease), box-shadow 0.18s ease;
}

.ba-studio-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--ba-ui-shadow-md);
}

.ba-studio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1040px) {
  .ba-bento-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .ba-bento-featured { grid-template-columns: 1fr; padding: 24px 22px; gap: 20px; }
  .ba-studio-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ba-bento-four { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. ALL PLUG-INS CATALOG (/plug-in) — FILTERABLE, ORDERED 01-05, SYMMETRIC
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell {
  background: var(--ba-ui-bg) !important;
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px 24px 88px !important;
}

.catalog-shell .catalog-intro {
  max-width: 760px;
  margin: 0 0 28px !important;
}

.catalog-shell .catalog-intro h1 {
  font-size: clamp(36px, 4.8vw, 56px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.035em !important;
}

.ba-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.ba-cat-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ba-ui-line-strong);
  background: #ffffff;
  color: var(--ba-ui-ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ba-cat-filters button:hover {
  border-color: #9cb6cb;
  color: var(--ba-ui-ink);
}

.ba-cat-filters button[aria-pressed="true"] {
  background: var(--ba-ui-ink);
  border-color: var(--ba-ui-ink);
  color: #ffffff;
}

.catalog-shell .product-overviews {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.catalog-shell .product-overview {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  gap: 0 !important;
  border-radius: 22px !important;
  border: 1px solid var(--ba-ui-line) !important;
  background: #ffffff !important;
  color: var(--ba-ui-ink) !important;
  overflow: hidden;
  box-shadow: var(--ba-ui-shadow-sm) !important;
  transition: transform 0.18s var(--ba-ui-ease), box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-shell .product-overview:hover {
  transform: translateY(-2px);
  border-color: #b7cfe3 !important;
  box-shadow: var(--ba-ui-shadow-md) !important;
}

.catalog-shell .product-overview[hidden] {
  display: none !important;
}

/* Featured 01 Motion spans full 2-column width when visible */
.catalog-shell .product-overview.is-featured {
  grid-column: 1 / -1 !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  background: linear-gradient(135deg, #ffffff 0%, #faf7ef 100%) !important;
}

/* Harmonize Ultimate Rack & Sound Agent cards on Daylight Catalog with subtle signature icon trays */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.ultimate,
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.agent {
  --ink: #1e2e42;
  --muted: #66798f;
  background: #ffffff !important;
  border-color: var(--ba-ui-line) !important;
  color: var(--ba-ui-ink) !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview .product-art {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: #f1f6fb !important;
  min-height: 220px;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.motion .product-art {
  background: linear-gradient(145deg, #f6f1e4, #efe7d3) !important;
}
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.ultimate .product-art {
  background: linear-gradient(145deg, #f1ecfb, #e5dcf7) !important;
}
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.mb .product-art {
  background: linear-gradient(145deg, #e7f2fa, #dae9f6) !important;
}
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.agent .product-art {
  background: linear-gradient(145deg, #ebf1f4, #dde6ec) !important;
}
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview.hare .product-art {
  background: linear-gradient(145deg, #f0efe8, #e5e4da) !important;
}

.catalog-shell .product-overview .product-art img {
  width: 112px !important;
  height: 112px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  filter: drop-shadow(0 10px 18px rgba(24, 42, 64, 0.14));
}

.catalog-shell .product-overview.is-featured .product-art img {
  width: 148px !important;
  height: 148px !important;
  border-radius: 30px !important;
}

.catalog-shell .product-overview .product-copy {
  padding: 24px 26px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview .product-copy > p:first-child {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #6b8197 !important;
  margin: 0 !important;
}

.catalog-shell .product-overview h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  color: var(--ba-ui-ink) !important;
}

.catalog-shell .product-overview .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview .product-tags span {
  font-size: 11.5px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid #d5e0ea !important;
  background: #f7fafd !important;
  color: #546b82 !important;
}

.catalog-shell .product-overview .description {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--ba-ui-muted) !important;
  margin: 2px 0 6px !important;
}

.catalog-shell .product-overview .ba-cat-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.catalog-shell .product-overview .open-product {
  color: var(--ba-ui-accent) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  margin: 0 !important;
}

.catalog-shell .product-overview .catalog-download-link {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: var(--ba-ui-muted) !important;
}

.catalog-shell .product-overview .catalog-download-link:hover {
  color: var(--ba-ui-accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-shell .product-overview .price-line {
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #edf2f7;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.catalog-shell .product-overview .product-price-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.catalog-shell .product-overview .product-price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ba-ui-ink) !important;
  font-variant-numeric: tabular-nums;
}

.catalog-shell .product-overview .product-price-stack del {
  font-size: 14px;
  color: #8c9db0;
}

.catalog-shell .product-overview .solid-button {
  min-height: 40px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
}

.ba-cat-banner {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ba-cat-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--ba-ui-line);
  background: #ffffff;
  color: var(--ba-ui-ink);
  text-decoration: none;
  box-shadow: var(--ba-ui-shadow-sm);
  transition: transform 0.16s var(--ba-ui-ease), border-color 0.16s ease, box-shadow 0.16s ease;
}

.ba-cat-banner-card:hover {
  transform: translateY(-2px);
  border-color: #b7cfe3;
  box-shadow: var(--ba-ui-shadow-md);
}

.ba-cat-banner-card.is-bundle {
  background: linear-gradient(135deg, #f3f8fd 0%, #ffffff 100%);
  border-color: #c8dced;
}

.ba-cat-banner-card img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
}

.ba-cat-banner-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.ba-cat-banner-card span {
  display: block;
  font-size: 13.5px;
  color: var(--ba-ui-muted);
  line-height: 1.55;
}

.ba-cat-banner-card em {
  flex: none;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ba-ui-accent);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .catalog-shell .product-overviews { grid-template-columns: 1fr !important; }
  .catalog-shell .product-overview.is-featured { grid-template-columns: 180px minmax(0, 1fr) !important; }
  .ba-cat-banner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .catalog-shell .product-overview,
  .catalog-shell .product-overview.is-featured {
    grid-template-columns: 1fr !important;
  }
  html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .catalog-shell .product-overview .product-art {
    min-height: 150px;
  }
}

/* ==========================================================================
   6. DOWNLOADS (/downloads) — CLEAN DAYLIGHT SURFACE + HUB HERO + OS FILTER
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell {
  background: var(--ba-ui-bg) !important;
  padding: 52px clamp(20px, 5vw, 48px) 96px !important;
}

.downloads-shell .downloads-intro {
  max-width: 960px;
  margin: 0 auto 32px;
}

.downloads-shell .downloads-intro h1 {
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

.downloads-shell .downloads-content {
  max-width: 960px;
}

.ba-dl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ba-dl-pills {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #e8eff6;
  border: 1px solid #d5e1ec;
  gap: 4px;
}

.ba-dl-pills button {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--ba-ui-ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ba-dl-pills button[aria-pressed="true"] {
  background: #ffffff;
  color: var(--ba-ui-ink);
  box-shadow: 0 2px 6px rgba(24, 46, 74, 0.08);
}

.ba-dl-changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--ba-ui-line-strong);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ba-ui-ink);
  text-decoration: none;
  box-shadow: var(--ba-ui-shadow-sm);
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease, transform 0.14s var(--ba-ui-ease);
}

.ba-dl-changelog-link:hover {
  border-color: var(--ba-ui-accent);
  color: var(--ba-ui-accent);
  background: #f6faff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Functional macOS / Windows filtering on Downloads cards, meta lines & download buttons */
[data-download-list][data-os-filter="mac"] [data-release-platform="windows"],
[data-download-list][data-os-filter="mac"] .download-button[data-platform="windows"] {
  display: none !important;
}

[data-download-list][data-os-filter="win"] [data-release-platform="macos"],
[data-download-list][data-os-filter="win"] .download-button:not([data-platform="windows"]) {
  display: none !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell .download-notice {
  background: #ffffff !important;
  border: 1px solid var(--ba-ui-line) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  margin-bottom: 20px !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell .download-card {
  background: #ffffff !important;
  border: 1px solid var(--ba-ui-line) !important;
  border-radius: 20px !important;
  padding: 22px 24px !important;
  box-shadow: var(--ba-ui-shadow-sm) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell .download-card:hover {
  border-color: #b7cfe3 !important;
  box-shadow: var(--ba-ui-shadow-md) !important;
}

/* Highlight Budgie HUB hero card */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell .download-card.hub-card,
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .downloads-shell .download-card:first-child {
  background: linear-gradient(135deg, #f3f9ff 0%, #ffffff 68%) !important;
  border-color: #bfd6ea !important;
  box-shadow: 0 10px 28px rgba(46, 100, 150, 0.08) !important;
}

.downloads-shell .download-card[data-os-hidden="true"] {
  display: none !important;
}

/* ==========================================================================
   7. ACCOUNT (/account) — ZERO-FLASH FULL-WIDTH WORKSPACE WHEN SIGNED IN
   ========================================================================== */
/* Hide redundant static language label inside form-panel that overlaps 退出 button */
body[data-budgie-global] .account-shell .form-panel > .language,
body.ba-account-authed .account-shell .form-panel > .language,
html.ba-session-pending .account-shell .form-panel > .language {
  display: none !important;
}

/* Pre-paint workspace shell while /api/auth/me verifies existing session (eliminates 0.5s flash of old login page) */
html.ba-session-pending body[data-budgie-surface],
html:not([data-checkout-theme="dark"]) body[data-budgie-surface].ba-account-authed {
  background: var(--ba-ui-bg) !important;
}

html.ba-session-pending .account-shell,
html:not([data-checkout-theme="dark"]) body[data-budgie-surface].ba-account-authed .account-shell {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 36px 24px 88px !important;
  background: transparent !important;
  min-height: calc(100vh - 90px);
}

html.ba-session-pending .account-shell .brand-panel,
body.ba-account-authed .account-shell .brand-panel {
  display: none !important;
}

html.ba-session-pending .account-shell .form-panel,
body.ba-account-authed .account-shell .form-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 440px;
  padding: 36px clamp(22px, 4vw, 44px) !important;
  border-radius: 24px !important;
  border: 1px solid var(--ba-ui-line) !important;
  background: #ffffff !important;
  box-shadow: var(--ba-ui-shadow-md) !important;
}

html.ba-session-pending .account-shell .auth-view {
  display: none !important;
}

html.ba-session-pending .account-shell .form-panel::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 140px auto 0;
  border-radius: 50%;
  border: 2.5px solid #dce5ee;
  border-top-color: #2e6496;
  animation: ba-spin 0.7s linear infinite;
}

@keyframes ba-spin {
  to { transform: rotate(360deg); }
}

body.ba-account-authed .account-shell .dashboard-view {
  max-width: 100% !important;
  width: 100% !important;
}

body.ba-account-authed .account-shell .product-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body.ba-account-authed .account-shell .account-product {
  border-radius: 16px !important;
  padding: 20px !important;
  border: 1px solid var(--ba-ui-line) !important;
  box-shadow: var(--ba-ui-shadow-sm);
}

@media (max-width: 820px) {
  body.ba-account-authed .account-shell .product-list {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   8. CART (/cart) & PAYMENT RESULT (/payment-result)
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .cart-shell {
  background: var(--ba-ui-bg) !important;
  padding-top: 36px !important;
  padding-bottom: 88px !important;
}

.ba-cart-upsell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid #bfd7ec;
  background: linear-gradient(135deg, #f0f7fe 0%, #ffffff 100%);
  box-shadow: var(--ba-ui-shadow-sm);
}

.ba-cart-upsell-copy {
  display: grid;
  gap: 4px;
}

.ba-cart-upsell-copy small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ba-ui-accent);
  text-transform: uppercase;
}

.ba-cart-upsell-copy strong {
  font-size: 16px;
  color: var(--ba-ui-ink);
}

.ba-cart-upsell-copy span {
  font-size: 13.5px;
  color: var(--ba-ui-muted);
}

.ba-cart-upsell button {
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  border: 0;
  background: var(--ba-ui-accent);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--ba-ui-shadow-btn);
  transition: transform 0.15s var(--ba-ui-ease), filter 0.15s ease;
}

.ba-cart-upsell button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .bw-cart-bundles {
  background: #ffffff !important;
  border-color: var(--ba-ui-line) !important;
  box-shadow: var(--ba-ui-shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .bw-cart-bundles:hover {
  border-color: #b5cee2 !important;
  box-shadow: var(--ba-ui-shadow-md);
}

/* Payment Result 3-step visual progress */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .payment-result-shell {
  background: var(--ba-ui-bg) !important;
}

.ba-pay-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 24px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid var(--ba-ui-line);
}

.ba-pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ba-ui-muted);
}

.ba-pay-step i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  background: #e1eaf3;
  color: #566e86;
}

.ba-pay-step.is-done {
  color: var(--ba-ui-green);
}

.ba-pay-step.is-done i {
  background: var(--ba-ui-green-soft);
  color: var(--ba-ui-green);
}

.ba-pay-step.is-active {
  color: var(--ba-ui-accent);
}

.ba-pay-step.is-active i {
  background: var(--ba-ui-accent);
  color: #ffffff;
}

/* ==========================================================================
   9. ABOUT (/about) — EDITORIAL DAYLIGHT STUDIO MANIFESTO
   ========================================================================== */
body.ba-about-clean {
  margin: 0;
  background: radial-gradient(ellipse 68% 520px at 78% 120px, #deeffc 0%, #eef5fc 46%, transparent 100%), #f6f8fb !important;
  color: var(--ba-ui-ink);
  font-family: BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
}

.ba-about-wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 96px;
}

.ba-about-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.ba-about-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #53789b;
  text-transform: uppercase;
}

.ba-about-hero h1 {
  margin: 0 0 24px;
  font-family: BudgieBrandTitle, BudgieBrandUI, sans-serif;
  font-size: clamp(32px, 4.3vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ba-ui-ink);
  text-wrap: balance;
}

.ba-about-hero-copy p:not(.ba-about-eyebrow) {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ba-ui-ink-2);
  max-width: 58ch;
}

.ba-about-hero-copy p.ba-about-cadence {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--ba-ui-ink);
  font-weight: 550;
}

.ba-about-emblem-card {
  padding: 32px 28px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 245, 252, 0.85) 100%);
  box-shadow: 0 14px 40px rgba(34, 58, 86, 0.08), inset 0 1px 0 #ffffff;
  text-align: center;
}

.ba-about-bird-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px 0 22px;
  isolation: isolate;
}

.ba-about-bird-stage::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e5f1fb 65%, rgba(196, 224, 245, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  z-index: -1;
}

.ba-about-bird-stage img {
  width: 176px;
  height: 214px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(38, 66, 94, 0.14));
}

.ba-about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #dbe5ef;
}

.ba-about-facts div {
  display: grid;
  gap: 3px;
}

.ba-about-facts strong {
  font-family: BudgieBrandTitle, BudgieBrandUI, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ba-ui-ink);
}

.ba-about-facts span {
  font-size: 11.5px;
  color: var(--ba-ui-muted);
}

/* 2-Column Editorial Body */
.ba-about-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid var(--ba-ui-line);
}

.ba-about-rail {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 6px;
}

.ba-about-rail-title {
  margin: 0 0 8px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7c8fa3;
  text-transform: uppercase;
}

.ba-about-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ba-ui-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ba-about-rail a em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.ba-about-rail a:hover {
  background: rgba(46, 100, 150, 0.06);
  color: var(--ba-ui-ink);
}

.ba-about-rail a.is-active {
  background: rgba(46, 100, 150, 0.11);
  color: var(--ba-ui-accent);
  font-weight: 650;
}

.ba-about-chapters {
  display: grid;
  gap: 24px;
}

.ba-about-card {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4.5vw, 48px);
  border-radius: 24px;
  border: 1px solid var(--ba-ui-line);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(24, 46, 74, 0.045);
  scroll-margin-top: 96px;
}

.ba-about-card-num {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5a7e9e;
  text-transform: uppercase;
}

.ba-about-card h2 {
  margin: 0 0 20px;
  font-family: BudgieBrandTitle, BudgieBrandUI, sans-serif;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ba-ui-ink);
  text-wrap: balance;
}

.ba-about-card p {
  margin: 0 0 15px;
  font-size: 15.5px;
  line-height: 1.92;
  color: #41556b;
  max-width: 64ch;
}

.ba-about-card p:last-child {
  margin-bottom: 0;
}

/* Inline product strips inside Chapters 01 & 02 */
.ba-about-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 22px;
}

.ba-about-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid var(--ba-ui-line);
  background: #f8fbfe;
  color: var(--ba-ui-ink);
  text-decoration: none;
  transition: transform 0.16s var(--ba-ui-ease), border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.ba-about-tool:hover {
  transform: translateY(-2px);
  border-color: #b4cde2;
  background: #ffffff;
  box-shadow: var(--ba-ui-shadow-sm);
}

.ba-about-tool img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.ba-about-tool strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.ba-about-tool span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ba-ui-muted);
  line-height: 1.4;
}

.ba-about-sound-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin: 24px 0 22px;
}

.ba-about-sound-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d7dfd9;
  background: linear-gradient(135deg, #f8f7f2 0%, #f1f4f0 100%);
  color: var(--ba-ui-ink);
  text-decoration: none;
  transition: transform 0.16s var(--ba-ui-ease), border-color 0.16s ease, box-shadow 0.16s ease;
}

.ba-about-sound-card.is-motion {
  border-color: #e6dcc8;
  background: linear-gradient(135deg, #fbf9f3 0%, #f7f1e3 100%);
}

.ba-about-sound-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ba-ui-shadow-sm);
}

.ba-about-sound-card img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.ba-about-sound-card strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.ba-about-sound-card span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ba-ui-muted);
  line-height: 1.45;
}

/* Editorial Pull-Quote in Chapter 03 */
.ba-about-quote {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--ba-ui-accent);
  border-radius: 0 14px 14px 0;
  background: #f2f7fc;
  color: var(--ba-ui-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

/* Closing Action Strip in Chapter 05 */
.ba-about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ebf0f5;
}

.ba-about-cta a.ba-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--ba-ui-line-strong);
  background: #ffffff;
  color: var(--ba-ui-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s var(--ba-ui-ease);
}

.ba-about-cta a.ba-btn-sec:hover {
  border-color: #9ab5cd;
  background: #f5f9fd;
  transform: translateY(-1px);
}

.ba-about-cta a.primary-link {
  min-height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 920px) {
  .ba-about-hero { grid-template-columns: 1fr; gap: 32px; }
  .ba-about-emblem-card { max-width: 420px; }
  .ba-about-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 32px; }
  .ba-about-rail { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .ba-about-rail-title { display: none; }
  .ba-about-rail a { padding: 7px 12px; background: #ffffff; border: 1px solid var(--ba-ui-line); }
}

@media (max-width: 720px) {
  .ba-about-wrap { width: calc(100% - 28px); padding: 28px 0 72px; }
  .ba-about-tools, .ba-about-sound-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. CONTACT (/contact) — 3 UNIFORM WHITE CARDS + 1-CLICK COPY + SELF-HELP
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries {
  gap: 18px !important;
  margin-top: 40px !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a,
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a:nth-child(2),
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--ba-ui-line) !important;
  color: var(--ba-ui-ink) !important;
  box-shadow: var(--ba-ui-shadow-sm);
  transition: transform 0.18s var(--ba-ui-ease), border-color 0.18s ease, box-shadow 0.18s ease;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a:hover {
  transform: translateY(-2px);
  border-color: #b2cbe0 !important;
  box-shadow: var(--ba-ui-shadow-md);
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a:last-child p {
  color: var(--ba-ui-muted) !important;
}

html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a span,
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .brand-page .contact-entries > a:last-child span {
  margin-top: auto;
  padding-top: 12px;
  color: var(--ba-ui-accent) !important;
  font-weight: 650;
}

.ba-contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.ba-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--ba-ui-line-strong);
  background: #f6f9fc;
  color: var(--ba-ui-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.ba-copy-btn:hover {
  background: #e9f1f8;
  border-color: #a9c2d8;
  color: var(--ba-ui-ink);
}

.ba-copy-btn.is-copied {
  background: var(--ba-ui-green-soft);
  border-color: #9dd4b9;
  color: var(--ba-ui-green);
}

.ba-contact-self {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--ba-ui-line);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.ba-contact-self p {
  margin: 0;
  font-size: 14px;
  color: var(--ba-ui-muted);
}

.ba-contact-self-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ba-contact-self-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ba-ui-line);
  background: #f7fafd;
  color: var(--ba-ui-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ba-contact-self-links a:hover {
  background: #eaf2f9;
  border-color: #b7cfe3;
}

/* Inline Contact Form Card */
.ba-contact-form-card {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 22px;
  border: 1px solid var(--ba-ui-line);
  background: #ffffff;
  box-shadow: var(--ba-ui-shadow-sm);
}

.ba-contact-form-card h2 {
  margin: 0;
  font-family: BudgieBrandTitle, BudgieBrandUI, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ba-ui-ink);
}

.ba-contact-form-sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ba-ui-muted);
}

.ba-contact-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.ba-contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ba-contact-field {
  display: grid;
  gap: 7px;
}

.ba-contact-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ba-ui-ink);
}

.ba-contact-field input,
.ba-contact-field select,
.ba-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--ba-ui-line-strong);
  border-radius: 11px;
  background: #fbfcfe;
  color: var(--ba-ui-ink);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ba-contact-field input,
.ba-contact-field select {
  height: 44px;
}

.ba-contact-field textarea {
  resize: vertical;
  min-height: 116px;
}

.ba-contact-field input:focus,
.ba-contact-field select:focus,
.ba-contact-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ba-ui-accent);
  box-shadow: 0 0 0 3px rgba(46, 100, 150, 0.14);
}

.ba-contact-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.ba-contact-form-foot .solid-button {
  min-height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  cursor: pointer;
}

.ba-contact-form-foot .ba-copy-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ba-ui-line-strong);
  background: #ffffff;
  color: var(--ba-ui-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.ba-contact-form-foot .ba-copy-msg-btn:hover {
  background: #f3f7fc;
  border-color: #9ab5cd;
}

.ba-contact-form-msg {
  margin: 0;
  font-size: 13.5px;
  color: var(--ba-ui-green);
  font-weight: 550;
}

.ba-contact-form-msg.is-err {
  color: #c1445c;
}

@media (max-width: 680px) {
  .ba-contact-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. LEGAL (/terms & /privacy) — TAB SWITCHER + STICKY TOC + READING CARD
   ========================================================================== */
html:not([data-checkout-theme="dark"]) body[data-budgie-surface] .legal-page {
  width: min(1040px, calc(100% - 32px)) !important;
  padding: 44px 0 96px !important;
}

.ba-legal-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #e7eff6;
  border: 1px solid #d4e0ec;
  gap: 4px;
  margin-bottom: 28px;
}

.ba-legal-switch a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ba-ui-ink-2);
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ba-legal-switch a[aria-current="page"] {
  background: #ffffff;
  color: var(--ba-ui-ink);
  box-shadow: 0 2px 6px rgba(24, 46, 74, 0.08);
}

.legal-page .legal-document {
  background: #ffffff;
  border: 1px solid var(--ba-ui-line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--ba-ui-shadow-sm);
}

.legal-page .legal-hero {
  max-width: none;
}

.legal-page .legal-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px) !important;
  letter-spacing: -0.03em !important;
}

.legal-page .legal-toc {
  margin: 20px 0 32px !important;
}

.legal-page .legal-document section {
  max-width: 68ch !important;
  padding: 26px 0 !important;
}

/* ==========================================================================
   12. WORK (/work) — FIRST-EDITION WHITE ROUNDED RECORD & 16:9 CINEMA CARDS
   (Preserves 100% of all 92 items, banner, sections & signature #d9e7ee tone)
   ========================================================================== */
main.work-page .work-shell {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
}

/* 4-column square album & music-show cards (matches v1 preview exactly) */
main.work-page .record-grid,
main.work-page .show-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 18px !important;
}

main.work-page .record-card,
main.work-page .show-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(50, 75, 91, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(24, 46, 74, 0.05) !important;
  transition: transform 0.2s var(--ba-ui-ease), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

main.work-page .record-card:hover,
main.work-page .show-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(24, 46, 74, 0.11) !important;
  border-color: rgba(46, 100, 150, 0.36) !important;
}

main.work-page .record-art {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #edf2f7 !important;
}

main.work-page .record-art img,
main.work-page .show-card > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  transition: transform 0.35s var(--ba-ui-ease) !important;
}

main.work-page .record-card:hover .record-art img,
main.work-page .show-card:hover > img {
  opacity: 1 !important;
  transform: scale(1.04) !important;
}

main.work-page .record-copy,
main.work-page .show-copy {
  padding: 12px 4px 4px !important;
  border: 0 !important;
}

main.work-page .record-artist,
main.work-page .show-copy > p.record-artist {
  font-family: BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  color: #2e6496 !important;
  margin: 0 !important;
}

main.work-page .record-copy h3,
main.work-page .show-copy h3 {
  font-family: BudgieBrandTitle, BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: #1e2e42 !important;
  margin: 3px 0 0 !important;
}

main.work-page .record-credit,
main.work-page .show-credit {
  font-family: BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #66798f !important;
  margin: 4px 0 0 !important;
}

/* 3-column 16:9 Cinema TVC & Film cards (matches v1 preview exactly) */
main.work-page .moving-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

main.work-page .moving-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(50, 75, 91, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(24, 46, 74, 0.05) !important;
  transition: transform 0.2s var(--ba-ui-ease), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

main.work-page .moving-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(24, 46, 74, 0.11) !important;
  border-color: rgba(46, 100, 150, 0.36) !important;
}

main.work-page .moving-card > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.35s var(--ba-ui-ease) !important;
}

main.work-page .moving-card:hover > img {
  opacity: 1 !important;
  transform: scale(1.03) !important;
}

main.work-page .moving-copy {
  padding: 14px 16px 16px !important;
  border: 0 !important;
}

main.work-page .moving-copy small {
  font-family: BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #2e6496 !important;
  margin: 0 0 3px !important;
}

main.work-page .moving-copy h3 {
  font-family: BudgieBrandTitle, BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  color: #1e2e42 !important;
  margin: 0 !important;
}

main.work-page .moving-copy > p {
  font-family: BudgieBrandUI, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #66798f !important;
  margin: 5px 0 0 !important;
}

@media (max-width: 960px) {
  main.work-page .work-shell {
    width: calc(100% - 40px) !important;
  }
  main.work-page .record-grid,
  main.work-page .show-grid,
  main.work-page .moving-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
  }
}

@media (max-width: 600px) {
  main.work-page .work-shell {
    width: calc(100% - 28px) !important;
  }
  main.work-page .record-grid,
  main.work-page .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
  }
  main.work-page .moving-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  main.work-page .record-card,
  main.work-page .show-card {
    padding: 9px !important;
    border-radius: 15px !important;
  }
  main.work-page .record-art,
  main.work-page .record-art img,
  main.work-page .show-card > img {
    border-radius: 10px !important;
  }
  main.work-page .record-artist,
  main.work-page .show-copy > p.record-artist {
    font-size: 11.5px !important;
  }
  main.work-page .record-copy h3,
  main.work-page .show-copy h3 {
    font-size: 14px !important;
  }
  main.work-page .record-credit,
  main.work-page .show-credit {
    font-size: 11.5px !important;
  }
}

/* Mobile navigation must override the more-specific desktop polish rules. */
@media (max-width:760px) {
  body[data-budgie-product] .budgie-product-nav {
    padding:0 !important;
    height:60px !important;
    min-height:60px !important;
  }
  body[data-budgie-product] .budgie-product-nav > .nav-inner,
  body[data-budgie-product] .budgie-nav > .budgie-nav-inner {
    display:none !important;
  }
  body[data-budgie-product] .ba-mobile-bar {
    width:100%; max-width:100%; box-sizing:border-box;
    height:60px; padding-inline:12px;
  }
  body[data-budgie-product] .ba-mobile-panel {box-sizing:border-box;max-width:100vw;}
  body[data-budgie-product] .ba-mobile-brand {min-width:0;}
  body[data-budgie-product] .ba-mobile-brand span {font-size:clamp(14px,4.35vw,17px);}
  body[data-budgie-product] .ba-mobile-actions {gap:0;}
  body[data-budgie-product] .ba-mobile-actions>a,
  body[data-budgie-product] .ba-mobile-actions>button {min-width:36px;}
}

@media (max-width:760px) {
  body[data-budgie-product="sound-agent"] .hero {grid-template-columns:minmax(0,1fr);}
  body[data-budgie-product="sound-agent"] .hero-copy {min-width:0;}
  body[data-budgie-product="sound-agent"] .hero h1 .gradient-word {white-space:normal;}
}

@media (max-width:760px) {
 body[data-budgie-product] .bw-buy {grid-template-columns:minmax(0,1fr);}
 body[data-budgie-product] .bw-buy > * {min-width:0;}
}
@media (max-width:480px) {
 body[data-budgie-product] .bw-pairlist a {grid-template-columns:28px minmax(0,1fr) auto;gap:6px 8px;}
 body[data-budgie-product] .bw-pairlist a > img {grid-column:1;grid-row:1;}
 body[data-budgie-product] .bw-pairlist a > span {grid-column:2 / 4;grid-row:1;min-width:0;}
 body[data-budgie-product] .bw-pairlist a > s {grid-column:2;grid-row:2;}
 body[data-budgie-product] .bw-pairlist a > b {grid-column:3;grid-row:2;}
 body[data-budgie-product] .bw-pairlist a > em {grid-column:2 / 4;grid-row:3;justify-self:start;}
}

/* Opaque, product-matched mobile header surfaces, including while scrolling. */
@media (max-width:760px) {
 body[data-budgie-product="hare"] .budgie-nav {padding:0 !important;height:60px !important;min-height:60px !important;background:#f3f1ea !important;}
 body[data-budgie-product="hare"] .ba-mobile-bar,
 body[data-budgie-product="hare"] .ba-mobile-panel {background:#f3f1ea !important;}
 body[data-budgie-product="mb-rack"] .budgie-product-nav,
 body[data-budgie-product="mb-rack"] .ba-mobile-bar,
 body[data-budgie-product="mb-rack"] .ba-mobile-panel {background:#bcd5eb !important;color:#243b5b;}
}
