:root {
  color-scheme: dark;
  --s6-bg: #090a0c;
  --s6-bg-elevated: #101115;
  --s6-surface: #15161a;
  --s6-surface-strong: #1b1c21;
  --s6-surface-soft: #202126;
  --s6-line: rgba(214, 218, 226, .14);
  --s6-line-strong: rgba(206, 173, 104, .44);
  --s6-ivory: #f4f1e9;
  --s6-platinum: #c9cdd5;
  --s6-muted: #9498a1;
  --s6-gold: #c9a866;
  --s6-gold-light: #e2ca91;
  --s6-gold-deep: #8c6a32;
  --s6-positive: #83b49a;
  --s6-warning: #c9a866;
  --s6-danger: #d08078;
  --s6-radius: 8px;
  --s6-control: 8px;
  --s6-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --s6-display: Georgia, "Times New Roman", serif;
  --s6-text: "Segoe UI Variable Text", "Avenir Next", "SF Pro Text", system-ui, sans-serif;

  --bp-bg: var(--s6-bg);
  --bp-bg-deep: #060709;
  --bp-surface: var(--s6-surface);
  --bp-surface-raised: var(--s6-surface-strong);
  --bp-surface-soft: rgba(201, 205, 213, .06);
  --bp-line: var(--s6-line);
  --bp-line-strong: var(--s6-line-strong);
  --bp-text: var(--s6-ivory);
  --bp-muted: var(--s6-muted);
  --bp-platinum: var(--s6-platinum);
  --bp-gold: var(--s6-gold);
  --bp-gold-light: var(--s6-gold-light);
  --bp-gold-dark: var(--s6-gold-deep);
  --bp-positive: var(--s6-positive);
  --bp-danger: var(--s6-danger);
  --bp-radius: var(--s6-radius);
  --bp-radius-inner: var(--s6-radius);
  --bp-radius-control: var(--s6-control);
  --bp-font: var(--s6-text);
  --bp-display: var(--s6-display);

  --c1-bg: var(--s6-bg);
  --c1-bg-deep: #060709;
  --c1-graphite: var(--s6-surface);
  --c1-graphite-raised: var(--s6-surface-strong);
  --c1-platinum: var(--s6-platinum);
  --c1-ivory: var(--s6-ivory);
  --c1-muted: var(--s6-muted);
  --c1-gold: var(--s6-gold);
  --c1-gold-light: var(--s6-gold-light);
  --c1-gold-deep: var(--s6-gold-deep);
  --c1-line: var(--s6-line);
  --c1-line-strong: var(--s6-line-strong);
  --c1-positive: var(--s6-positive);
  --c1-warning: var(--s6-warning);
  --c1-danger: var(--s6-danger);
  --c1-radius-page: var(--s6-radius);
  --c1-radius-card: var(--s6-radius);
  --c1-radius-control: var(--s6-control);
  --c1-display: var(--s6-display);
  --c1-text: var(--s6-text);
  --c1-shadow: var(--s6-shadow);

  --premium-bg: var(--s6-bg);
  --premium-surface: var(--s6-surface);
  --premium-surface-raised: var(--s6-surface-strong);
  --premium-line: var(--s6-line);
  --premium-gold: var(--s6-gold);
  --premium-gold-light: var(--s6-gold-light);
  --premium-platinum: var(--s6-platinum);
  --premium-text: var(--s6-ivory);
  --premium-muted: var(--s6-muted);
  --premium-primary-radius: var(--s6-radius);
  --premium-nested-radius: var(--s6-radius);
  --premium-button-radius: var(--s6-control);
  --premium-font: var(--s6-text);

  --bg: var(--s6-bg);
  --page: var(--s6-bg);
  --panel: var(--s6-surface);
  --panel-strong: var(--s6-surface-strong);
  --surface: var(--s6-surface);
  --surface-strong: var(--s6-surface-strong);
  --line: var(--s6-line);
  --line-strong: var(--s6-line-strong);
  --text: var(--s6-ivory);
  --soft: var(--s6-platinum);
  --muted: var(--s6-muted);
  --accent: var(--s6-gold);
  --accent-2: var(--s6-gold-light);
  --gold: var(--s6-gold);
  --ok: var(--s6-positive);
  --warning: var(--s6-warning);
  --danger: var(--s6-danger);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--s6-bg); }
body,
body.c1-product {
  min-width: 320px;
  margin: 0;
  color: var(--s6-ivory);
  font-family: var(--s6-text);
  letter-spacing: 0;
  background: var(--s6-bg);
  background-image: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before,
body.c1-product::before {
  display: block;
  background-image: url("./assets/premium-noise.svg");
  opacity: .18;
  pointer-events: none;
}

:where(h1, h2, h3, h4, .workspace-heading, .section-heading) {
  font-family: var(--s6-display);
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}
:where(p, li, td, th, label, button, a, input, select, textarea) { letter-spacing: 0; }
::selection { color: #0b0b0d; background: var(--s6-gold-light); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--s6-gold-light);
  outline-offset: 3px;
}

/* Commands and controls */
:where(.button, .bp-button, .bp-button-secondary, .c1-primary, .c1-secondary,
  .primary-command, .secondary-command, .icon-command, .admin-button, .command,
  button:not(.nav-item):not(.workspace-nav-item):not(.view-tab)) {
  min-height: 44px;
  border-radius: var(--s6-control);
  font-family: var(--s6-text);
  font-weight: 700;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
:where(.button:not(.secondary), .bp-button, .c1-primary, .primary-command,
  .admin-button:not(.secondary):not(.danger), .command:not(.quiet), button.gold) {
  color: #17130d;
  border: 1px solid var(--s6-gold-light);
  background: var(--s6-gold);
}
:where(.button:not(.secondary), .bp-button, .c1-primary, .primary-command,
  .admin-button:not(.secondary):not(.danger), .command:not(.quiet), button.gold):hover {
  color: #0e0d0a;
  background: var(--s6-gold-light);
  transform: translateY(-1px);
}
:where(.button.secondary, .bp-button-secondary, .c1-secondary, .secondary-command,
  .icon-command, .admin-button.secondary, .command.quiet) {
  color: var(--s6-gold-light);
  border: 1px solid var(--s6-line-strong);
  background: transparent;
}
:where(.button.secondary, .bp-button-secondary, .c1-secondary, .secondary-command,
  .icon-command, .admin-button.secondary, .command.quiet):hover {
  color: var(--s6-ivory);
  border-color: var(--s6-gold-light);
  background: rgba(201, 168, 102, .08);
}
:where(.admin-button.danger, button.danger) {
  color: #f2cfcb;
  border-color: rgba(208, 128, 120, .48);
  background: rgba(208, 128, 120, .10);
}
:where(button, .button, a[role="button"]):disabled { opacity: .45; transform: none; cursor: not-allowed; }

:where(input, select, textarea) {
  min-width: 0;
  min-height: 44px;
  color: var(--s6-ivory);
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-control);
  background: #0d0e11;
  font: inherit;
  accent-color: var(--s6-gold);
}
:where(input, select, textarea):hover { border-color: rgba(201, 168, 102, .38); }
:where(input, select, textarea):focus { border-color: var(--s6-gold); }
:where(input, textarea)::placeholder { color: #737780; opacity: 1; }

/* Product shell */
.workspace-sidebar,
.sidebar {
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-radius);
  background: #0e0f12;
  box-shadow: none;
}
.workspace-sidebar { padding: 10px; }
.sidebar { border-block: 0; border-inline-start: 0; }
.workspace-brand,
.sidebar-heading { border-color: var(--s6-line); }
.workspace-brand > span,
.brand-mark {
  border-radius: var(--s6-radius);
  color: #17130d;
  border-color: var(--s6-gold-light);
  background: var(--s6-gold);
  box-shadow: none;
}
.workspace-nav-item,
.nav-item {
  border-radius: 6px;
  color: var(--s6-platinum);
  background: transparent;
  box-shadow: none;
}
.workspace-nav-item:hover,
.workspace-nav-item.active,
.nav-item:hover,
.nav-item.active {
  color: var(--s6-gold-light);
  background: rgba(201, 168, 102, .08);
  box-shadow: inset 2px 0 var(--s6-gold);
}
[dir="rtl"] .workspace-nav-item:hover,
[dir="rtl"] .workspace-nav-item.active,
[dir="rtl"] .nav-item:hover,
[dir="rtl"] .nav-item.active { box-shadow: inset -2px 0 var(--s6-gold); }

.workspace-heading,
.section-heading { border-color: var(--s6-line); }
.workspace-heading h2,
.section-heading h1,
.section-heading h2 { color: var(--s6-ivory); font-weight: 400; }
.eyebrow,
.bp-eyebrow,
.c1-eyebrow { color: var(--s6-gold); }

.workspace-masthead,
.marketplace-hero,
.community-hero,
.content-heading,
.c1-settings-intro {
  overflow: hidden;
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-radius);
  background-color: #0d0e11;
  box-shadow: var(--s6-shadow);
}
.workspace-masthead::before,
.workspace-intro,
.content-heading,
.c1-settings-intro {
  background-image: none;
  background-color: #121318;
}
.workspace-masthead.has-image::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .96) 0%, rgba(8, 9, 11, .78) 45%, rgba(8, 9, 11, .12) 82%),
    var(--masthead-image) center right / cover no-repeat;
}
.workspace-masthead h3,
.content-heading h1,
.c1-settings-intro h3 { font-family: var(--s6-display); font-weight: 400; letter-spacing: 0; }

/* Flatten large page sections; reserve framed cards for repeated records and tools. */
:where(.panel, .roadmap-panel, .payouts-panel, .payments-panel, .partners-panel,
  .audit-panel, .health-panel, .admin-panel, .marketplace-admin-panel,
  .support-admin-panel, .advanced-band, .seller-access, .store-settings,
  .seller-orders, .product-form, .media-workspace, .order-detail) {
  border: 0;
  border-top: 1px solid var(--s6-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:where(.status-card, .money-card, .workspace-stat, .c1-executive-card,
  .catalog-card, .public-product-card, .advanced-card, .product-row, .order-row,
  .checkout-card, .product-dialog-card, .bundle-card, .support-admin-ticket,
  .branding-moderation-card, .payout-verification-admin-item, .media-item,
  .community-post, .community-member, .lesson-card, .course-day-card,
  .item-card, .brand-card, .review-card, .dispute-card) {
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-radius);
  background: var(--s6-surface);
  background-image: none;
  box-shadow: none;
}
:where(.status-card, .money-card, .workspace-stat, .c1-executive-card,
  .catalog-card, .public-product-card, .advanced-card, .product-row, .order-row,
  .support-admin-ticket, .branding-moderation-card):hover {
  border-color: rgba(201, 168, 102, .34);
  background: var(--s6-surface-strong);
}

.workspace-summary,
.c1-executive-strip,
.status-grid { gap: 1px; border: 1px solid var(--s6-line); border-radius: var(--s6-radius); overflow: hidden; background: var(--s6-line); }
.workspace-summary > *,
.c1-executive-strip > *,
.status-grid > * { margin: 0; border: 0; border-radius: 0; }

/* Tables, money, status and dialogs */
:where(table, .table-wrap table) {
  width: 100%;
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #0e0f12;
}
:where(th) {
  color: var(--s6-platinum);
  background: #16171b;
  font-size: 12px;
  font-weight: 700;
}
:where(td, th) { border-color: var(--s6-line); }
:where(tbody tr:hover td) { background: rgba(201, 168, 102, .045); }
.money-card .value,
.workspace-stat strong,
.c1-executive-card strong { font-family: var(--s6-display); font-weight: 400; letter-spacing: 0; }
:where(.badge, .state, .status-badge, .role-badge, .access-badge, .bp-chip,
  .c1-chip, .result-count, .payout-verification-state) {
  border-color: var(--s6-line);
  color: var(--s6-platinum);
  background: rgba(255, 255, 255, .035);
}
dialog {
  color: var(--s6-ivory);
  border: 1px solid var(--s6-line-strong);
  border-radius: var(--s6-radius);
  background: var(--s6-bg-elevated);
  box-shadow: var(--s6-shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(7px); }

/* Marketplace */
.app-header,
.community-topbar,
.topbar,
.event-topbar {
  border-color: var(--s6-line);
  background: rgba(9, 10, 12, .94);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.marketplace-hero { min-height: clamp(420px, 54vw, 700px); }
.hero-shade {
  background: linear-gradient(90deg, rgba(7, 8, 10, .96), rgba(8, 9, 11, .68) 52%, rgba(8, 9, 11, .12));
}
.marketplace-hero h1 { max-width: 780px; font-family: var(--s6-display); font-weight: 400; letter-spacing: 0; }
.view-tabs {
  gap: 0;
  padding: 4px;
  border: 1px solid var(--s6-line);
  border-radius: var(--s6-radius);
  background: #0e0f12;
  box-shadow: none;
}
.view-tab { border-radius: 5px; color: var(--s6-platinum); }
.view-tab.active,
.view-tab[aria-selected="true"] {
  color: #17130d;
  border-color: var(--s6-gold);
  background: var(--s6-gold);
}
.catalog-card,
.public-product-card { overflow: hidden; }
.catalog-card img,
.public-product-card img,
.store-preview img,
.media-item img { background: #1a1b20; }

/* Community, Academy, Landing, Support */
.community-shell,
.brand-page,
.event-shell,
.shell { color: var(--s6-ivory); }
.community-rail,
.community-admin,
.course-shell,
.landing-builder,
.support-shell { border-color: var(--s6-line); background: transparent; box-shadow: none; }
.community-post,
.lesson-card,
.course-day-card { overflow: hidden; }
.community-post img,
.lesson-card img,
.course-day-card img { width: 100%; object-fit: cover; }
.empty-state,
.c1-empty,
.load-status,
.community-empty,
.seller-empty {
  min-height: 150px;
  color: var(--s6-muted);
  border: 1px dashed rgba(201, 168, 102, .32);
  border-radius: var(--s6-radius);
  background: rgba(255, 255, 255, .018);
}
.c1-state,
.advanced-note,
.marketplace-safety-note,
.support-admin-controls {
  border-color: var(--s6-line);
  border-radius: var(--s6-radius);
  background: rgba(255, 255, 255, .025);
}

/* Public page and demo inherit the same editorial system. */
body > header:not(.app-header):not(.topbar):not(.community-topbar):not(.event-topbar) {
  border-color: var(--s6-line);
  background: rgba(9, 10, 12, .94);
}
body > main > section { border-color: var(--s6-line); }
body > main > .hero h1,
#gate h1,
#app h1 { font-family: var(--s6-display); font-weight: 400; letter-spacing: 0; }

/* RTL mirrors active rails while preserving numbers and media. */
[dir="rtl"] :where(.workspace-layout, .workspace-main, .content, .event-shell, .community-shell) { direction: rtl; }
[dir="rtl"] :where(input, textarea, select, table, .money-card, .workspace-stat) { direction: rtl; }
[dir="rtl"] :where(.value, [data-money], time, code) { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 1100px) {
  .workspace-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .workspace-summary,
  .c1-executive-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .workspace-layout { display: block; }
  .workspace-mobile-nav {
    border-color: var(--s6-line);
    background: rgba(9, 10, 12, .96);
    box-shadow: 0 -16px 44px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
  }
  .workspace-masthead,
  .marketplace-hero,
  .content-heading,
  .c1-settings-intro { border-radius: var(--s6-radius); }
  .workspace-masthead.has-image::before {
    background:
      linear-gradient(0deg, rgba(7, 8, 10, .97) 4%, rgba(7, 8, 10, .76) 52%, rgba(7, 8, 10, .16) 100%),
      var(--masthead-image) center top / cover no-repeat;
  }
  .app-header { background: var(--s6-bg); }
  .view-tabs { top: 0; }
  .table-wrap tr { border-radius: var(--s6-radius); background: var(--s6-surface); }
}

@media (max-width: 560px) {
  .workspace-summary,
  .c1-executive-strip { grid-template-columns: 1fr; }
  .workspace-summary > *,
  .c1-executive-strip > * { min-height: 112px; }
  .marketplace-hero { min-height: 580px; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 8, 10, .97), rgba(7, 8, 10, .68) 62%, rgba(7, 8, 10, .14)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Final premium rebuild: editorial business architecture, not an admin theme.
   This layer intentionally changes composition while preserving product DOM.
   -------------------------------------------------------------------------- */
:root {
  --editorial-ink: #090a0c;
  --editorial-graphite: #111216;
  --editorial-graphite-2: #18191d;
  --editorial-platinum: #c8cbd0;
  --editorial-ivory: #f2eee5;
  --editorial-gold: #c8a565;
  --editorial-gold-light: #e6cf9a;
  --editorial-gold-dark: #76592d;
  --editorial-muted: #97999f;
  --editorial-line: rgba(226, 218, 201, .16);
  --editorial-line-gold: rgba(200, 165, 101, .44);
  --editorial-display: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --editorial-text: "Aptos", "Segoe UI Variable Text", "Avenir Next", system-ui, sans-serif;
}

html { background: var(--editorial-ink); }
body,
body.c1-product {
  color: var(--editorial-ivory);
  background: var(--editorial-ink) !important;
  font-family: var(--editorial-text);
}
body::before,
body.c1-product::before {
  display: block;
  background-image: url("./assets/premium-noise.svg");
  opacity: .035;
  pointer-events: none;
}

:where(h1, h2, h3, h4, .workspace-heading, .section-heading) {
  font-family: var(--editorial-display);
  font-weight: 400;
  letter-spacing: 0;
}

.bp-eyebrow,
.eyebrow,
.c1-eyebrow {
  color: var(--editorial-gold) !important;
  font-family: var(--editorial-text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Commands read as precise tools, never luminous SaaS pills. */
:where(.button, .bp-button, .bp-button-secondary, .c1-primary, .c1-secondary,
  .primary-command, .secondary-command, .icon-command, .admin-button, .command,
  .workspace-feature-link, .workspace-actions a) {
  border-radius: 3px !important;
  box-shadow: none !important;
  letter-spacing: 0;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
:where(.button:not(.secondary), .bp-button, .c1-primary, .primary-command,
  .admin-button:not(.secondary):not(.danger), .command:not(.quiet),
  .workspace-feature-link, .workspace-actions .bp-button) {
  color: #11100d !important;
  border: 1px solid var(--editorial-gold-light) !important;
  background: var(--editorial-gold) !important;
}
:where(.button:not(.secondary), .bp-button, .c1-primary, .primary-command,
  .admin-button:not(.secondary):not(.danger), .command:not(.quiet),
  .workspace-feature-link, .workspace-actions .bp-button):hover {
  color: #090909 !important;
  background: var(--editorial-gold-light) !important;
  transform: translateY(-2px);
}
:where(.button.secondary, .bp-button-secondary, .c1-secondary, .secondary-command,
  .icon-command, .admin-button.secondary, .command.quiet,
  .workspace-actions .bp-button-secondary) {
  color: var(--editorial-ivory) !important;
  border: 1px solid var(--editorial-line-gold) !important;
  background: transparent !important;
}
:where(.button.secondary, .bp-button-secondary, .c1-secondary, .secondary-command,
  .icon-command, .admin-button.secondary, .command.quiet,
  .workspace-actions .bp-button-secondary):hover {
  color: var(--editorial-gold-light) !important;
  border-color: var(--editorial-gold-light) !important;
  background: rgba(200, 165, 101, .07) !important;
}

:where(input, select, textarea) {
  color: var(--editorial-ivory) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
:where(input, select, textarea):focus {
  border-bottom-color: var(--editorial-gold) !important;
  outline: 0;
}

/* Partner cabinet: an executive editorial workspace. */
body.workspace-authenticated .shell {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
}
body.workspace-authenticated #dashboard { padding-block: 18px 64px; }
.workspace-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) !important;
  gap: 52px !important;
  align-items: start;
}
.workspace-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 3px;
  max-height: calc(100vh - 36px);
  padding: 0 22px 18px 0 !important;
  overflow: auto;
  border: 0 !important;
  border-right: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
[dir="rtl"] .workspace-sidebar {
  padding: 0 0 18px 22px !important;
  border-right: 0 !important;
  border-left: 1px solid var(--editorial-line) !important;
}
.workspace-brand {
  min-height: 86px;
  margin: 0 0 24px;
  padding: 8px 0 20px !important;
  border-bottom: 1px solid var(--editorial-line) !important;
}
.workspace-brand > span {
  width: 48px;
  border: 1px solid var(--editorial-gold) !important;
  border-radius: 0 !important;
  color: var(--editorial-gold-light) !important;
  background: transparent !important;
  font-family: var(--editorial-display);
  font-size: 16px;
  font-weight: 400;
}
.workspace-brand strong { color: var(--editorial-ivory); font-family: var(--editorial-display); font-size: 18px; font-weight: 400; }
.workspace-brand small { color: var(--editorial-muted); }
#workspaceSidebarNav { gap: 0; }
.workspace-nav-item {
  position: relative;
  min-height: 44px;
  padding: 10px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  color: var(--editorial-platinum) !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 540;
  box-shadow: none !important;
}
.workspace-nav-item span { color: var(--editorial-gold); font-size: 16px; }
.workspace-nav-item:hover,
.workspace-nav-item.active {
  color: var(--editorial-ivory) !important;
  border-bottom-color: var(--editorial-gold) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-nav-item.active::after {
  content: "";
  position: absolute;
  right: -23px;
  top: 50%;
  width: 23px;
  height: 1px;
  background: var(--editorial-gold);
}
[dir="rtl"] .workspace-nav-item.active::after { right: auto; left: -23px; }
.workspace-main { min-width: 0; }
.workspace-heading {
  min-height: 70px;
  margin: 0 0 22px !important;
  padding: 3px 0 17px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
}
.workspace-heading h2 {
  margin: 4px 0 0;
  color: var(--editorial-ivory);
  font-size: 30px !important;
  line-height: 1.05;
}
.workspace-heading .bp-chip {
  border: 0;
  border-radius: 0;
  color: var(--editorial-muted);
  background: transparent;
}

.workspace-screen > * + * { margin-top: 64px !important; }
.workspace-masthead {
  position: relative;
  isolation: isolate;
  display: grid !important;
  align-items: end;
  min-height: 500px !important;
  padding: 58px 54px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--editorial-graphite) !important;
  box-shadow: none !important;
}
.workspace-masthead::before {
  background: linear-gradient(90deg, #0d0e11 0%, #121318 58%, #1a1712 100%) !important;
}
.workspace-masthead.has-image::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .99) 0%, rgba(8, 9, 11, .91) 42%, rgba(8, 9, 11, .28) 70%, rgba(8, 9, 11, .08) 100%),
    var(--masthead-image) center right / cover no-repeat !important;
}
.workspace-masthead::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 46%) !important;
}
.workspace-masthead-copy { max-width: 690px !important; }
.workspace-masthead h3 {
  max-width: 680px !important;
  margin: 16px 0 20px !important;
  color: var(--editorial-ivory);
  font-size: 64px !important;
  font-weight: 400 !important;
  line-height: .98 !important;
}
.workspace-masthead-copy > p:not(.bp-eyebrow) {
  max-width: 600px !important;
  color: var(--editorial-platinum) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}
.workspace-masthead-actions { margin-top: 30px !important; }
.workspace-feature-link { padding-inline: 20px; }

.workspace-overview { display: grid; gap: 70px !important; }
.workspace-performance { display: grid; gap: 26px; }
.workspace-section-intro {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr);
  gap: 20px;
  align-items: center;
}
.workspace-section-intro p { margin: 0; }
.workspace-section-intro span { height: 1px; background: var(--editorial-line); }
.workspace-summary {
  display: grid !important;
  grid-template-columns: minmax(300px, 1.35fr) repeat(2, minmax(180px, .65fr)) !important;
  grid-template-rows: repeat(2, minmax(112px, auto));
  gap: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.workspace-stat {
  position: relative;
  display: grid !important;
  align-content: space-between;
  gap: 18px;
  min-height: 112px !important;
  padding: 22px 24px !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  color: var(--editorial-ivory) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .2s ease, background-color .2s ease;
}
.workspace-stat:nth-child(even) { border-left: 1px solid var(--editorial-line) !important; }
.workspace-stat:hover { color: var(--editorial-gold-light) !important; background: rgba(255, 255, 255, .025) !important; }
.workspace-stat-primary {
  grid-row: 1 / span 2;
  min-height: 224px !important;
  padding: 34px !important;
  border: 1px solid var(--editorial-line-gold) !important;
  background: var(--editorial-graphite) !important;
}
.workspace-stat span { min-height: 0 !important; color: var(--editorial-muted) !important; font-size: 12px; }
.workspace-stat strong {
  color: inherit;
  font-family: var(--editorial-display);
  font-size: 34px !important;
  font-weight: 400 !important;
}
.workspace-stat-primary strong { font-size: 62px !important; }
.workspace-stat small { color: var(--editorial-gold) !important; font-size: 11px; font-weight: 700; }

.workspace-command-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr) !important;
  gap: 0 !important;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
}
.workspace-focus,
.workspace-readiness {
  min-height: 220px;
  padding: 34px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-focus { padding-right: 44px !important; }
[dir="rtl"] .workspace-focus { padding-right: 0 !important; padding-left: 44px !important; }
.workspace-readiness {
  gap: 18px !important;
  padding-left: 40px !important;
  border-left: 1px solid var(--editorial-line) !important;
}
[dir="rtl"] .workspace-readiness { padding-left: 0 !important; padding-right: 40px !important; border-left: 0 !important; border-right: 1px solid var(--editorial-line) !important; }
.workspace-actions { align-items: flex-start; gap: 10px !important; }
.workspace-actions a { min-width: 170px; justify-content: center; }
.workspace-readiness-line { color: var(--editorial-platinum) !important; }
.workspace-readiness-line span { width: 6px !important; border-radius: 0 !important; background: var(--editorial-gold) !important; box-shadow: none !important; }

/* Operational screens stay dense, but lose the boxed developer-dashboard look. */
.workspace-screen > :where(.panel, .grid, .section-stack, table),
.workspace-screen > div:not(.workspace-overview):not(.workspace-masthead),
.workspace-screen :where(.panel, .money-card, .course-shell, .support-shell) {
  border-radius: 0 !important;
}
.workspace-screen > :where(.panel, .section-stack),
.workspace-screen :where(.course-shell, .support-shell) {
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-screen :where(.money-card, .status-card) {
  border: 0 !important;
  border-left: 1px solid var(--editorial-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-screen table,
.workspace-screen .table-wrap table {
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.workspace-screen th {
  color: var(--editorial-gold-light) !important;
  background: transparent !important;
}
.workspace-screen td { color: var(--editorial-platinum); }
.workspace-screen tbody tr:hover td { background: rgba(200, 165, 101, .055) !important; }
.workspace-detail { max-width: none !important; }
.workspace-detail h3 { font-size: 48px !important; }
.workspace-detail-body {
  max-width: 920px;
  padding: 34px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Marketplace: image-first premium commerce, not a filtered admin table. */
body.marketplace-product { background: var(--editorial-ink) !important; }
.marketplace-product .app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  padding: 12px max(28px, calc((100vw - 1380px) / 2));
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  background: rgba(9, 10, 12, .94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px);
}
.marketplace-product .brand-mark {
  color: var(--editorial-gold-light) !important;
  border: 1px solid var(--editorial-gold) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.marketplace-product .brand strong { font-family: var(--editorial-display); font-size: 17px; font-weight: 400; }
.marketplace-product .brand small { color: var(--editorial-muted); }
.marketplace-product .app-header > .secondary-command {
  min-height: 38px;
  padding: 8px 4px;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
}
.marketplace-product .app-header > .secondary-command:hover { border-bottom-color: var(--editorial-gold) !important; }
.marketplace-product .marketplace-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 690px !important;
  margin: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background-image: url("/marketplace/assets/premium-marketplace-hero.png") !important;
  background-position: center 42% !important;
  background-size: cover !important;
  box-shadow: none !important;
}
.marketplace-product .hero-shade {
  background: linear-gradient(90deg, rgba(6, 7, 9, .96) 0%, rgba(6, 7, 9, .76) 44%, rgba(6, 7, 9, .10) 78%) !important;
}
.marketplace-product .hero-content {
  width: min(1380px, calc(100% - 56px));
  max-width: none;
  margin: 0 auto;
  padding: 88px 0 74px;
}
.marketplace-product .hero-content h1 {
  max-width: 820px;
  margin: 16px 0 24px;
  color: var(--editorial-ivory);
  font-size: 68px !important;
  font-weight: 400;
  line-height: .98;
}
.marketplace-product .hero-content > p:last-child {
  max-width: 610px;
  color: var(--editorial-platinum);
  font-size: 17px;
  line-height: 1.7;
}
.marketplace-product .view-tabs {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 30px !important;
  width: min(1380px, calc(100% - 56px));
  max-width: none;
  margin: -1px auto 0;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: var(--editorial-ink) !important;
  box-shadow: none !important;
}
.marketplace-product .view-tab {
  min-height: 68px;
  padding: 10px 0;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: var(--editorial-muted) !important;
  background: transparent !important;
  font-size: 13px;
}
.marketplace-product .view-tab:hover,
.marketplace-product .view-tab.active,
.marketplace-product .view-tab[aria-selected="true"] {
  color: var(--editorial-ivory) !important;
  border-bottom-color: var(--editorial-gold) !important;
  background: transparent !important;
}
.marketplace-product .view-section {
  width: min(1380px, calc(100% - 56px));
  max-width: none;
  margin: 0 auto;
  padding: 88px 0 118px;
}
.marketplace-product .section-heading {
  align-items: end;
  padding-bottom: 24px;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
}
.marketplace-product .section-heading h2 { max-width: 760px; margin: 8px 0 0; font-size: 44px; line-height: 1.04; }
.marketplace-product .section-heading h3 { font-size: 34px; }
.marketplace-product :where(.view-section, .seller-workspace, .seller-orders, .advanced-band, .section-heading, .section-heading > div) {
  min-width: 0;
  max-width: 100%;
}
.marketplace-product .section-heading :where(h2, h3, p) { max-width: 100%; overflow-wrap: anywhere; }
.marketplace-product .catalog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 22px;
  margin-top: 38px;
}
.marketplace-product .catalog-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-column: span 6;
  min-height: 480px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--editorial-graphite) !important;
  box-shadow: none !important;
}
.marketplace-product .catalog-card:nth-child(4n + 1),
.marketplace-product .catalog-card:nth-child(4n + 4) { grid-column: span 7; }
.marketplace-product .catalog-card:nth-child(4n + 2),
.marketplace-product .catalog-card:nth-child(4n + 3) { grid-column: span 5; }
.marketplace-product .catalog-card img {
  width: 100%;
  height: 100% !important;
  min-height: 480px;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
  transition: transform .7s ease, filter .7s ease;
}
.marketplace-product .catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 8, 10, .94) 0%, rgba(7, 8, 10, .52) 48%, rgba(7, 8, 10, .06) 76%);
}
.marketplace-product .catalog-card:hover img { transform: scale(1.025); filter: saturate(.92) contrast(1.05); }
.marketplace-product .catalog-card-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 34px !important;
}
.marketplace-product .catalog-card h3 { color: var(--editorial-ivory); font-family: var(--editorial-display); font-size: 31px; font-weight: 400; }
.marketplace-product .catalog-card p { max-width: 520px; color: var(--editorial-platinum); font-size: 13px; }
.marketplace-product .catalog-card .secondary-command { align-self: flex-start; }

.marketplace-product .public-products,
.marketplace-product .advanced-band,
.marketplace-product .seller-orders,
.marketplace-product .store-settings,
.marketplace-product .product-form,
.marketplace-product .media-workspace {
  margin-top: 110px !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.marketplace-product .public-products > .section-heading,
.marketplace-product .advanced-band > .section-heading,
.marketplace-product .seller-orders > .section-heading,
.marketplace-product .store-settings > .section-heading { padding-top: 48px; }
.marketplace-product .product-filters {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(120px, .75fr)) auto !important;
  gap: 18px !important;
  align-items: end;
  margin: 38px 0 54px;
  padding: 0 0 26px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.marketplace-product .product-filters label {
  padding: 0 !important;
  border: 0 !important;
  color: var(--editorial-muted) !important;
  background: transparent !important;
}
.marketplace-product .product-filters label.wide { grid-column: auto !important; }
.marketplace-product .product-filter-actions { min-width: 190px; }
.marketplace-product .public-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 46px 22px !important;
}
.marketplace-product .public-product-card {
  display: grid !important;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.marketplace-product .public-product-image {
  min-height: 390px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--editorial-graphite) !important;
}
.marketplace-product .public-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.marketplace-product .public-product-card:hover .public-product-image img { transform: scale(1.025); }
.marketplace-product .product-image-placeholder {
  display: grid;
  place-items: end start;
  min-height: 100%;
  padding: 26px;
  color: var(--editorial-gold-light);
  background:
    linear-gradient(145deg, rgba(200, 165, 101, .16), transparent 54%),
    var(--editorial-graphite);
  font-family: var(--editorial-display);
  font-size: 26px;
}
.marketplace-product .public-product-content { padding: 22px 0 0 !important; }
.marketplace-product .public-product-meta { border: 0; color: var(--editorial-muted); }
.marketplace-product .public-product-content h3 { min-height: 0; color: var(--editorial-ivory); font-family: var(--editorial-display); font-size: 27px; font-weight: 400; }
.marketplace-product .public-product-description { color: var(--editorial-muted) !important; line-height: 1.65; }
.marketplace-product .public-product-price { color: var(--editorial-gold-light) !important; font-family: var(--editorial-display); font-size: 25px; font-weight: 400; }
.marketplace-product .product-card-actions { align-items: stretch; }
.marketplace-product .product-card-actions > * { flex: 1 1 110px; }
.marketplace-product .storefront-link { color: var(--editorial-gold-light); }

.marketplace-product .empty-state,
.marketplace-product .seller-empty,
.marketplace-product .load-status:empty + .empty-state {
  position: relative;
  display: grid;
  place-items: center start;
  min-height: 220px;
  margin: 26px 0 0;
  padding: 46px 0 46px 72px !important;
  color: var(--editorial-platinum) !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left;
}
.marketplace-product .empty-state::before,
.marketplace-product .seller-empty::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 44px;
  color: var(--editorial-gold);
  font-family: var(--editorial-display);
  font-size: 34px;
}
[dir="rtl"] .marketplace-product .empty-state,
[dir="rtl"] .marketplace-product .seller-empty { padding: 46px 72px 46px 0 !important; text-align: right; }
[dir="rtl"] .marketplace-product .empty-state::before,
[dir="rtl"] .marketplace-product .seller-empty::before { left: auto; right: 0; }
.marketplace-product .seller-access,
.marketplace-product .advanced-note,
.marketplace-product .payment-method {
  border: 0 !important;
  border-left: 2px solid var(--editorial-gold) !important;
  border-radius: 0 !important;
  background: rgba(200, 165, 101, .05) !important;
}
[dir="rtl"] .marketplace-product .seller-access,
[dir="rtl"] .marketplace-product .advanced-note,
[dir="rtl"] .marketplace-product .payment-method { border-left: 0 !important; border-right: 2px solid var(--editorial-gold) !important; }
.marketplace-product .product-row,
.marketplace-product .order-row,
.marketplace-product .advanced-card {
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.marketplace-product dialog article {
  border: 1px solid var(--editorial-line-gold) !important;
  border-radius: 0 !important;
  background: var(--editorial-graphite) !important;
}

/* Responsive layouts are composed independently instead of shrinking desktop. */
@media (max-width: 1180px) {
  .workspace-layout { grid-template-columns: 205px minmax(0, 1fr) !important; gap: 30px !important; }
  .workspace-masthead { min-height: 460px !important; }
  .workspace-masthead h3 { font-size: 54px !important; }
  .workspace-summary { grid-template-columns: minmax(250px, 1.15fr) repeat(2, minmax(150px, .7fr)) !important; }
  .marketplace-product .product-filters { grid-template-columns: repeat(4, minmax(130px, 1fr)) !important; }
  .marketplace-product .product-filters label.wide { grid-column: span 2 !important; }
  .marketplace-product .product-filter-actions { min-width: 0; }
}

@media (max-width: 820px) {
  body.workspace-authenticated .shell { width: auto; margin-inline: 16px; }
  body.workspace-authenticated #dashboard { padding-top: 10px; }
  .workspace-layout { display: block !important; }
  .workspace-sidebar { display: none !important; }
  .workspace-main { padding-bottom: 90px; }
  .workspace-heading { min-height: 56px; padding-bottom: 12px !important; }
  .workspace-heading h2 { font-size: 25px !important; }
  .workspace-masthead {
    min-height: 520px !important;
    padding: 30px 24px !important;
    align-items: end;
  }
  .workspace-masthead.has-image::before {
    background:
      linear-gradient(0deg, rgba(7, 8, 10, .99) 0%, rgba(7, 8, 10, .82) 45%, rgba(7, 8, 10, .17) 100%),
      var(--masthead-image) center top / cover no-repeat !important;
  }
  .workspace-masthead h3 { font-size: 46px !important; }
  .workspace-masthead-copy > p:not(.bp-eyebrow) { font-size: 16px !important; }
  .workspace-screen > * + * { margin-top: 48px !important; }
  .workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
  }
  .workspace-stat-primary { grid-row: auto; grid-column: 1 / -1; min-height: 190px !important; }
  .workspace-stat:nth-child(even) { border-left: 0 !important; }
  .workspace-stat:nth-child(3) { border-left: 1px solid var(--editorial-line) !important; }
  .workspace-command-grid { grid-template-columns: 1fr !important; }
  .workspace-focus { padding-right: 0 !important; }
  .workspace-readiness,
  [dir="rtl"] .workspace-readiness {
    padding: 30px 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid var(--editorial-line) !important;
  }
  .workspace-mobile-nav {
    min-height: 68px;
    padding: 6px 8px max(7px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--editorial-line-gold) !important;
    background: rgba(9, 10, 12, .97) !important;
    box-shadow: 0 -16px 34px rgba(0, 0, 0, .36) !important;
  }
  .workspace-mobile-nav .workspace-nav-item { border: 0 !important; font-size: 10px; }
  .workspace-mobile-nav .workspace-nav-item.active { color: var(--editorial-gold-light) !important; }
  .workspace-mobile-nav .workspace-nav-item.active::after { display: none; }
  .workspace-more[open] { border-radius: 0 !important; background: var(--editorial-graphite) !important; }

  .marketplace-product .app-header {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 16px;
  }
  .marketplace-product .marketplace-hero { min-height: 600px !important; }
  .marketplace-product .hero-shade { background: linear-gradient(0deg, rgba(6, 7, 9, .98) 0%, rgba(6, 7, 9, .72) 54%, rgba(6, 7, 9, .10) 100%) !important; }
  .marketplace-product .hero-content { width: auto; margin-inline: 20px; padding: 70px 0 46px; }
  .marketplace-product .hero-content h1 { font-size: 48px !important; }
  .marketplace-product .view-tabs { width: auto; margin-inline: 20px; }
  .marketplace-product .view-section { width: auto; margin-inline: 20px; padding: 64px 0 90px; }
  .marketplace-product .catalog-card,
  .marketplace-product .catalog-card:nth-child(n) { grid-column: span 6; min-height: 420px !important; }
  .marketplace-product .catalog-card img { min-height: 420px; }
  .marketplace-product .public-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .marketplace-product .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 560px) {
  body.workspace-authenticated .shell { margin-inline: 10px; }
  .workspace-masthead { min-height: 470px !important; padding: 24px 18px !important; }
  .workspace-masthead h3 { font-size: 39px !important; }
  .workspace-masthead-copy > p:not(.bp-eyebrow) { font-size: 15px !important; line-height: 1.55 !important; }
  .workspace-masthead-actions > * { width: 100%; justify-content: center; }
  .workspace-summary { grid-template-columns: 1fr !important; }
  .workspace-stat-primary { grid-column: auto; min-height: 174px !important; padding: 26px !important; }
  .workspace-stat-primary strong { font-size: 48px !important; }
  .workspace-stat:nth-child(n) { border-left: 0 !important; }
  .workspace-actions { display: grid !important; grid-template-columns: 1fr; }
  .workspace-actions a { width: 100%; min-width: 0; }
  .workspace-mobile-nav .workspace-nav-item span { font-size: 17px; }

  .marketplace-product .app-header { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .marketplace-product .app-header .brand { grid-column: 1 / -1; padding-bottom: 8px; }
  .marketplace-product .app-header > .secondary-command { font-size: 11px; }
  .marketplace-product .app-header .language-field { grid-column: 1 / -1; }
  .marketplace-product .marketplace-hero { min-height: 560px !important; }
  .marketplace-product .hero-content { margin-inline: 16px; padding-bottom: 36px; }
  .marketplace-product .hero-content h1 { font-size: 40px !important; }
  .marketplace-product .hero-content > p:last-child { font-size: 15px; }
  .marketplace-product .view-tabs { gap: 0 !important; margin-inline: 16px; }
  .marketplace-product .view-tab { flex: 1; min-width: 0; font-size: 11px; }
  .marketplace-product .view-section { margin-inline: 16px; padding: 52px 0 76px; }
  .marketplace-product .section-heading { align-items: start; }
  .marketplace-product .section-heading { width: 100%; overflow: hidden; }
  .marketplace-product .section-heading h2 { font-size: 35px; }
  .marketplace-product .catalog-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .marketplace-product .catalog-card,
  .marketplace-product .catalog-card:nth-child(n) { grid-column: auto; min-height: 430px !important; }
  .marketplace-product .catalog-card img { min-height: 430px; }
  .marketplace-product .catalog-card-body { padding: 26px !important; }
  .marketplace-product .catalog-card h3 { font-size: 27px; }
  .marketplace-product .public-products,
  .marketplace-product .advanced-band,
  .marketplace-product .seller-orders,
  .marketplace-product .store-settings,
  .marketplace-product .product-form,
  .marketplace-product .media-workspace { margin-top: 76px !important; }
  .marketplace-product .product-filters { grid-template-columns: 1fr !important; gap: 16px !important; }
  .marketplace-product .product-filters label.wide { grid-column: auto !important; }
  .marketplace-product .public-product-grid { grid-template-columns: 1fr !important; gap: 56px !important; }
  .marketplace-product .public-product-image { min-height: 390px; }
  .marketplace-product .product-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .marketplace-product .product-card-actions .primary-command { grid-column: 1 / -1; }
  .marketplace-product .empty-state,
  .marketplace-product .seller-empty { min-height: 180px; padding-left: 48px !important; }
}

@media (max-width: 340px) {
  .workspace-masthead h3 { font-size: 34px !important; }
  .workspace-heading h2 { font-size: 23px !important; }
  .marketplace-product .hero-content h1 { font-size: 36px !important; }
  .marketplace-product .view-tab { padding-inline: 2px; font-size: 10px; }
}

/* Final polish for the cabinet access band and Marketplace live states. */
body.workspace-authenticated .topbar {
  min-height: 72px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
  background: transparent;
  box-shadow: none;
}
body.workspace-authenticated .topbar .mark {
  border-radius: 0;
  color: var(--editorial-gold-light);
  border: 1px solid var(--editorial-gold);
  background: transparent;
}
body.workspace-authenticated .topbar h1 {
  font-family: var(--editorial-display);
  font-size: 20px;
  font-weight: 400;
}
body.workspace-authenticated #businessProPurchasePanel { margin: 22px 0 44px; }
body.workspace-authenticated .business-pro-purchase-card {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  min-height: 190px;
  padding: 34px 40px;
  border: 0;
  border-top: 1px solid var(--editorial-line-gold);
  border-bottom: 1px solid var(--editorial-line-gold);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(200, 165, 101, .11), transparent 64%);
  box-shadow: none;
}
body.workspace-authenticated .business-pro-purchase-card h3 {
  color: var(--editorial-ivory);
  font-family: var(--editorial-display);
  font-size: 30px;
  font-weight: 400;
}
body.workspace-authenticated .business-pro-purchase-price {
  color: var(--editorial-gold-light);
  font-family: var(--editorial-display);
  font-size: 30px;
  font-weight: 400;
}
body.workspace-authenticated .business-pro-purchase-actions { justify-content: flex-end; }

.marketplace-product .load-status {
  min-height: 18px !important;
  margin: 8px 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--editorial-muted) !important;
  background: transparent !important;
}
.marketplace-product .product-filters {
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr)) !important;
}
.marketplace-product .product-filters label.wide { grid-column: span 2 !important; }
.marketplace-product .advanced-grid,
.marketplace-product .advanced-list { margin-top: 24px; }
.marketplace-product .advanced-item {
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  .marketplace-product .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  body.workspace-authenticated .business-pro-purchase-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  body.workspace-authenticated .business-pro-purchase-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body.workspace-authenticated .topbar { align-items: start; gap: 14px; }
  body.workspace-authenticated #businessProPurchasePanel { margin-bottom: 34px; }
  body.workspace-authenticated .business-pro-purchase-card { padding: 24px 18px; }
  body.workspace-authenticated .business-pro-purchase-actions .button { width: 100%; }
  .marketplace-product .product-filters { grid-template-columns: 1fr !important; }
  .marketplace-product .product-filters label.wide { grid-column: auto !important; }
}

/* Academy and Settings inherit the same architectural restraint. */
.workspace-screen .bpro-course { color: var(--editorial-ivory); }
.workspace-screen .course-toolbar {
  gap: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.workspace-screen .course-toolbar .button {
  min-height: 42px;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-screen .course-toolbar button[aria-selected="true"] {
  color: var(--editorial-gold-light) !important;
  border-bottom-color: var(--editorial-gold) !important;
}
.workspace-screen .course-content,
.workspace-screen .course-mentor-workspace,
.workspace-screen .course-mentor-context,
.workspace-screen .course-mentor-answer,
.workspace-screen .course-mentor-history-card {
  border-radius: 4px !important;
  background: var(--editorial-graphite) !important;
  box-shadow: none !important;
}
.workspace-screen .course-nav details {
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
}
.workspace-screen .course-day[aria-current="step"] { background: rgba(200, 165, 101, .07); }
.workspace-screen .course-notice {
  border-radius: 0 !important;
  background: rgba(200, 165, 101, .06);
}

.c1-settings-shell { grid-template-columns: 190px minmax(0, 1fr) !important; gap: 34px !important; }
.c1-settings-nav {
  top: 18px;
  gap: 0 !important;
  padding: 0 22px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
[dir="rtl"] .c1-settings-nav { padding: 0 0 0 22px !important; border-right: 0 !important; border-left: 1px solid var(--editorial-line) !important; }
.c1-settings-nav-button {
  min-height: 46px;
  padding: 10px 4px !important;
  border-radius: 0 !important;
  border-bottom: 1px solid transparent !important;
  color: var(--editorial-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.c1-settings-nav-button:hover,
.c1-settings-nav-button.active {
  color: var(--editorial-ivory) !important;
  border-bottom-color: var(--editorial-gold) !important;
  background: transparent !important;
}
.c1-settings-intro {
  display: grid;
  align-content: end;
  min-height: 430px !important;
  padding: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(115deg, #111218 0%, #141310 100%) !important;
  box-shadow: none !important;
}
.c1-settings-intro h3 { margin: 14px 0 !important; font-size: 60px !important; font-weight: 400 !important; }
.c1-partner-type,
.c1-settings-section-heading,
.c1-settings-action-panel {
  border: 0 !important;
  border-top: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.c1-partner-type { padding: 38px 0 !important; }
.c1-partner-type h4 { font-size: 46px !important; font-weight: 400 !important; }
.c1-capability-map p {
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.c1-settings-section-heading { min-height: 130px !important; padding: 32px 0 !important; }
.c1-settings-section-heading .c1-eyebrow { color: var(--editorial-ivory) !important; font-family: var(--editorial-display); font-size: 38px !important; font-weight: 400 !important; text-transform: none; }
.c1-settings-section .panel { padding: 28px 0 !important; }
.c1-settings-action-panel { padding: 28px 0 !important; }

@media (max-width: 1100px) {
  .c1-settings-shell { grid-template-columns: 1fr !important; }
  .c1-settings-nav,
  [dir="rtl"] .c1-settings-nav {
    position: static;
    display: flex;
    padding: 0 0 12px !important;
    overflow-x: auto;
    border: 0 !important;
    border-bottom: 1px solid var(--editorial-line) !important;
  }
  .c1-settings-nav-button { flex: 0 0 auto; width: auto; }
}
@media (max-width: 560px) {
  .c1-settings-intro { min-height: 380px !important; padding: 26px 20px !important; }
  .c1-settings-intro h3 { font-size: 42px !important; }
  .c1-partner-type { padding: 28px 0 !important; }
  .c1-partner-type h4 { font-size: 36px !important; }
  .c1-settings-section-heading { padding: 26px 0 !important; }
  .c1-settings-section-heading .c1-eyebrow { font-size: 32px !important; }
}
