/* 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: none !important; background: #0009 !important; }
html[data-desktop-appearance="desktop"] #bp-desktop-auth-modal > div { border: 1px solid #48494f !important; border-radius: 9px !important; background: #222328 !important; box-shadow: 0 16px 50px #0007 !important; padding: 24px !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;
}

.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-modal-spring > div:first-child button[aria-label*="Close"],
.bp-modal-spring > div:first-child button:last-child {
  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-modal-spring > div:first-child button[aria-label*="Close"]:hover,
.bp-modal-spring > div:first-child button:last-child: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.75);
  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: 24px;
  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: 16px;
}

.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;
  }
}


