/* Desktop-owned styling. The original workstation remains available in Settings. */
:root { color-scheme: dark; --desktop-status-height: 32px; }
body { margin: 0; }
.desktop-skip { position: fixed; left: 12px; top: -60px; z-index: 1000001; background: #eee; color: #151515; padding: 8px; }
.desktop-skip:focus { top: 8px; }
.desktop-loading { padding: 32px; color: #c4c4ca; font: 14px system-ui; }
.desktop-notice { position:fixed; top:12px; right:16px; z-index:1000011; max-width:min(520px,90vw); padding:12px; display:flex; gap:12px; align-items:center; border:1px solid #866b58; border-radius:6px; background:#25262c; }
.desktop-notice span { overflow-wrap:anywhere; min-width:0; }
.desktop-notice button { flex:none; padding:6px 10px; background:#35363d; color:inherit; border:1px solid #777; border-radius:4px; }
html[data-desktop-appearance="desktop"] body { background: #17181b; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
html[data-desktop-appearance="desktop"] #root { height: calc(100dvh - var(--desktop-status-height)); overflow: hidden; }
html[data-desktop-appearance="desktop"] #root > div:has(aside) { height: 100%; min-height: 0; }
html[data-desktop-appearance="desktop"] #root aside { width: 190px; background: #1b1c20 !important; }
html[data-desktop-appearance="desktop"] #root main { min-width: 0; background: #16171a !important; }
html[data-desktop-appearance="desktop"] #root main > div:first-child { height: 46px; background: #1b1c20 !important; }
html[data-desktop-appearance="desktop"] .bp-nav-item { border-radius: 5px !important; padding-block: 8px !important; font-size: 13px !important; font-weight: 500 !important; }
html[data-desktop-appearance="desktop"] .bp-nav-item:hover { background: #2a2b30 !important; }
html[data-desktop-appearance="desktop"] .bp-engine-banner,
html[data-desktop-appearance="desktop"] #root main .bp-upgrade-btn { display: none !important; }
html[data-desktop-appearance="desktop"] #root button,
html[data-desktop-appearance="desktop"] #root input,
html[data-desktop-appearance="desktop"] #root select { font-family: inherit !important; box-shadow: none !important; }
html[data-desktop-appearance="desktop"] .bp-topbar-quality-btn,
html[data-desktop-appearance="desktop"] .bp-topbar-folder-btn { height: 30px !important; border-radius: 5px !important; border: 1px solid #44454b !important; background: #24252a !important; }
html[data-desktop-appearance="desktop"] .bp-track-table-container { border-radius: 6px !important; overflow-x: auto !important; background: #1b1c20 !important; box-shadow: none !important; backdrop-filter: none !important; }
html[data-desktop-appearance="desktop"] .bp-track-table-container > div[style*="grid"] { grid-template-columns: var(--desktop-columns, 26px minmax(230px, 2.5fr) minmax(110px, 1.1fr) minmax(90px, .9fr) 52px 50px 50px 85px 72px) !important; min-width: 950px; }
html[data-desktop-appearance="desktop"] .bp-track-row { padding-block: 7px !important; }
html[data-desktop-appearance="desktop"] .bp-track-row:focus-within button { opacity: 1 !important; }
html[data-desktop-appearance="desktop"] .bp-track-table-container [role="columnheader"] { position: relative; }
html[data-desktop-appearance="desktop"] .bp-track-table-container th { position: relative; }
html[data-desktop-appearance="desktop"] .bp-track-table-container td { padding-top: 7px !important; padding-bottom: 7px !important; }
html[data-desktop-appearance="desktop"] #root :is(button,input,select,a,[tabindex]):focus-visible,
.desktop-ui :is(button,input,select,a,[tabindex]):focus-visible { outline: 2px solid #eea46e !important; outline-offset: 2px; }
.desktop-column-resize { position: absolute; right: -5px; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; }
.desktop-row-focus { outline: 1px solid #d99160; outline-offset: -2px; background: #30271f !important; }
.desktop-ui { font: 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #e6e6e9; }
.desktop-ui button { font: inherit; cursor: pointer; }
.desktop-status { position: fixed; inset: auto 0 0; z-index: 1000; height: var(--desktop-status-height); display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid #37383e; background: #202126; color: #bfc0c7; font-size: 12px; white-space: nowrap; }
.desktop-status[hidden] { display: none !important; }
html[data-desktop-appearance="original"] .desktop-status { position: fixed; opacity: .97; }
.desktop-status button { border: 0; color: inherit; background: transparent; padding: 3px 6px; border-radius: 3px; }
.desktop-status button:hover { background: #34353b; color: #fff; }
.desktop-status .desktop-destination { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.desktop-status .desktop-connection { display: inline-flex; align-items: center; gap: 6px; }
.desktop-status .desktop-connection::before { content: ''; width: 6px; height: 6px; background: #a4a5ad; border-radius: 50%; }
.desktop-status[data-connected="true"] .desktop-connection::before { background: #88b993; }
.desktop-dialog { border: 1px solid #47484f; border-radius: 9px; background: #222328; color: #ededf0; padding: 0; width: min(580px, calc(100vw - 48px)); max-height: calc(100dvh - 64px); box-shadow: 0 16px 50px #0007; }
.desktop-dialog::backdrop { background: #0008; }
.desktop-dialog header { padding: 18px 22px; border-bottom: 1px solid #3b3c42; display: flex; align-items: center; justify-content: space-between; }
.desktop-dialog h2 { font-size: 17px; margin: 0; font-weight: 600; }
.desktop-dialog h3 { font-size: 13px; color: #efb38a; margin: 0 0 10px; font-weight: 600; }
.desktop-dialog section { padding: 18px 22px; border-bottom: 1px solid #36373d; }
.desktop-dialog p { margin: 6px 0; color: #bfc0c7; }
.desktop-dialog label { display: flex; gap: 10px; align-items: center; }
.desktop-dialog button, .desktop-context button { padding: 6px 11px; border: 1px solid #4b4c53; border-radius: 5px; background: #303138; color: #ededf0; }
.desktop-dialog button:hover, .desktop-context button:hover { background: #41424a; }
.desktop-dialog footer { padding: 14px 22px; display: flex; justify-content: space-between; gap: 12px; }
.desktop-dialog .desktop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.desktop-folder-path { display: block; overflow-wrap: anywhere; color: #dbdce2; margin: 6px 0; }
.desktop-error { color: #f2a19b !important; }
.desktop-dialog kbd { background: #33343a; border: 1px solid #4b4c53; padding: 1px 6px; border-radius: 4px; font: 12px system-ui; }
.desktop-context { position: fixed; z-index: 1000010; display: grid; gap: 3px; padding: 5px; border: 1px solid #55565e; border-radius: 6px; background: #25262c; min-width: 180px; box-shadow: 0 6px 20px #0006; }
.desktop-context button { text-align: left; border: 0; background: transparent; }
html[data-desktop-appearance="desktop"] #bp-desktop-auth-modal { backdrop-filter: blur(4px) !important; background: rgba(0,0,0,.68) !important; }
html[data-desktop-appearance="desktop"] #bp-desktop-auth-modal > div { border: 1px solid var(--studio-border) !important; border-radius: 8px !important; background: var(--studio-surface) !important; box-shadow: 0 16px 50px #0009 !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-desktop-appearance="desktop"] *, html[data-desktop-appearance="desktop"] *::before, html[data-desktop-appearance="desktop"] *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 1050px) {
  html[data-desktop-appearance="desktop"] #root aside { width: 174px; }
  .desktop-status { gap: 8px; }
}
.desktop-library { width:min(900px,94vw); }
.desktop-library-files { max-height:52vh; overflow:auto; }
.desktop-library-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid #444; }
.desktop-library-row span { min-width:0; overflow-wrap:anywhere; }
.desktop-library-row button { flex-shrink:0; }

/* Studio Design Tokens & Workstation Palette */
:root {
  --studio-bg: #17181b;
  --studio-surface: #202124;
  --studio-surface-raised: #292b30;
  --studio-border: #55565d;
  --studio-text: #ededf0;
  --studio-muted: #b8bac3;
  --studio-accent: #d99a6c;
  --studio-on-accent: #1b1714;
  --studio-focus: #e4aa7c;
  --studio-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Shared Settings chrome. Task content remains responsible for its own layout. */
.bp-popup, dialog.desktop-ui, #bp-desktop-auth-modal > div, .bp-checksum-modal {
  background: var(--studio-surface) !important;
  color: var(--studio-text) !important;
  border: 1px solid var(--studio-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 50px #0009 !important;
  font-family: var(--studio-font) !important;
}
.bp-popup [data-bp-modal-header], .desktop-dialog > header,
.desktop-web-settings > header, .bp-checksum-modal-header {
  background: var(--studio-surface-raised) !important;
  border-bottom: 1px solid var(--studio-border) !important;
  padding: 14px 20px !important;
  min-height: 68px;
  box-sizing: border-box;
}
.bp-popup [data-bp-modal-header] :is(h1,h2,h3), .desktop-dialog > header h2 {
  font: inherit;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0;
}
.desktop-ui::backdrop {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
}
.bp-popup :is(button,input,textarea,select,a):focus-visible {
  outline: 2px solid var(--studio-focus) !important;
  outline-offset: 3px;
}
.desktop-web-tabs [hidden] { display: none !important; }
#bp-desktop-auth-modal { background: rgba(0,0,0,.68) !important; backdrop-filter: blur(4px) !important; }
#bp-desktop-auth-modal > .bp-auth-panel { padding: 0 !important; overflow: auto; max-height: calc(100dvh - 32px); text-align: left !important; }
.bp-auth-panel > header { display: flex; align-items: center; gap: 10px; }
.bp-auth-panel > header h3 { flex: 1; letter-spacing: normal !important; }
.bp-auth-body { padding: 20px; }
.bp-auth-panel .bp-auth-header-icon { width: 32px !important; height: 32px !important; margin: 0 !important; border: 0 !important; border-radius: 6px !important; flex: none; background: var(--studio-accent) !important; }
.bp-auth-header-icon svg { width: 16px !important; height: 16px !important; }
.bp-auth-header-icon path { fill: var(--studio-on-accent); }

.bp-modal-backdrop {
  background: rgba(0, 0, 0, 0.68) !important;
  backdrop-filter: blur(4px) !important;
  animation: none !important;
}

.bp-modal-spring {
  background: var(--studio-surface) !important;
  border: 1px solid var(--studio-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6) !important;
  color: var(--studio-text) !important;
  max-width: 860px !important;
  width: min(860px, calc(100vw - 32px)) !important;
}

.bp-modal-spring > div:first-child {
  background: var(--studio-surface-raised) !important;
  border-bottom: 1px solid var(--studio-border) !important;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.bp-popup [data-bp-modal-close] {
  background: var(--studio-surface) !important;
  border: 1px solid var(--studio-border) !important;
  color: var(--studio-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.bp-popup [data-bp-modal-close]:hover {
  background: #363840 !important;
  color: #ffffff !important;
  border-color: var(--studio-muted) !important;
}

.bp-modal-spring [style*="borderRight"],
.bp-modal-spring [style*="border-right"],
.bp-modal-spring div[style*="width: 200px"],
.bp-modal-spring div[style*="width:200px"] {
  background: var(--studio-bg) !important;
  border-right: 1px solid var(--studio-border) !important;
  width: 216px !important;
  flex-shrink: 0 !important;
}

.bp-modal-spring .bp-settings-content-slider {
  background: var(--studio-surface) !important;
  color: var(--studio-text) !important;
}

.bp-modal-spring input,
.bp-modal-spring select,
.bp-modal-spring textarea {
  background: var(--studio-bg) !important;
  border: 1px solid var(--studio-border) !important;
  color: var(--studio-text) !important;
  border-radius: 6px !important;
}

.bp-modal-spring button {
  font-family: inherit !important;
}

.bp-modal-spring [style*="borderRight"] button {
  border-radius: 6px !important;
  color: var(--studio-muted) !important;
}

.bp-modal-spring [style*="borderRight"] button:hover {
  background: var(--studio-surface-raised) !important;
  color: var(--studio-text) !important;
}

/* Header Settings Button (Workstation Standard) */
.bp-header-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--studio-border, #44454b);
  background: var(--studio-surface-raised, #24252a);
  color: var(--studio-text, #ededf0);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.bp-header-settings-btn:hover {
  background: #32343c;
  border-color: var(--studio-muted, #727482);
  color: #ffffff;
}
.bp-header-settings-btn:focus-visible {
  outline: 2px solid var(--studio-focus, #e4aa7c);
  outline-offset: 1px;
}
.bp-vector-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Web Preferences Rich Modal */
.desktop-web-settings {
  width: min(840px, calc(100vw - 32px));
  max-width: 840px;
  padding: 0;
  border: 1px solid var(--studio-border, #47484f);
  border-radius: 8px;
  background: var(--studio-surface, #202124);
  color: var(--studio-text, #ededf0);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}
.desktop-web-settings::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.desktop-web-body {
  display: flex;
  min-height: 440px;
}
.desktop-web-tabs {
  width: 190px;
  background: var(--studio-bg, #17181b);
  border-right: 1px solid var(--studio-border, #3b3c42);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.desktop-web-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--studio-muted, #b8bac3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.desktop-web-tab-btn:hover {
  background: var(--studio-surface-raised, #292b30);
  color: var(--studio-text, #ededf0);
}
.desktop-web-tab-btn.active {
  background: rgba(217, 154, 108, 0.14);
  color: var(--studio-accent, #d99a6c);
  font-weight: 600;
}
.desktop-web-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}
.desktop-web-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--studio-text, #ededf0);
}
.desktop-web-content .desktop-web-desc {
  font-size: 12.5px;
  color: var(--studio-muted, #9a9ba4);
  margin-bottom: 18px;
}
.desktop-web-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.desktop-web-card {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--studio-border, #3b3c42);
  background: var(--studio-surface-raised, #24252a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}
.desktop-web-card:hover {
  border-color: var(--studio-muted, #727482);
}
.desktop-web-card.selected {
  border-color: var(--studio-accent, #d99a6c);
  background: rgba(217, 154, 108, 0.08);
}
.desktop-web-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--studio-text, #ededf0);
}
.desktop-web-card-desc {
  font-size: 11.5px;
  color: var(--studio-muted, #9a9ba4);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .bp-modal-spring, .desktop-web-settings {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
  }
}

@media (max-width: 660px) {
  .bp-modal-spring > div:nth-child(2), .desktop-web-body {
    flex-direction: column !important;
  }
  .bp-modal-spring [style*="borderRight"], .desktop-web-tabs {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--studio-border) !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-shrink: 0 !important;
    padding: 8px !important;
  }
  .bp-modal-spring [style*="borderRight"] button, .desktop-web-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }
}

/* Modal Sidebar Navigation Inline Consistency */
.bp-modal-spring div[style*="width: 200px"],
.bp-modal-spring div[style*="width:200px"],
.bp-modal-spring [style*="borderRight"],
.bp-modal-spring [style*="border-right"] {
  width: 216px !important;
  flex-shrink: 0 !important;
}

.bp-modal-spring div[style*="width: 200px"] button,
.bp-modal-spring div[style*="width:200px"] button,
.bp-modal-spring [style*="borderRight"] button,
.bp-modal-spring [style*="border-right"] button {
  justify-content: flex-start !important;
  white-space: nowrap !important;
  padding: 8px 10px !important;
  gap: 6px !important;
  font-size: 11.5px !important;
}

.bp-modal-spring div[style*="width: 200px"] button span[style*="1px 5px"],
.bp-modal-spring div[style*="width:200px"] button span[style*="1px 5px"],
.bp-modal-spring [style*="borderRight"] button span[style*="1px 5px"],
.bp-modal-spring [style*="border-right"] button span[style*="1px 5px"] {
  display: none !important;
}

.bp-modal-spring div[style*="width: 200px"] button .bp-vector-icon,
.bp-modal-spring div[style*="width:200px"] button .bp-vector-icon,
.bp-modal-spring [style*="borderRight"] button .bp-vector-icon,
.bp-modal-spring [style*="border-right"] button .bp-vector-icon {
  margin-right: 0 !important;
}

/* Modal Content Slider & Workstation Scrollbar */
.bp-modal-spring .bp-settings-content-slider,
.bp-modal-spring div[style*="overflow-y: auto"],
.bp-modal-spring div[style*="overflowY: auto"] {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent !important;
}

.bp-modal-spring .bp-settings-content-slider::-webkit-scrollbar,
.bp-modal-spring div[style*="overflow-y: auto"]::-webkit-scrollbar,
.bp-modal-spring div[style*="overflowY: auto"]::-webkit-scrollbar {
  width: 5px !important;
}

.bp-modal-spring .bp-settings-content-slider::-webkit-scrollbar-track,
.bp-modal-spring div[style*="overflow-y: auto"]::-webkit-scrollbar-track,
.bp-modal-spring div[style*="overflowY: auto"]::-webkit-scrollbar-track {
  background: transparent !important;
}

.bp-modal-spring .bp-settings-content-slider::-webkit-scrollbar-thumb,
.bp-modal-spring div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb,
.bp-modal-spring div[style*="overflowY: auto"]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 4px !important;
}

.bp-modal-spring .bp-settings-content-slider::-webkit-scrollbar-thumb:hover,
.bp-modal-spring div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover,
.bp-modal-spring div[style*="overflowY: auto"]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Anti-AI-Slop: Permanently suppress glowing Engine 2.0 marketing banner in sidebar */
aside div[style*="rgba(34, 197, 94, 0.12)"],
aside div[style*="rgba(34,197,94,0.12)"],
aside div[style*="rgb(34, 197, 94)"]:has(span),
.bp-engine-banner {
  display: none !important;
}

/* Playlists view subcategory header styling (Clean DJ Workstation Typography) */
main h2.text-xs.font-mono {
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
}

/* Review Milestone Reward Prompt Card */
#bp-review-milestone-prompt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 102, 0, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 102, 0, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, bottom 0.2s ease;
}

#bp-review-milestone-prompt.bp-prompt-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.bp-preview-active #bp-review-milestone-prompt,
body.has-active-player #bp-review-milestone-prompt {
  bottom: 104px;
}

#bp-review-milestone-prompt .bp-prompt-btn-claim {
  background: #FF6600;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

#bp-review-milestone-prompt .bp-prompt-btn-claim:hover {
  background: #ff7a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}

#bp-review-milestone-prompt .bp-prompt-btn-later {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

#bp-review-milestone-prompt .bp-prompt-btn-later:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

@media (max-width: 640px) {
  #bp-review-milestone-prompt {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 16px;
  }
}

/* ==========================================================================
   Desktop Downloads Section (Asymmetric 2-Column Studio Hardware Showcase)
   ========================================================================== */
.bp-desktop-downloads-section {
  display: block;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 24px;
}

/* Route Isolation: Ensure downloads section is NEVER rendered on admin or workstation app screens */
body:has(#admin-app) #downloads,
body:has(.admin-container) #downloads,
body:has(.bp-admin-row) #downloads,
body:has(.flex.h-screen.overflow-hidden) #downloads {
  display: none !important;
}

.bp-desktop-downloads-container {
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bp-desktop-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 48px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Left Column: Marketing Controls & Actions
   -------------------------------------------------------------------------- */
.bp-desktop-content-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bp-desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FF5A1F;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.22);
  margin-bottom: 14px;
  width: fit-content;
}

.bp-desktop-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.bp-desktop-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 480px;
}

/* Tactile Segmented Hardware Switcher (Dark elevated active, NO competing orange) */
.bp-desktop-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
  width: fit-content;
  max-width: 100%;
}

.bp-desktop-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bp-desktop-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.bp-desktop-tab-btn.active,
.bp-desktop-tab-btn[aria-selected="true"] {
  background: #25262f;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bp-desktop-tab-btn:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 2px;
}

/* Panels */
.bp-desktop-panels {
  margin-bottom: 16px;
}

.bp-desktop-panel {
  display: block;
}

.bp-desktop-panel[hidden] {
  display: none !important;
}

.bp-desktop-action-row {
  margin-bottom: 12px;
}

/* Single Dominant Primary Download CTA (Exclusively holds brand #FF5A1F) */
.bp-btn-desktop-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #FF5A1F 0%, #D43800 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(255, 90, 31, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.bp-btn-desktop-download:hover {
  background: linear-gradient(135deg, #ff6c38 0%, #e0440c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 90, 31, 0.5);
}

.bp-btn-desktop-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 90, 31, 0.3);
}

.bp-btn-desktop-download:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px;
}

/* Linux Secondary Option (.deb package) */
.bp-linux-secondary-row {
  margin-bottom: 12px;
}

.bp-btn-desktop-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bp-btn-desktop-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16);
}

.bp-btn-desktop-secondary:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px;
}

/* Minimal Hardware Specs Badges */
.bp-desktop-specs-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

.bp-spec-dot {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* Understated Checksum Link */
.bp-desktop-footer-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-checksum-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bp-checksum-link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.bp-checksum-link:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Right Column: Workstation Window Mockup
   -------------------------------------------------------------------------- */
.bp-desktop-preview-col {
  min-width: 0;
}

.bp-workstation-window {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.bp-workstation-window:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bp-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  background: #1c1d24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.bp-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.bp-dot-close { background: #ff5f56; }
.bp-dot-min { background: #ffbd2e; }
.bp-dot-max { background: #27c93f; }

.bp-window-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.bp-window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
}

.bp-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  display: inline-block;
  animation: bp-pulse-led 2.4s ease-in-out infinite;
}

@keyframes bp-pulse-led {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34, 197, 94, 0.9); }
  50% { opacity: 0.6; transform: scale(0.92); box-shadow: 0 0 2px rgba(34, 197, 94, 0.3); }
}

/* Showcase Selector Tabs */
.bp-showcase-tabs {
  background: #0d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bp-showcase-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.bp-showcase-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.bp-showcase-tab-btn.active {
  background: #25262f;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bp-window-viewport {
  position: relative;
  background: #0b0c0e;
  line-height: 0;
  overflow: hidden;
}

.bp-showcase-slide {
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-showcase-slide[hidden] {
  display: none;
  opacity: 0;
}

.bp-workstation-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* Showcase Bottom Telemetry Ticker */
.bp-showcase-telemetry-bar {
  background: #0d0e12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 11px 11px;
}

.bp-telemetry-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.bp-telemetry-label {
  color: rgba(255, 255, 255, 0.4);
}

.bp-telemetry-val {
  color: #e2e8f0;
  font-weight: 600;
}

/* Native desktop status indicator inside desktop client */
.bp-native-running-banner {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #86efac;
  font-size: 13px;
  font-weight: 500;
}

/* Checksum Modal Popover */
.bp-checksum-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bp-checksum-modal {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  padding: 0;
  overflow: auto;
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.bp-checksum-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.bp-checksum-items { padding: 20px 20px 0; }
.bp-checksum-modal > div:last-child:not(.bp-checksum-modal-header) { padding: 0 20px 20px; }

.bp-checksum-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bp-checksum-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.bp-checksum-modal-close:hover {
  color: #ffffff;
}

.bp-checksum-item {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.bp-checksum-item-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.bp-checksum-item-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  word-break: break-all;
  user-select: all;
}

/* --------------------------------------------------------------------------
   Responsive Layout & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .bp-desktop-downloads-container {
    padding: 36px 28px;
  }
  .bp-desktop-downloads-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bp-desktop-content-col {
    order: 1;
  }
  .bp-desktop-preview-col {
    order: 2;
  }
  .bp-desktop-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .bp-desktop-downloads-section {
    margin: 40px auto;
    padding: 0 16px;
  }
  .bp-desktop-downloads-container {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .bp-desktop-title {
    font-size: 22px;
  }
  .bp-desktop-tabs {
    width: 100%;
    display: flex;
  }
  .bp-desktop-tab-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }
  .bp-btn-desktop-download {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  .bp-btn-desktop-secondary {
    width: 100%;
    justify-content: center;
  }
  .bp-desktop-specs-badges {
    font-size: 11px;
    gap: 6px;
  }
  .bp-window-titlebar {
    height: 30px;
    padding: 0 10px;
  }
  .bp-window-title {
    display: none;
  }
  .bp-showcase-tabs {
    padding: 6px 8px;
    gap: 4px;
    overflow-x: auto;
  }
  .bp-showcase-tab-btn {
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .bp-showcase-telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
  }
}

@media (max-width: 380px) {
  .bp-desktop-tab-btn {
    padding: 6px 6px;
    font-size: 11px;
    gap: 4px;
  }
  .bp-desktop-specs-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .bp-spec-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-desktop-downloads-section *,
  .bp-desktop-downloads-section *::before,
  .bp-desktop-downloads-section *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

/* DJ Referral & Engagement Touchpoints */
.bp-nav-delimiter {
  height: 1px;
  margin: 16px 8px 12px 8px;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.55) 0%, rgba(245, 158, 11, 0.28) 50%, rgba(255, 255, 255, 0.05) 100%) !important;
  border: none !important;
}
.bp-sidebar-share-action {
  width: 100% !important;
  margin: 2px 0 6px 0 !important;
  padding: 6px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
  border: 1px solid rgba(234, 179, 8, 0.40) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: left !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.bp-sidebar-share-action:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
  border-color: rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.28) !important;
  transform: translateY(-1px);
}
.bp-sidebar-share-action:active {
  transform: translateY(0);
}
.bp-sidebar-share-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(234, 179, 8, 0.22);
  border: 1px solid rgba(234, 179, 8, 0.50);
  color: #FACC15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#bp-nav-referrals {
  text-decoration: none;
}
.bp-nav-ref-pill {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  padding: 2px 5px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%) !important;
  color: #1a1400 !important;
  letter-spacing: 0.02em !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.45);
}



/* Referral dialog: sharing first, balances as quiet account information. */
#bp-referral-hub-backdrop {
  --ref-orange: #ff5a1f;
  --ref-text: var(--studio-text);
  --ref-muted: var(--studio-muted);
  --ref-ease: cubic-bezier(.215,.61,.355,1);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  padding: 16px;
  font-family: var(--studio-font);
  color: var(--ref-text);
}
#bp-referral-hub-backdrop, #bp-referral-hub-backdrop * { box-sizing: border-box; }
#bp-referral-hub-backdrop :is(button, input, textarea, summary) { font-family: inherit; }
#bp-referral-hub-backdrop :is(button, a, input, textarea, summary):focus-visible {
  outline: 2px solid #ff9b72;
  outline-offset: 3px;
}
.bp-referral-hub-dialog {
  width: min(860px, 100%);
  max-height: min(840px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  color: var(--ref-text);
}
.bp-ref-header {
  background: var(--studio-surface-raised);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--studio-border);
  flex-shrink: 0;
}
.bp-ref-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.bp-ref-header-icon {
  color: var(--studio-on-accent);
  background: var(--studio-accent);
  border-radius: 6px;
  padding: 8px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
}
.bp-ref-header-icon svg { width: 16px; height: 16px; flex-shrink: 0; }
#bp-ref-title {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0 0 2px;
  line-height: 1.2;
  color: #efefed;
}
.bp-ref-desc {
  font-size: 12px;
  line-height: 1.6;
  max-width: 560px;
  color: var(--ref-muted);
  margin: 0;
}
.bp-ref-close {
  flex: none;
  margin-left: auto;
  min-height: 32px;
  width: 32px;
  border: 1px solid var(--studio-border);
  background: var(--studio-surface);
  color: var(--studio-text);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 140ms var(--ref-ease), color 140ms var(--ref-ease);
}
.bp-ref-close:hover {
  background: #393a40;
  color: #fff;
}
.bp-ref-body {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  background: var(--studio-surface);
}
.bp-ref-workspace {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  background: var(--studio-bg);
}
.bp-ref-link-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.bp-ref-section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #efefed;
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
}
.bp-ref-input-group {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.bp-ref-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 9px;
  background: #141518;
  color: #dedee2;
  border: 1px solid #45464e;
  border-radius: 5px;
  font: 12px 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
}
.bp-ref-input:disabled {
  color: var(--ref-muted);
}
.bp-ref-copy-btn {
  background: #34302b;
  border: 1px solid #6a4937;
  color: #ffc4a7;
  min-width: 78px;
  padding: 0 10px;
  font: 600 12px 'Segoe UI', Arial, sans-serif;
  min-height: 42px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 140ms var(--ref-ease), border-color 140ms var(--ref-ease), color 140ms var(--ref-ease), transform 100ms var(--ref-ease);
}
.bp-ref-copy-btn:hover:not(:disabled) {
  background: #493326;
  border-color: #e5743d;
}
.bp-ref-copy-btn:disabled, .bp-promo-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bp-ref-status {
  min-height: 0;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.bp-ref-status:empty { display: none; }
.bp-ref-status.success { color: #9fe0b4; }
.bp-ref-status.warning { color: #efca8c; }
.bp-ref-status.error { color: #ffb0ab; }

.bp-ref-social-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bp-ref-social-section .bp-ref-section-label {
  margin-bottom: 10px;
}
.bp-ref-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bp-ref-social-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  padding: 10px 9px;
  background: #24252a;
  border: 1px solid #3e3f47;
  color: #d7d8dc;
  border-radius: 5px;
  position: relative;
  min-width: 0;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms var(--ref-ease), border-color 140ms var(--ref-ease), color 140ms var(--ref-ease), transform 100ms var(--ref-ease);
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="telegram"] {
  --channel-hover: #1d2d38; --channel-surface: #203849; --channel-border: #3d9fce; --channel-mark: #7acdf3;
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="whatsapp"] {
  --channel-hover: #1e3028; --channel-surface: #1c3c2c; --channel-border: #36a970; --channel-mark: #76e4a1;
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="twitter"] {
  --channel-hover: #303136; --channel-surface: #393b40; --channel-border: #aaaeb9; --channel-mark: #f1f1ef;
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="reddit"] {
  --channel-hover: #36251f; --channel-surface: #452a20; --channel-border: #d67c55; --channel-mark: #ffb08a;
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="discord"] {
  --channel-hover: #272a3c; --channel-surface: #303553; --channel-border: #858cfa; --channel-mark: #b4baff;
}
#bp-referral-hub-backdrop .bp-ref-social-link[data-channel="facebook"] {
  --channel-hover: #1f2b3c; --channel-surface: #223653; --channel-border: #6199e8; --channel-mark: #9bc3ff;
}
.bp-ref-social-link:hover {
  border-color: var(--channel-border, #8e796b);
  background: var(--channel-hover, #302b28);
}
.bp-ref-social-link.active, .bp-ref-social-link[aria-pressed="true"] {
  background: var(--channel-surface, #35261f);
  border-color: var(--channel-border, #ca602e);
  color: #f1f1ef;
}
.bp-ref-social-icon, .bp-ref-social-icon svg {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.bp-ref-social-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.bp-ref-channel-check {
  font-size: 13px;
  font-weight: 500;
  margin-left: auto;
  visibility: hidden;
  display: inline-block;
  line-height: 1;
}
.bp-ref-social-link.active .bp-ref-channel-check, .bp-ref-social-link[aria-pressed="true"] .bp-ref-channel-check {
  visibility: visible;
}
#bp-referral-hub-backdrop .bp-ref-channel-check {
  /* Override only the colour from the pinned base stylesheet's global b rule. */
  color: var(--channel-mark, #ff9163) !important;
}

#bp-referral-hub-backdrop .bp-ref-copy-btn.is-copied {
  background: #173329;
  border-color: #398664;
  color: #9fe0b4;
}
#bp-referral-hub-backdrop .bp-promo-action-btn.is-copied {
  color: #9fe0b4;
}

.bp-ref-reward-info {
  border-top: 1px solid #3a3b41;
  margin-top: 0;
  padding-top: 16px;
  color: var(--ref-muted);
  font-size: 11px;
  min-width: 0;
}
.bp-ref-balance-top {
  margin-bottom: 2px;
}
.bp-ref-balance-tag {
  font-size: 12px;
  font-weight: 600;
  color: #efefed;
}
.bp-ref-balance-grid {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bp-ref-balance-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  min-width: 0;
}
.bp-ref-credit-icon, .bp-ref-credit-icon svg {
  width: 19px;
  height: 19px;
  color: #ff773e;
  flex: none;
  display: inline-flex;
}
.bp-ref-balance-card-header {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bp-ref-balance-type {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ecece9;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}
.bp-ref-balance-sub {
  display: block;
  font-size: 11px;
  color: #b3b4ba;
  margin-top: 1px;
  line-height: 1.4;
  white-space: nowrap;
}
.bp-ref-balance-num {
  font-family: Bahnschrift, 'Segoe UI', sans-serif;
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #efefed;
  margin-left: auto;
  line-height: 1;
  flex: none;
}
.bp-ref-pending-badge, .bp-ref-paused-notice {
  font-size: 11px;
  color: #efca8c;
  line-height: 1.5;
  margin-top: 10px;
}
.bp-ref-guest-box {
  background: #24252a;
  border: 1px solid #3e3f47;
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
}
.bp-ref-guest-title {
  font-size: 13px;
  font-weight: 600;
  color: #efefed;
}
.bp-ref-guest-text {
  font-size: 12px;
  color: var(--ref-muted);
  line-height: 1.5;
  margin: 6px 0 12px;
}
.bp-ref-signin-btn {
  padding: 8px 14px;
  min-height: 38px;
  color: #17120f;
  background: #ff5a1f;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ref-ease);
}
.bp-ref-signin-btn:hover {
  background: #ff7538;
}
.bp-ref-how {
  margin-top: 22px;
  font-size: 12px;
}
.bp-ref-how-title {
  font-size: 11px;
  font-weight: 500;
  color: #b3b4ba;
  cursor: pointer;
  line-height: 1.5;
}
.bp-ref-how-title:hover {
  color: #efefed;
}
.bp-ref-how-list {
  font-size: 11px;
  color: var(--ref-muted);
  line-height: 1.6;
  margin: 8px 0 0;
  padding-left: 18px;
}
.bp-ref-how-list li + li { margin-top: 4px; }
#bp-referral-hub-backdrop .bp-ref-how-list strong { color: #e9e9ec; font-weight: 600; }

/* Right Column (main) */
.bp-ref-preview-pane {
  background: var(--studio-surface);
  border-left: 1px solid var(--studio-border);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bp-ref-message-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bp-ref-message-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 8px;
}
.bp-promo-action-btn.text-action {
  padding: 0;
  min-height: 24px;
  background: transparent;
  border: 0;
  color: #bcbec5;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 140ms var(--ref-ease);
}
.bp-promo-action-btn.text-action:hover:not(:disabled) {
  color: #fff;
}
.bp-promo-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bp-ref-caption-input {
  display: block;
  resize: vertical;
  box-sizing: border-box;
  overflow-y: hidden;
  min-height: 104px;
  width: 100%;
  border: 1px solid #42434b;
  border-radius: 5px;
  padding: 11px;
  background: #202125;
  color: #cfcfd4;
  font: 13px/1.65 'Segoe UI', Arial, sans-serif;
}
.bp-ref-caption-input:disabled {
  color: var(--ref-muted);
}
.bp-ref-card-block {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  min-width: 0;
}
.bp-preview-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bp-preview-platform-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #efefed;
  margin: 0;
}
.bp-ref-card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bp-ref-formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-ref-formats button {
  padding: 4px 8px;
  min-height: 28px;
  white-space: nowrap;
  border: 1px solid #3a3b41;
  border-radius: 4px;
  background: #24252a;
  color: #b3b4ba;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms var(--ref-ease), background-color 140ms var(--ref-ease), border-color 140ms var(--ref-ease);
}
.bp-ref-formats button:hover {
  color: var(--ref-text);
  background: #303137;
}
.bp-ref-formats button[aria-pressed="true"] {
  background: #35261f;
  color: #fff5ed;
  border-color: #ca602e;
}
.bp-ref-enlarge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #3a3b41;
  border-radius: 4px;
  background: transparent;
  color: #b3b4ba;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms var(--ref-ease), border-color 140ms var(--ref-ease);
}
.bp-ref-enlarge:hover:not(:disabled) {
  color: #fff;
  border-color: #55565d;
}
.bp-ref-enlarge:disabled {
  color: #55565d;
  border-color: #2e2f34;
  cursor: default;
}
.bp-ref-artwork {
  position: relative;
  width: 100%;
  display: block;
  min-height: 250px;
  max-height: 335px;
  background: #101115;
  border: 1px solid #2e3037;
  border-radius: 6px;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.bp-ref-artwork::-webkit-scrollbar {
  width: 5px;
}
.bp-ref-artwork::-webkit-scrollbar-thumb {
  background: #2e3037;
  border-radius: 4px;
}
.bp-ref-artwork img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}
.bp-ref-artwork .bp-mockup-wrapper img {
  max-height: 135px;
  object-fit: cover;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-wrapper img {
  max-height: 175px;
  object-fit: contain;
}
.bp-ref-artwork img[hidden] { display: none; }
.bp-ref-artwork[data-format="story"] img { width: auto; max-width: 100%; }

/* Real-Time Platform Mockups */
.bp-mockup-wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Telegram Mockup */
.bp-mockup-telegram {
  background: #182533;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bp-mockup-telegram-header {
  font-size: 11.5px;
  font-weight: 700;
  color: #24A1DE;
  margin-bottom: 3px;
}
.bp-mockup-telegram-text {
  font-size: 11.5px;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: break-word;
}
.bp-mockup-telegram-text a {
  color: #64b5f6;
  text-decoration: none;
}
.bp-mockup-telegram-card {
  border-left: 3px solid #24A1DE;
  background: #101921;
  border-radius: 4px 8px 8px 4px;
  padding: 7px 9px;
}
.bp-mockup-telegram-site {
  font-size: 10px;
  font-weight: 700;
  color: #24A1DE;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-mockup-telegram-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0;
  line-height: 1.25;
}
.bp-mockup-telegram-desc {
  font-size: 10.5px;
  color: #a4b3c4;
  line-height: 1.3;
}
.bp-mockup-telegram-card img {
  width: 100%;
  max-height: 155px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 6px;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-telegram-card img {
  max-height: 200px;
  object-fit: contain;
  background: #080d12;
}
.bp-mockup-telegram-meta {
  font-size: 10px;
  color: #6c7883;
  text-align: right;
  margin-top: 4px;
}

/* X / Twitter Mockup */
.bp-mockup-twitter {
  background: #000000;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 11px 13px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  color: #e7e9ea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bp-mockup-twitter-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bp-mockup-twitter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff5a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.bp-mockup-twitter-names {
  font-size: 12px;
  line-height: 1.2;
}
.bp-mockup-twitter-handle {
  color: #71767b;
  font-size: 11px;
}
.bp-mockup-twitter-body {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 7px;
  word-break: break-word;
}
.bp-mockup-twitter-body a {
  color: #1d9bf0;
  text-decoration: none;
}
.bp-mockup-twitter-card {
  border: 1px solid #2f3336;
  border-radius: 10px;
  overflow: hidden;
  background: #080808;
}
.bp-mockup-twitter-card img {
  width: 100%;
  max-height: 155px;
  object-fit: cover;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-twitter-card img {
  max-height: 200px;
  object-fit: contain;
  background: #000;
}
.bp-mockup-twitter-card-body {
  padding: 7px 10px;
}
.bp-mockup-twitter-domain {
  font-size: 10.5px;
  color: #71767b;
}
.bp-mockup-twitter-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e7e9ea;
  margin: 1px 0;
}
.bp-mockup-twitter-desc {
  font-size: 10.5px;
  color: #71767b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Discord Mockup */
.bp-mockup-discord {
  background: #313338;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  color: #dbdee1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-family: 'gg sans', 'Noto Sans', Helvetica, Arial, sans-serif;
}
.bp-mockup-discord-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.bp-mockup-discord-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.bp-mockup-discord-user {
  font-size: 12px;
  font-weight: 600;
  color: #f2f3f5;
}
.bp-mockup-discord-time {
  font-size: 10px;
  color: #949ba4;
  margin-left: 4px;
}
.bp-mockup-discord-text {
  font-size: 12px;
  color: #00a8fc;
  margin-bottom: 6px;
  word-break: break-all;
}
.bp-mockup-discord-embed {
  background: #2b2d31;
  border-left: 3px solid #ff5a1f;
  border-radius: 4px;
  padding: 8px 10px;
}
.bp-mockup-discord-site {
  font-size: 10px;
  color: #b5bac1;
  font-weight: 600;
}
.bp-mockup-discord-title {
  font-size: 12px;
  font-weight: 700;
  color: #00a8fc;
  margin: 2px 0 3px 0;
}
.bp-mockup-discord-desc {
  font-size: 10.5px;
  color: #dbdee1;
  line-height: 1.3;
}
.bp-mockup-discord-embed img {
  width: 100%;
  max-height: 155px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 6px;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-discord-embed img {
  max-height: 200px;
  object-fit: contain;
  background: #1e1f22;
}

/* WhatsApp Mockup */
.bp-mockup-whatsapp {
  background: #0b141a;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bp-mockup-whatsapp-bubble {
  background: #005c4b;
  border-radius: 8px;
  border-top-right-radius: 2px;
  padding: 6px 8px;
  color: #e9edef;
}
.bp-mockup-whatsapp-card {
  background: #025143;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 5px;
}
.bp-mockup-whatsapp-card img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-whatsapp-card img {
  max-height: 190px;
  object-fit: contain;
  background: #01382e;
}
.bp-mockup-whatsapp-card-body {
  padding: 6px 8px;
}
.bp-mockup-whatsapp-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
}
.bp-mockup-whatsapp-domain {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1px;
}
.bp-mockup-whatsapp-text {
  font-size: 11.5px;
  line-height: 1.35;
  padding: 2px 3px;
  word-break: break-word;
}
.bp-mockup-whatsapp-text a {
  color: #53bdeb;
  text-decoration: underline;
}
.bp-mockup-whatsapp-meta {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 3px;
}

/* Reddit Mockup */
.bp-mockup-reddit {
  background: #0e1113;
  border: 1px solid #343536;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  color: #d7dadc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bp-mockup-reddit-header {
  font-size: 10.5px;
  color: #818384;
  margin-bottom: 5px;
}
.bp-mockup-reddit-title {
  font-size: 12px;
  font-weight: 700;
  color: #d7dadc;
  line-height: 1.3;
  margin-bottom: 6px;
}
.bp-mockup-reddit-card {
  border: 1px solid #343536;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1b;
}
.bp-mockup-reddit-card img {
  width: 100%;
  max-height: 155px;
  object-fit: cover;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-reddit-card img {
  max-height: 200px;
  object-fit: contain;
  background: #101011;
}
.bp-mockup-reddit-linkbar {
  padding: 5px 8px;
  font-size: 10.5px;
  color: #818384;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Facebook Mockup */
.bp-mockup-facebook {
  background: #242526;
  border: 1px solid #3a3b3c;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  color: #e4e6eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bp-mockup-facebook-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bp-mockup-facebook-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.bp-mockup-facebook-user {
  font-size: 12px;
  font-weight: 700;
  color: #e4e6eb;
}
.bp-mockup-facebook-sub {
  font-size: 10px;
  color: #b0b3b8;
}
.bp-mockup-facebook-text {
  font-size: 11.5px;
  margin-bottom: 6px;
  line-height: 1.35;
  word-break: break-word;
}
.bp-mockup-facebook-card {
  border: 1px solid #3a3b3c;
  border-radius: 6px;
  overflow: hidden;
  background: #18191a;
}
.bp-mockup-facebook-card img {
  width: 100%;
  max-height: 155px;
  object-fit: cover;
  display: block;
}
.bp-ref-artwork[data-format="story"] .bp-mockup-facebook-card img {
  max-height: 200px;
  object-fit: contain;
  background: #121314;
}
.bp-mockup-facebook-card-body {
  padding: 6px 8px;
}
.bp-mockup-facebook-domain {
  font-size: 10px;
  color: #b0b3b8;
  text-transform: uppercase;
}
.bp-mockup-facebook-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e4e6eb;
  margin: 1px 0;
}
.bp-mockup-facebook-desc {
  font-size: 10.5px;
  color: #b0b3b8;
}
.bp-ref-artwork-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: #e8c29d;
  background: rgba(20, 21, 24, 0.9);
  text-align: center;
}
.bp-ref-artwork-status:empty { visibility: hidden; }

/* Action Footer */
.bp-promo-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bp-promo-primary-share-btn {
  background: #ff5a1f;
  border: 1px solid #ff7b42;
  border-bottom: 3px solid #b33d10;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  color: #17110c;
  min-height: 52px;
  padding: 11px 14px;
  width: 100%;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 100ms var(--ref-ease);
}
.bp-promo-primary-share-btn:hover:not([aria-disabled="true"]) {
  background: #ff7538;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.bp-promo-primary-share-btn:active:not([aria-disabled="true"]) {
  transform: translateY(1px);
  box-shadow: none;
}
.bp-promo-primary-share-btn[aria-disabled="true"] {
  background: #34363c;
  border-color: #42444b;
  border-bottom: 1px solid #42444b;
  color: #8e9099;
  cursor: not-allowed;
  box-shadow: none;
}
.bp-primary-share-icon {
  width: 25px;
  height: 25px;
  margin-right: 3px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bp-primary-share-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.bp-primary-share-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bp-primary-share-arrow svg {
  transition: transform 140ms var(--ref-ease);
}
.bp-promo-primary-share-btn:hover:not([aria-disabled="true"]) .bp-primary-share-arrow svg {
  transform: translate(1px, -1px);
}
.bp-ref-share-hint {
  font-size: 11px;
  color: #a5a7b0;
  margin: 0;
  line-height: 1.5;
}

/* Lightbox Enlarge Dialog */
.bp-ref-artwork-dialog {
  padding: 0;
  border: 1px solid var(--studio-border);
  border-radius: 8px;
  background: var(--studio-surface);
  color: #fff;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
}
.bp-ref-artwork-dialog::backdrop { background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(4px); }
.bp-ref-artwork-dialog img {
  display: block;
  max-width: min(1200px, calc(100vw - 74px));
  max-height: calc(100dvh - 160px);
  margin: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bp-ref-artwork-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bp-ref-artwork-dialog .bp-ref-close { margin: 0 0 0 auto; width: auto; padding: 0 12px; }

/* Responsive reflow at 720px */
@media (max-width: 720px) {
  #bp-referral-hub-backdrop { padding: 8px; }
  .bp-referral-hub-dialog { max-height: calc(100dvh - 16px); }
  .bp-ref-header { padding: 14px 16px; gap: 9px; min-height: 68px; }
  #bp-ref-title { font-size: 14px; }
  .bp-ref-desc { font-size: 12px; }
  .bp-ref-body { grid-template-columns: 1fr; }
  .bp-ref-workspace { padding: 20px; }
  .bp-ref-preview-pane { padding: 20px; border-left: 0; border-top: 1px solid #36373c; }
  .bp-ref-input, .bp-ref-caption-input { font-size: 16px; }
  .bp-ref-social-link span { font-size: 12px; }
  .bp-ref-artwork { height: 260px; min-height: 260px; }
}


@media (pointer: coarse) {
  .bp-ref-formats button, .bp-ref-enlarge, .bp-ref-copy-btn { min-height: 44px; }
  #bp-referral-hub-backdrop summary { min-height: 44px; padding-block: 10px; }
  .bp-promo-action-btn.text-action { min-height: 44px; }
  .bp-ref-link-box > label { min-height: 44px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #bp-referral-hub-backdrop *, #bp-referral-hub-backdrop *::before, #bp-referral-hub-backdrop *::after {
    animation: none !important;
    transition: none !important;
  }
  #bp-referral-hub-backdrop :is(button, a):active, #bp-referral-hub-backdrop .bp-promo-primary-share-btn:hover svg {
    transform: none !important;
  }
}
