/* Discovery stays close to the resources: one introduction, one search, one catalog. */
:root {
  --paper: #f3f4ef;
  --white: #fcfcf9;
  --ink: #141c17;
  --muted: #3d4a41;
  --forest: #1b3f2d;
  --mint: #dfe8dc;
  --soft: #e9ede5;
  --line: #d8ddd3;
  color-scheme: light;
}
.button-mint:hover { background: #d8e3d3; }
.card-save.saved { color: #f9faf6; }
.creator-banner .eyebrow, .creator-banner p { color: #f9faf6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* WCAG 2.2: leave room for a focused control beneath the sticky header. */
html:has(.site-header) { --market-header-offset: 96px; scroll-padding-block-start: var(--market-header-offset); }
html:has(.site-header #mainNav.is-open) { --market-header-offset: 164px; }
#main-content :where(a, button, input, select, textarea, [tabindex]) { scroll-margin-block-start: var(--market-header-offset, 96px); scroll-margin-block-end: 24px; }
.text-button, .cart-item .remove, .breadcrumbs a { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }
.cart-item .remove, .info-proof, .card-author { color: #5a665e; }
.field input, .field select, .field textarea { border-color: #748277; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fcfcf9;
  border-color: #d8ddd3;
  color: #2d3631;
}
.header-inner { max-width: 1440px; min-height: 72px; gap: 38px; }
.site-header .brand {
  color: #141c17;
  font-size: 25px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav { gap: 27px; color: #3d4a41; font-size: 13px; }
.site-header nav a { padding-block: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: #1a422e; }
.site-header nav a[aria-current="page"]::after { bottom: 6px; background: #1b3f2d; }
.site-header .header-actions { gap: 20px; }
.site-header .library-link,
.site-header .icon-button { color: #141c17; }
.site-header .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.site-header .library-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .library-link:hover { color: #1a422e; }
.site-header .icon-button:hover { color: #141c17; background: #e9ede5; }
.site-header .count-badge,
.site-header .cart-count { background: #1b3f2d; color: #ffffff; }
.site-header :is(button, a):focus-visible { outline-color: #143322; }
.site-footer { background: #e9ede5; color: #141c17; border-color: #d0d7cc; padding-block: 30px; }
.site-footer .brand { color: #141c17; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .footer-inner { max-width: 1440px; }
.site-footer .footer-inner p { color: #3d4a41; }
.site-footer .footer-inner > div { font-size: 12px; }
.site-footer .footer-inner > div a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px; color: #1a422e; }
.site-footer a:hover { color: #132e20; }
.site-footer a:focus-visible { outline-color: #143322; }

body:has(.market-catalog) { background: #f3f4ef; }
.market-catalog {
  --paper: #f3f4ef;
  --white: #fcfcf9;
  --ink: #141c17;
  --muted: #3d4a41;
  --line: #d8ddd3;
  --forest: #1b3f2d;
  --mint: #dfe8dc;
  --soft: #e9ede5;
  color: var(--ink);
  min-height: calc(100dvh - 72px);
  padding-bottom: 12px;
  background: var(--paper);
}
.market-catalog .container { max-width: 1440px; padding-inline: 44px; }
.market-catalog button { color: var(--ink); }
.market-catalog .button,
.button { min-height: 44px; }
.market-catalog .text-button:not(.card-author) { color: #1a422e; font-weight: 550; text-underline-offset: 3px; }
.market-catalog .text-button:not(.card-author):hover { color: #141c17; }
.market-catalog :is(button, a, input, select):focus-visible { outline: 2px solid #143322; outline-offset: 3px; }
.market-catalog .eyebrow { font-size: 10px; letter-spacing: .15em; color: #3d4a41; margin-bottom: 11px; }
.market-intro { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; }
.market-intro h1 { font-size: 32px; font-weight: 600; letter-spacing: -.045em; line-height: 1.13; margin: 0 0 8px; }
.market-intro p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.market-catalog .category-ribbon { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 17px; margin: 0; border-bottom: 1px solid var(--line); }
.market-catalog .category-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; font-size: 12px; font-weight: 550; color: #314237; background: #fcfcf9; border: 1px solid #d8ddd3; border-radius: 8px; white-space: nowrap; }
.market-catalog .category-pill svg { width: 16px; height: 16px; }
.market-catalog .category-pill:hover { color: #2d3631; background: #e7ece2; border-color: #748277; }
.market-catalog .category-pill.active { color: #2d3631; background: #dfe8dc; border-color: #748277; font-weight: 650; }
.market-catalog .catalog-section { padding-block: 26px 44px; }
.market-catalog .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.market-catalog .catalog-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); column-gap: 28px; row-gap: 0; align-items: start; }
.market-catalog .filters { display: block; grid-column: 1; grid-row: 1 / span 8; padding: 19px 16px 0; border: 1px solid #d8ddd3; border-radius: 11px; background: #eef1e9; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.filter-heading h2 { margin: 0; color: #2d3631; font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.filter-heading button { min-height: 32px; border: 0; background: transparent; padding: 3px 0; color: #466854 !important; font-size: 12px; }
.filter-heading button:hover { text-decoration: underline; text-underline-offset: 3px; }
.market-catalog .filter-option { min-height: 32px; margin-bottom: 3px; font-size: 12px; color: #5a665e; gap: 9px; cursor: pointer; }
.market-catalog .filter-option input { width: 14px; height: 14px; accent-color: #466854; color-scheme: light; flex-shrink: 0; }
.market-catalog .filter-option > span:nth-child(2) { margin-left: 0; color: #4f5f53; font-size: 12px; }
.market-catalog .filter-option input:checked + span { color: #466854; font-weight: 600; }
.market-catalog .filter-option > span:last-child:not(:nth-child(2)) { margin-left: auto; color: #59695d; font-size: 11px; font-variant-numeric: tabular-nums; }
.market-catalog .select-input { min-height: 39px; max-width: 100%; padding: 8px 27px 8px 11px; border-color: #748277; background: #fcfcf9; color: #2d3631; font-size: 12px; color-scheme: light; }
.market-catalog .filters .select-input { width: 100%; }
.market-catalog .microcopy { font-size: 11px; line-height: 1.65; color: #5a665e; }
.market-catalog .catalog-results { display: contents; }
.market-catalog .catalog-results > * { min-width: 0; }
.market-catalog .catalog-shell .search-wrap,
.market-catalog .catalog-shell .catalog-search,
.market-catalog .catalog-shell .results-toolbar,
.market-catalog .catalog-shell .active-filters,
.market-catalog .catalog-shell .scope-sample-bar,
.market-catalog .catalog-shell #catalogGrid,
.market-catalog .catalog-shell #catalogStatus { grid-column: 2; }
.catalog-search { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 6px 6px 6px 17px; border: 1px solid #748277; border-radius: 10px; background: #fcfcf9; box-shadow: 0 2px 8px #0000000b; }
.catalog-search:focus-within { outline: 2px solid #3f6654; outline-offset: 3px; border-color: #3f6654; box-shadow: none; }
.catalog-search > svg { width: 19px; height: 19px; color: #59695d; }
.catalog-search input { flex: 1; min-width: 0; width: 100%; padding: 7px 0; border: 0; outline: none; background: transparent; color: #2d3631; font-size: 14px; line-height: 1.5; }
.catalog-search input::placeholder { color: #627065; opacity: 1; }
.market-catalog .catalog-search input:focus-visible { outline: none; }
.catalog-search kbd { display: inline-grid; place-items: center; min-width: 22px; height: 23px; border: 1px solid #d1d9cd; border-radius: 5px; color: #5a665e; font-size: 12px; }
.market-catalog .button-mint { background: #1b3f2d; border-color: #1b3f2d; color: #ffffff; font-weight: 650; }
.market-catalog .button-mint:hover { background: #132e20; border-color: #132e20; }
.market-catalog .button-dark { background: #1b3f2d; border-color: #1b3f2d; color: #ffffff; min-height: 44px; }
.market-catalog .button-dark:hover { background: #132e20; border-color: #132e20; }
.market-catalog .filter-mobile { display: none; }
.market-catalog .results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; margin: 14px 0 14px; padding-top: 0; border-top: 0; }
.market-catalog .result-count { font-size: 12px; line-height: 1.5; color: #5a665e; }
.market-catalog .toolbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.market-catalog .view-toggle { padding: 3px; gap: 3px; background: #eef1e9; border-color: #748277; }
.market-catalog .view-toggle button { width: 31px; height: 31px; padding: 6px; color: #5a665e; }
.market-catalog .view-toggle button:hover { background: #e9ede5; }
.market-catalog .view-toggle button.active { background: #dfe8dc; color: #466854; box-shadow: inset 0 0 0 1px #466854; }
.market-catalog .view-toggle svg { width: 15px; height: 15px; }
.market-catalog .active-filters { gap: 8px; margin: 0 0 13px; }
.market-catalog .active-filters:empty { display: none; }
.market-catalog .active-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 10px; background: #dfe8dc; border-color: #748277; color: #314b3a; font-size: 11px; }
/* ==========================================================================
   Upgraded Card System: Marketplace (.product-card), Commissions (.com-card),
   and Creators (.creator-card). Shared across catalog, creator pages, saved,
   and related shelves.
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.detail-related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-list { display: grid; gap: 14px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d9dfd4;
  border-radius: 14px;
  background: #fcfcf9;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 38, 28, .04), 0 4px 12px rgba(24, 38, 28, .03);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .2s, box-shadow .22s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #a6b7a3;
  background: #fcfcf9;
  box-shadow: 0 12px 28px -8px rgba(24, 42, 30, .14), 0 2px 6px rgba(24, 42, 30, .05);
}
.product-card:has(.card-title a:focus-visible) { outline: 2px solid #3f6654; outline-offset: 3px; }
.product-card.is-preview:hover { transform: none; }

.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e6ebe0;
  border: 0;
  border-bottom: 1px solid #e4e9df;
  border-radius: 0;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.product-card:hover .product-image img { transform: scale(1.04); }

.card-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 96px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid rgba(45, 54, 49, .14);
  background: rgba(252, 252, 249, .92);
  color: #36453b;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(18, 30, 22, .12);
  pointer-events: none;
}
.card-label.live-label { background: rgba(45, 82, 62, .94); color: #f7faf5; border-color: rgba(255, 255, 255, .16); }
.card-label.sale-label { background: #c2410c; color: #fff; border-color: rgba(255, 255, 255, .18); }
.card-label.free-label { background: rgba(223, 238, 226, .95); color: #19442c; border-color: rgba(31, 90, 56, .2); }
.card-label.sub-label { background: rgba(30, 48, 72, .9); color: #f4f8ff; border-color: rgba(255, 255, 255, .16); }
.card-label.sample-label { background: rgba(252, 252, 249, .92); color: #46554a; }

.card-media-foot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.card-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(20, 34, 26, .78);
  backdrop-filter: blur(8px);
  color: #f3f7f2;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(12, 22, 16, .18);
}
.card-trust-chip svg { width: 12px; height: 12px; color: #a7e8be; }

.card-float-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button.card-save,
button.card-qv-btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(45, 54, 49, .14);
  background: rgba(252, 252, 249, .92);
  backdrop-filter: blur(8px);
  color: #365442;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(18, 30, 22, .12);
  transition: background .16s, border-color .16s, color .16s, transform .16s, opacity .16s;
}
button.card-save:hover,
button.card-qv-btn:hover { background: #fcfcf9; border-color: #466854; color: #244031; transform: scale(1.06); }
button.card-save.saved { background: #2d5440; border-color: #2d5440; color: #f9faf6; }
button.card-save.saved svg path { fill: currentColor; }
button.card-save svg,
button.card-qv-btn svg { width: 16px; height: 16px; }
button.card-save:focus-visible,
button.card-qv-btn:focus-visible { outline: 2px solid #3f6654; outline-offset: 2px; }
@media (hover: hover) {
  button.card-qv-btn { opacity: 0; transform: translateY(-2px); }
  .product-card:hover button.card-qv-btn,
  .product-card:focus-within button.card-qv-btn,
  .com-card:hover button.card-qv-btn,
  .com-card:focus-within button.card-qv-btn { opacity: 1; transform: translateY(0); }
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 15px;
  min-width: 0;
}
.card-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.card-type {
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5d6e61;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card-ver {
  font-size: 10.5px;
  font-weight: 600;
  color: #536458;
  background: #edf1e9;
  border: 1px solid #d9e0d4;
  border-radius: 6px;
  padding: 1px 6px;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: #26312a;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.card-rating svg { width: 13px; height: 13px; color: #d97706; }
.card-rating strong { font-weight: 700; }
.card-rating span { color: #67756a; font-weight: 500; }

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: #1d2922;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: 2px solid #2f5642; outline-offset: 2px; border-radius: 4px; }
.product-card:hover .card-title a,
.com-card:hover .card-title a { color: #2f5642; }

.card-summary {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #56645a;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #dbe2d6;
  background: #f0f3ec;
  color: #445549;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-tag--more { background: #e8ede3; color: #56665a; }
.tool-tag--mc { background: #e9f2ea; border-color: #cde0d0; color: #275339; }
.tool-tag--earn { background: #fef5e7; border-color: #f0d7a7; color: #92400e; }
.tool-tag--owned { background: #dff1e4; border-color: #b4d8be; color: #17522f; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e7ece3;
  min-width: 0;
}
.card-author {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: -3px 0 -3px -3px;
  padding: 3px 6px 3px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2d3631;
  text-align: left;
  text-decoration: none;
  transition: background .15s;
}
button.card-author:hover { background: #eef2ea; }
.tiny-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfe8dc;
  color: #274434;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(45, 54, 49, .09);
  overflow: hidden;
}
.card-author-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.card-author-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #29352e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.card-author:hover .card-author-name { color: #2f5642; }
.card-author-sub {
  font-size: 11px;
  color: #657368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-price-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-price .price-was { font-size: 11px; color: #7c887f; font-weight: 500; margin: 0 0 1px; }
.card-price-prefix { font-size: 10px; font-weight: 550; color: #637166; }
.card-price-val { font-size: 16px; font-weight: 750; letter-spacing: -.02em; color: #1e372a; }
.card-price-val small { font-size: 11px; font-weight: 600; color: #5b6a5f; }
.card-price.is-free .card-price-val { color: #1d6b42; }

button.card-cart-btn {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid #cbd6c6;
  background: #edf3e9;
  color: #264433;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background .16s, border-color .16s, color .16s, transform .14s;
}
button.card-cart-btn:hover { background: #3d614d; border-color: #3d614d; color: #f9faf6; transform: scale(1.05); }
button.card-cart-btn:active { transform: scale(.96); }
button.card-cart-btn.in-cart { background: #2b4d3b; border-color: #2b4d3b; color: #f9faf6; }
button.card-cart-btn .cart-ico-def,
button.card-cart-btn .cart-ico-hov {
  grid-area: 1 / 1;
  display: inline-grid;
  place-items: center;
  transition: opacity .16s ease, transform .16s ease;
}
button.card-cart-btn .cart-ico-hov { opacity: 0; transform: scale(.7); }
@media (hover: hover) {
  button.card-cart-btn.in-cart:hover {
    background: #fef0ed;
    border-color: #df9f92;
    color: #b42d1f;
  }
  button.card-cart-btn.in-cart:hover .cart-ico-def { opacity: 0; transform: scale(.7); }
  button.card-cart-btn.in-cart:hover .cart-ico-hov { opacity: 1; transform: scale(1); }
}
button.card-cart-btn.in-cart:focus-visible {
  background: #fef0ed;
  border-color: #df9f92;
  color: #b42d1f;
}
button.card-cart-btn.in-cart:focus-visible .cart-ico-def { opacity: 0; transform: scale(.7); }
button.card-cart-btn.in-cart:focus-visible .cart-ico-hov { opacity: 1; transform: scale(1); }
button.card-cart-btn svg { width: 16px; height: 16px; }

/* List view layout */
.product-list .product-card {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 168px;
}
.product-list .product-image {
  width: 100%;
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid #e4e9df;
}
.product-list .card-content { padding: 15px 18px 14px; gap: 7px; }
.product-list .card-kicker-row,
.product-list .card-title { padding-right: 84px; }
.product-list .card-title { font-size: 17px; }
.product-list .card-float-actions { top: 12px; right: 12px; }
.product-list button.card-save,
.product-list button.card-qv-btn {
  background: #f2f5ee;
  border-color: #d7dfd2;
  box-shadow: none;
}
.product-list button.card-save.saved { background: #2d5440; border-color: #2d5440; color: #f9faf6; }
.product-list .card-foot { padding-top: 11px; }

.market-catalog .empty-state { background: #fcfcf9; border-color: #748277; color: #2d3631; padding: 45px 24px; }
.market-catalog .empty-state p { color: #5a665e; }
.market-catalog .empty-state svg { color: #466854; }
.market-catalog .empty-state h2 { font-size: 24px; }
.market-catalog .load-more .button { background: #dfe8dc; border-color: #748277; color: #314b3a; }
.market-catalog .library-note { background: #fcfcf9; border-color: #748277; color: #46554a; }
.market-catalog .library-note .text-button { color: #466854; }

@media (max-width: 1220px) {
  .detail-related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .header-inner { gap: 25px; padding-inline: 28px; }
  .site-header nav { gap: 20px; }
  .site-header .header-actions { gap: 14px; }
  .market-catalog .container { padding-inline: 28px; }
  .market-catalog .catalog-shell { grid-template-columns: 190px minmax(0, 1fr); column-gap: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-list .product-card { grid-template-columns: 186px minmax(0, 1fr); }
  .product-list .product-image { min-height: 156px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  .site-header .header-actions { gap: 11px; }
  .market-catalog .catalog-shell { grid-template-columns: 180px minmax(0, 1fr); column-gap: 19px; }
  .market-catalog .filters { padding-inline: 13px; }
  .product-list .product-card { grid-template-columns: 156px minmax(0, 1fr); }
  .detail-related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-catalog .toolbar-right { gap: 7px; }
  .market-catalog .results-toolbar { flex-wrap: wrap; gap: 10px; }
  .market-catalog .toolbar-right { margin-left: auto; }
}
@media (max-width: 760px) {
  .site-header .header-inner { min-height: 68px; padding-inline: 20px; gap: 0; flex-wrap: wrap; }
  .site-header .brand { font-size: 24px; }
  .site-header .header-actions { margin-left: auto; gap: 13px; }
  .site-header .mobile-menu { display: inline-grid; order: 3; width: 40px; height: 44px; font-size: 22px; margin-left: 10px; }
  .site-header nav { display: none; order: 4; width: 100%; gap: 26px; padding: 6px 0 14px; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding-block: 8px; }
  .site-header nav a[aria-current="page"]::after { bottom: 1px; }
  .site-header .library-link { font-size: 12px; }
  .market-catalog .container { padding-inline: 20px; }
  .market-intro { padding: 22px 0 18px; }
  .market-intro h1 { font-size: 30px; max-width: 450px; margin-bottom: 10px; }
  .market-intro p { font-size: 13px; max-width: 470px; }
  .market-catalog .eyebrow { font-size: 9px; }
  .market-catalog .category-ribbon { gap: 7px; padding-bottom: 20px; }
  .market-catalog .category-pill { font-size: 11px; min-height: 39px; padding: 8px 12px; gap: 6px; }
  .market-catalog .category-pill svg { width: 14px; height: 14px; }
  .market-catalog .catalog-section { padding-top: 20px; }
  .market-catalog .catalog-shell,
  .market-catalog .catalog-results { display: block; }
  .market-catalog .filters { display: none; position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(380px, 100vw); max-width: 100vw; height: 100dvh; margin: 0; padding: 18px 16px 0; border: 0; border-left: 1px solid #d8ddd3; border-radius: 0; background: #fcfcf9; overflow-y: auto; }
  .market-catalog .filters.is-open { display: flex; flex-direction: column; grid-template-columns: none; }
  .market-catalog .filter-heading { position: sticky; top: -18px; z-index: 2; background: #fcfcf9; padding: 14px 0 12px; margin: -18px 0 10px; border-bottom: 1px solid #d8ddd3; }
  .market-catalog .filter-close { display: inline-grid; width: 36px; height: 36px; font-size: 22px; }
  .market-catalog .filter-drawer-foot { display: block; position: sticky; bottom: 0; z-index: 2; margin: auto -16px 0; padding: 12px 16px; background: #fcfcf9; border-top: 1px solid #d8ddd3; }
  .filter-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(24, 35, 25, .48); backdrop-filter: blur(2px); }
  .filter-backdrop[hidden] { display: none !important; }
  .market-catalog .filter-option { min-height: 37px; }
  .market-catalog .filter-option > span:nth-child(2) { font-size: 12px; }
  .market-catalog .filters .select-input { font-size: 12px; }
  .catalog-search { gap: 10px; min-height: 54px; padding-left: 13px; }
  .catalog-search input { font-size: 16px; }
  .catalog-search kbd { display: none; }
  .catalog-search .button { font-size: 12px; padding-inline: 14px; }
  .market-catalog .filter-mobile { display: inline-flex; align-items: center; flex-shrink: 0; gap: 6px; min-height: 44px; padding: 8px 14px; font-size: 12px; background: #fcfcf9; border-color: #748277; color: #1b3f2d; }
  .market-catalog .filter-mobile svg { width: 14px; height: 14px; }
  .market-catalog .results-toolbar { flex-wrap: wrap; margin: 14px 0 12px; padding-top: 0; border-top: 0; gap: 10px; }
  .market-catalog .result-count { font-size: 11px; }
  .market-catalog .toolbar-right .select-input { min-height: 44px; max-width: 170px; font-size: 12px; }
  .market-catalog .view-toggle button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-list .product-card { grid-template-columns: 128px minmax(0, 1fr); min-height: 144px; }
  .product-list .product-image { min-height: 144px; }
  .product-list .card-content { padding: 13px 14px 12px; }
  .product-list .card-title { font-size: 16px; }
  .site-footer .footer-inner { padding-inline: 20px; gap: 17px; }
  .site-footer .footer-inner > div { gap: 16px; font-size: 12px; }
}
@media (max-width: 600px) {
  .product-grid,
  .detail-related .product-grid,
  .com-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .market-intro h1 { font-size: 29px; max-width: 330px; }
  /* One sideways-scrolling row, so the first resource starts higher on a phone. */
  .market-catalog .category-ribbon { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 12px; margin-inline: -3px; scrollbar-width: none; }
  .market-catalog .category-ribbon::-webkit-scrollbar { display: none; }
  .market-catalog .category-pill { flex: 0 0 auto; }
  .market-catalog .catalog-section { padding-top: 19px; }
  .market-catalog .results-toolbar { gap: 9px; }
  .market-catalog .toolbar-right { width: 100%; justify-content: flex-start; gap: 8px; }
  .market-catalog .toolbar-right .select-input { flex: 1; min-width: 0; max-width: none; }
  .market-catalog .view-toggle { margin-left: auto; }
  .product-list .product-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 134px; }
  .product-list .product-image { min-height: 134px; }
  .product-list .card-label { left: 6px; top: 6px; font-size: 9px; padding: 3px 6px; max-width: calc(100% - 12px); }
  .product-list .card-media-foot { display: none; }
  .product-list .card-content { padding: 11px 12px 10px; gap: 5px; }
  .product-list .card-kicker-row,
  .product-list .card-title { padding-right: 72px; }
  .product-list .card-float-actions { right: 8px; top: 8px; gap: 4px; }
  .product-list button.card-save,
  .product-list button.card-qv-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
  .product-list button.card-save svg,
  .product-list button.card-qv-btn svg { width: 14px; height: 14px; }
  .product-list .card-title { font-size: 15px; }
  .product-list .card-summary { font-size: 12px; }
  .product-list .card-author-sub { display: none; }
  .product-list .card-foot { padding-top: 9px; }
  .market-catalog .filters { gap: 0 16px; padding: 16px; }
}
@media (pointer: coarse) {
  .site-header .icon-button,
  .site-header .mobile-menu { min-width: 44px; min-height: 44px; }
  .market-catalog .category-pill,
  .market-catalog .filter-mobile,
  .market-catalog .filter-option,
  .market-catalog .select-input,
  .market-catalog .view-toggle button { min-height: 44px; }
  button.card-save,
  button.card-qv-btn,
  button.card-cart-btn { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
  .product-list .card-kicker-row,
  .product-list .card-title { padding-right: 92px; }
}
@media (max-width: 360px) {
  .site-header .header-inner { padding-inline: 12px; }
  .site-header .brand { font-size: 21px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .library-link { font-size: 11px; }
  .site-header .mobile-menu { margin-left: 4px; }
  .market-catalog .container { padding-inline: 16px; }
}
@media (max-height: 400px) {
  .site-header { position: static; }
  html:has(.site-header) { --market-header-offset: 24px; }
}
@media (forced-colors: active) {
  .site-header, .site-footer, .market-catalog { background: Canvas; color: CanvasText; }
  .site-header .brand-symbol, .site-footer .brand-symbol { forced-color-adjust: none; }
  .market-catalog :is(.category-pill, .view-toggle, .card-save, .card-cart-btn, .select-input, .catalog-search, .active-chip),
  .card-label,
  .com-pill { border-color: ButtonText; }
  .market-catalog .category-pill.active,
  .market-catalog .view-toggle button.active,
  button.card-save.saved,
  button.card-cart-btn.in-cart { color: HighlightText !important; background: Highlight; border: 1px solid Highlight; }
  .site-header :is(button, a):focus-visible,
  .site-footer a:focus-visible,
  .market-catalog :is(button, a, input, select):focus-visible,
  .market-catalog .catalog-search:focus-within { outline: 2px solid Highlight; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image img,
  .com-card,
  .com-pic img,
  .creator-card,
  .creator-mosaic img,
  .card-save,
  .card-cart-btn,
  .card-cart-btn .cart-ico-def,
  .card-cart-btn .cart-ico-hov,
  .com-cta svg,
  .creator-cta svg { transition: none; }
  .product-card:hover,
  .com-card:hover,
  .creator-card:hover { transform: none; }
  .product-card:hover .product-image img,
  .com-card:hover .com-pic img,
  .creator-card:hover .creator-mosaic img { transform: none; }
}

/* Buyer · Seller, the same two-part switch as the shared header (site-header.css .sh__acct): the two
   accounts' doors. A signed-out visitor's local sample library keeps its own My library link. */
.acct-pill { display: inline-flex; border: 1px solid #1b3f2d; border-radius: 8px; font-size: 13px; }
.acct-pill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #1a422e; font-weight: 600; white-space: nowrap; }
.acct-pill a + a { border-left: 1px solid #1b3f2d; }
.acct-pill a:hover { background: #e9ede5; }
.acct-pill a[aria-current=page] { background: #1b3f2d; color: #ffffff; }
.acct-pill a:first-child { border-radius: 7px 0 0 7px; }
.acct-pill a:last-child { border-radius: 0 7px 7px 0; }
.acct-pill a:focus-visible { outline-offset: -4px; }
@media (max-width: 650px) { .acct-pill a { padding: 0 12px; font-size: 12px; } }
/* Brand, cart, pill and menu share one row down to 360px phones. */
@media (max-width: 420px) {
  .acct-pill a { padding: 0 9px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .mobile-menu { margin-left: 6px; }
}
@media (pointer: coarse) { .acct-pill a { min-height: 44px; } }

/* "Sign in" names the two doors on wide screens. On phones the menu carries Buyer sign in, Sell and
   Sign out, and the pill keeps only the buyer's half ("Sign in" or "My library"), so brand, cart,
   pill and menu stay on one row whatever the seller half would have said. */
.acct-label { margin-right: -10px; font-size: 13px; color: #3d4a41; white-space: nowrap; }
.acct-out { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: #1a422e; }
.acct-label[hidden], .site-header nav .nav-extra[hidden] { display: none; }
.site-header nav button.nav-extra { align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.acct-narrow { display: none; }
@media (max-width: 760px) { .acct-label, .site-header .acct-out { display: none; } .site-header nav .nav-extra:not([hidden]) { display: inline-flex; align-items: center; } .site-header nav { row-gap: 0; } }
@media (max-width: 520px) { .acct-wide, .acct-pill .acct-seller { display: none; } .acct-narrow { display: inline; } .acct-pill .acct-buyer { border-radius: 7px; } }
.market-catalog .filter-show-all { margin-top: 6px; font-size: 11px; min-height: 44px; }
.commission-steps { margin: 12px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; color: #333d36; }
.commission-steps li + li { margin-top: 4px; }
/* Commissions: the how-it-works strip and creator-first cards. The cards also sit under a commission listing. */
.com-how { margin: 0 0 22px; padding: 18px 20px; border: 1px solid #d8ddd3; border-radius: 11px; background: #eef1e9; }
.com-how h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.com-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.com-how li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; align-content: start; font-size: 13px; line-height: 1.5; }
.com-how li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #466854; color: #f9faf6; font-size: 12px; font-weight: 650; }
.com-how li strong { font-weight: 650; color: #2d3631; }
.com-how li span { grid-column: 2; font-size: 12px; color: #5a665e; }
.com-how > p { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #5a665e; }
.com-how a { color: #466854; text-decoration: underline; text-underline-offset: 3px; }
.com-browse { padding-bottom: 44px; }
.com-browse .category-ribbon { margin-top: 14px; border-bottom: 0; }
.com-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1120px) { .com-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 640px) { .com-grid { grid-template-columns: 1fr; } }

.com-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d9dfd4;
  border-radius: 14px;
  background: #fcfcf9;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 38, 28, .04), 0 4px 12px rgba(24, 38, 28, .03);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .2s, box-shadow .22s;
}
.com-card:hover {
  transform: translateY(-3px);
  border-color: #a6b7a3;
  box-shadow: 0 12px 28px -8px rgba(24, 42, 30, .14), 0 2px 6px rgba(24, 42, 30, .05);
}
.com-card:has(.card-title a:focus-visible) { outline: 2px solid #3f6654; outline-offset: 3px; }

.com-pic {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e6ebe0;
  border-bottom: 1px solid #e4e9df;
  overflow: hidden;
}
.com-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 30, 22, .36) 0%, rgba(18, 30, 22, .04) 36%, transparent 56%);
  pointer-events: none;
  z-index: 1;
}
.com-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.com-card:hover .com-pic img { transform: scale(1.04); }
.com-card.is-full .com-pic img { filter: saturate(.82); }

.com-pic-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 92px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.com-pic-top .card-label { position: static; max-width: none; }
.com-pic-foot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.com-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(18, 30, 22, .14);
}
.com-pill-open { background: rgba(252, 252, 249, .94); color: #1b442d; border: 1px solid rgba(35, 92, 58, .18); }
.com-pill-full { background: rgba(254, 242, 236, .95); color: #9a3412; border: 1px solid rgba(194, 65, 12, .22); }
.com-pill-sample { background: rgba(252, 252, 249, .92); color: #46554a; border: 1px solid rgba(45, 54, 49, .15); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .22);
  flex-shrink: 0;
}
.com-mode-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 30, 22, .74);
  backdrop-filter: blur(8px);
  color: #f6f9f4;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.com-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 14px 16px 15px; min-width: 0; }
.com-body > * { margin: 0; }
.com-by { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.com-card button.com-creator-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 -2px -3px;
  padding: 2px 7px 2px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f3e34;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  transition: background .15s, color .15s;
}
.com-card button.com-creator-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-card button.com-creator-btn:hover { background: #eef2ea; color: #224432; }
.com-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfe8dc;
  color: #274434;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(45, 54, 49, .09);
  overflow: hidden;
}
.com-done-pill {
  font-size: 10.5px;
  font-weight: 650;
  color: #1f5436;
  background: #e7f2ea;
  border: 1px solid #c8dfc9;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.com-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  color: #56645a;
  overflow-wrap: anywhere;
}
.com-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.com-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f0f3ec;
  border: 1px solid #dfe5da;
  color: #46574c;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.2;
}
.com-chip svg { width: 13px; height: 13px; color: #546a5c; }
.com-chip--escrow { background: #ebf3ec; border-color: #cfe0d2; color: #244c36; }
.com-chip--escrow svg { color: #2b6946; }

.com-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e7ece3;
}
.com-price-stack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.com-price-label { font-size: 10.5px; font-weight: 550; color: #637166; line-height: 1.2; }
.com-price { font-size: 17px; font-weight: 750; letter-spacing: -.02em; color: #1e372a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.com-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #edf3e9;
  border: 1px solid #ced8c9;
  color: #244031;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s, border-color .18s, color .18s;
}
.com-cta svg { width: 14px; height: 14px; transition: transform .18s; }
.com-card:hover .com-cta { background: #3d614d; border-color: #3d614d; color: #f9faf6; }
.com-card:hover .com-cta svg { transform: translateX(2px); }

.com-proof { font-size: 12px; font-weight: 500; color: #5a665e; }
.detail-info > .com-proof { margin: 8px 0 0; }
.rating-stars { color: #b45309; letter-spacing: 1px; }
@media (max-width: 760px) {
  .com-how { padding: 15px 16px; }
  .com-how ol { grid-template-columns: 1fr; gap: 11px; }
  .com-how li { align-items: start; }
}
.scope-sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 11px 15px; margin: 0 0 16px; border: 1px solid #c8d2c2; border-radius: 10px; background: #eef1e9; font-size: 12px; color: #46554a; }
.scope-sample-bar[hidden] { display: none !important; }
.scope-sample-copy { display: flex; align-items: center; gap: 9px; min-width: 0; line-height: 1.5; }
.scope-sample-copy svg { flex: none; width: 16px; height: 16px; color: #466854; }
.scope-sample-copy strong { color: #2d3631; font-weight: 650; }
.com-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 14px 0 12px; }
.com-filter-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.com-filter-pill { min-height: 36px; padding: 7px 12px; border: 1px solid #d8ddd3; border-radius: 8px; background: #fcfcf9; color: #4f5f53; font-size: 12px; font-weight: 550; cursor: pointer; }
.com-filter-pill:hover { background: #e7ece2; color: #2d3631; border-color: #748277; }
.com-filter-pill.active, .com-filter-pill[aria-pressed="true"] { background: #dfe8dc; border-color: #748277; color: #2d3631; font-weight: 650; }
.com-open { border-color: #b7ceb8; background: #e8f1e6; color: #2d5a43; font-weight: 600; }
#comActiveFilters { margin-bottom: 12px; }
#comActiveFilters:empty { display: none; }
.saved-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
.saved-filters { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.saved-pill { min-height: 36px; padding: 7px 12px; border: 1px solid #d8ddd3; border-radius: 8px; background: #fcfcf9; color: #4f5f53; font-size: 12px; font-weight: 550; cursor: pointer; }
.saved-pill:hover { background: #e7ece2; color: #2d3631; border-color: #748277; }
.saved-pill.active { background: #dfe8dc; border-color: #748277; color: #2d3631; font-weight: 650; }
.saved-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid #c1ceba; border-radius: 10px; background: #eef1e9; font-size: 13px; }
.market-catalog .product-grid:has(.com-card) { align-items: stretch; }

/* Creator Directory Cards */
.creator-controls { display: grid; gap: 14px; margin: 0 0 26px; }
.creator-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.creator-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.creator-open-badge { display: inline-block; padding: 3px 8px; border: 1px solid #b7ceb8; border-radius: 5px; background: #e8f1e6; color: #2d5a43; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.creator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 4px 0 56px; align-items: stretch; }
@media (max-width: 1240px) { .creator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 580px) { .creator-grid { grid-template-columns: 1fr; } }

.creator-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid #d9dfd4;
  border-radius: 14px;
  background: #fcfcf9;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 38, 28, .04), 0 4px 12px rgba(24, 38, 28, .03);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .2s, box-shadow .22s;
}
.creator-card:hover {
  transform: translateY(-3px);
  border-color: #a6b7a3;
  box-shadow: 0 12px 28px -8px rgba(24, 42, 30, .14), 0 2px 6px rgba(24, 42, 30, .05);
}
.creator-card:has(.creator-name a:focus-visible) { outline: 2px solid #3f6654; outline-offset: 3px; }

.creator-cover {
  position: relative;
  height: 112px;
  background: #dde5d8;
  border-bottom: 1px solid #e4e9df;
  overflow: hidden;
}
.creator-mosaic {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: #fcfcf9;
}
.creator-mosaic.n-1 { grid-template-columns: 1fr; }
.creator-mosaic.n-2 { grid-template-columns: 1fr 1fr; }
.creator-mosaic.n-3 { grid-template-columns: 1.35fr 1fr 1fr; }
.creator-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.creator-card:hover .creator-mosaic img { transform: scale(1.045); }
.creator-cover-pattern {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 86% 18%, rgba(216, 246, 139, .24) 0%, transparent 46%),
    radial-gradient(circle at 14% 86%, rgba(164, 206, 174, .22) 0%, transparent 48%),
    linear-gradient(135deg, #274334 0%, #3d604c 58%, #547962 100%);
}
.creator-cover-badge { position: absolute; top: 9px; right: 9px; z-index: 2; pointer-events: none; }

.creator-body { display: flex; flex: 1; flex-direction: column; padding: 0 16px 16px; min-width: 0; }
.creator-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.creator-avatar {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border-radius: 50%;
  border: 3px solid #fcfcf9;
  background: #d7e4d3;
  color: #1e3b2c;
  font-size: 18px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(20, 35, 25, .14);
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.creator-since { font-size: 11px; font-weight: 550; color: #67756a; padding-bottom: 4px; white-space: nowrap; }

.creator-card h2.creator-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: #1d2922;
  overflow-wrap: anywhere;
}
.creator-card h2.creator-name a { color: inherit; text-decoration: none; }
.creator-card h2.creator-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.creator-card h2.creator-name a:focus-visible { outline: 2px solid #2f5642; outline-offset: 2px; border-radius: 4px; }
.creator-card:hover h2.creator-name a { color: #2f5642; }

.creator-depts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; }
.creator-bio {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.52;
  color: #56645a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.95em;
}
.creator-card p { min-height: 0; }
.creator-card p.creator-bio { min-height: 2.95em; }

.creator-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: auto;
  margin-bottom: 12px;
  padding: 9px 4px;
  border-radius: 10px;
  background: #f2f5ee;
  border: 1px solid #e2e8dc;
}
.creator-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding-inline: 3px;
}
.creator-stat + .creator-stat { border-left: 1px solid #dde4d6; }
.creator-stat strong { font-size: 14px; font-weight: 750; color: #1f372a; line-height: 1.2; font-variant-numeric: tabular-nums; }
.creator-stat span { font-size: 10px; font-weight: 550; color: #627065; line-height: 1.3; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.creator-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #edf3e9;
  border: 1px solid #ced8c9;
  color: #244031;
  font-size: 12.5px;
  font-weight: 650;
  transition: background .18s, border-color .18s, color .18s;
}
.creator-cta svg { width: 15px; height: 15px; transition: transform .18s; }
.creator-card:hover .creator-cta { background: #3d614d; border-color: #3d614d; color: #f9faf6; }
.creator-card:hover .creator-cta svg { transform: translateX(3px); }
.creator-section-title { font-size: 20px; font-weight: 650; margin: 28px 0 16px; }

/* Matching loading skeleton card proportions */
.skeleton-card { border-radius: 14px; padding: 0 0 16px; overflow: hidden; gap: 11px; }
.skeleton-card .skeleton-box { aspect-ratio: 16 / 10; border-radius: 0; }
.skeleton-card .skeleton-line { margin-inline: 16px; width: calc(100% - 32px); }
.skeleton-card .skeleton-line--sm { width: 52%; }
#cartDialog.drawer[open] { display: flex; flex-direction: column; width: min(440px, 100vw); padding: 0; overflow: hidden; background: #fcfcf9; border: 0; border-left: 1px solid #d8ddd3; border-radius: 16px 0 0 16px; box-shadow: -16px 0 42px rgba(24, 35, 25, .16); }
#cartDialog .dialog-head { padding: 20px 22px 16px; margin: 0; border-bottom: 1px solid #d8ddd3; background: #fcfcf9; flex-shrink: 0; }
.cart-head-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
#cartDialog #cartTitle { font-size: 21px; font-weight: 650; letter-spacing: -.03em; margin: 0; color: #2d3631; }
.cart-head-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #dfe8dc; color: #314b3a; font-size: 12px; font-weight: 650; }
.cart-head-count[hidden], .cart-clear-btn[hidden] { display: none !important; }
.dialog-head-actions { display: inline-flex; align-items: center; gap: 10px; }
.cart-clear-btn { color: #466854; font-size: 12px; font-weight: 550; }
.cart-clear-btn:hover { color: #2d3631; }
#cartBody { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 11px; }
.cart-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d8ddd3; border-radius: 11px; background: #fff; transition: border-color .15s, background .15s; }
.cart-card:hover { border-color: #a9b6a3; }
.cart-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid #dfe3da; background: #e8ede2; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; display: grid; gap: 2px; }
.cart-kicker { font-size: 9.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #59695d; }
.cart-info h3 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; color: #2d3631; }
.cart-info h3 a:hover { color: #466854; text-decoration: underline; text-underline-offset: 2px; }
.cart-info p { margin: 0; font-size: 11.5px; color: #5a665e; line-height: 1.4; overflow-wrap: anywhere; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; align-self: stretch; }
.cart-line-price { font-size: 14.5px; font-weight: 650; color: #2d3631; white-space: nowrap; }
.cart-remove-btn { min-height: 26px; padding: 2px 6px; margin-right: -6px; border: 0; border-radius: 5px; background: transparent; color: #667369; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.cart-remove-btn:hover { color: #9d3629; background: #fbefe9; text-decoration: none; }
.cart-foot { flex-shrink: 0; padding: 16px 22px 20px; border-top: 1px solid #d8ddd3; background: #f2f5ed; display: grid; gap: 12px; }
.cart-summary { display: grid; gap: 6px; }
.cart-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #5a665e; }
.cart-sum-row.is-total { font-size: 14px; color: #2d3631; font-weight: 600; }
.cart-sum-row.is-total strong { font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: #233d31; }
.cart-checkout-btn { background: #466854; border-color: #466854; color: #f9faf6; font-size: 13.5px; font-weight: 650; min-height: 46px; }
.cart-checkout-btn:hover { background: #385544; }
.cart-trust { margin: 0; text-align: center; font-size: 11px; line-height: 1.5; color: #5a665e; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 28px; gap: 10px; }
.cart-empty-icon { width: 52px; height: 52px; border-radius: 50%; background: #dfe8dc; color: #314b3a; display: grid; place-items: center; margin-bottom: 4px; }
.cart-empty h3 { margin: 0; font-size: 19px; color: #2d3631; }
.cart-empty p { margin: 0 0 8px; max-width: 280px; font-size: 13px; color: #5a665e; }
@media (max-width: 650px) {
  #cartDialog.drawer[open] { width: 100vw; border-radius: 0; border-left: 0; }
  #cartDialog .dialog-head { padding: 16px 18px 14px; }
  .cart-scroll { padding: 14px 18px; }
  .cart-foot { padding: 14px 18px 18px; }
}
/* Sales, compatibility pills, disclosures, gallery zoom lightbox, and creator cross-sell shelves */
.price-was { color: #7a857d; font-size: .84em; font-weight: 450; text-decoration: line-through; margin-right: 4px; }
.sale-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; letter-spacing: .01em; vertical-align: 2px; margin-left: 4px; }
.compat-block { margin: 18px 0 6px; }
.compat-block h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: #314b3a; letter-spacing: 0; }
.compat-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.compat-pill { min-height: 32px; padding: 5px 11px; border: 1px solid #d0d8cb; border-radius: 999px; background: #fcfcf9; color: #314b3a; font-size: 12px; font-weight: 550; cursor: pointer; }
.compat-pill:hover { background: #dfe8dc; border-color: #748277; }
.compat-pill.is-tag { background: #eef1e9; color: #46554a; }
.whats-new-box { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #c8d2c2; border-radius: 10px; background: #f3f6ee; }
.whats-new-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.whats-new-head strong { font-size: 13.5px; color: #233d31; }
.whats-new-box p { margin: 0; font-size: 13px; line-height: 1.55; color: #333d36; }
.disclosures-box { margin: 18px 0; padding: 14px 16px; border: 1px solid #e2d5c4; border-radius: 10px; background: #fdfaf5; }
.disclosures-box h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: #6e3c1e; letter-spacing: 0; }
.disclosures-box ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: #4a3f35; }
.disclosures-box li + li { margin-top: 4px; }
.detail-utility-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.detail-utility-row .text-button { font-size: 12px; color: #5a665e; }
.detail-utility-row .text-button:hover { color: #2d3631; }
.verified-source-wrap { margin: 6px 0 8px; }
.verified-source-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #e1efe4; color: #16552f; border: 1px solid #b6d7bf; font-size: 12px; font-weight: 650; }
.creator-profile-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.gallery-zoom { display: block; width: 100%; border: 0; padding: 0; background: none; position: relative; cursor: zoom-in; }
.gallery-zoom img { width: 100%; display: block; }
.gallery-zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(24, 35, 25, .72); color: #f9faf6; font-size: 11px; font-weight: 550; opacity: 0; transition: opacity .15s; pointer-events: none; }
.gallery-zoom:hover .gallery-zoom-hint, .gallery-zoom:focus-visible .gallery-zoom-hint { opacity: 1; }
#lightboxDialog.lightbox-dialog[open] { width: min(96vw, 1120px); max-width: 96vw; max-height: 92vh; padding: 18px; border: 0; border-radius: 14px; background: #141c17; color: #f3f4ef; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
#lightboxDialog::backdrop { background: rgba(15, 22, 18, .82); }
.lightbox-close { position: absolute; top: 10px; right: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; border-radius: 999px; }
.lightbox-close:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.lightbox-nav { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; width: 42px; height: 42px; font-size: 26px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.lightbox-stage { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(92vh - 90px); width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.lightbox-stage figcaption { font-size: 12.5px; color: #cbd5c0; text-align: center; }
@media (max-width: 650px) {
  .lightbox-nav { width: 34px; height: 34px; font-size: 20px; }
  .gallery-zoom-hint { opacity: .9; }
}
.bundle-shelf { margin: 28px 0; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.bundle-card { padding: 16px; border: 1px solid #d0d8cb; border-radius: 12px; background: #fbfcf9; display: grid; gap: 10px; }
.bundle-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bundle-badge { padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; }
.bundle-price { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.creator-reply { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid #233d31; background: #f3f6ee; border-radius: 0 6px 6px 0; font-size: 13px; }
.promo-bar { display: flex; gap: 8px; margin: 10px 0; }
.promo-bar input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #cbd3c5; border-radius: 8px; font: inherit; font-size: 13px; }
.promo-msg { margin: 4px 0 0; font-size: 12px; color: #314b3a; }
.promo-msg.is-err { color: #991b1b; }

.game-subbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.game-subpill { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #cbd3c5; background: #fff; color: #1f2d24; border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.game-subpill.active { background: #193124; color: #fff; border-color: #193124; }
.facet-cnt { opacity: 0.72; font-weight: 500; font-size: 12px; }

.tier-pick { margin-bottom: 14px; }
.tier-card { cursor: pointer; }
.pwyw-box { display: grid; gap: 8px; padding: 12px; border: 1px solid #d0d8cb; border-radius: 10px; background: #fbfcf9; margin-bottom: 12px; }
.pwyw-box label { font-size: 12px; font-weight: 600; color: #24382c; }
.pwyw-input-row { display: flex; align-items: center; gap: 6px; border: 1px solid #cbd3c5; background: #fff; border-radius: 8px; padding: 6px 10px; }
.pwyw-input-row span { font-weight: 700; color: #314b3a; }
.pwyw-input-row input { border: 0; outline: none; width: 100%; font: inherit; font-size: 15px; font-weight: 600; }
.pwyw-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.affiliate-box { margin-top: 12px; padding: 10px 12px; border: 1px solid #d0d8cb; border-radius: 10px; background: #f3f7ef; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.rich-previews { display: grid; gap: 14px; margin: 16px 0; }
.rp-card { border: 1px solid #d0d8cb; border-radius: 12px; background: #fff; padding: 14px; display: grid; gap: 10px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-head h3 { margin: 2px 0 0; font-size: 15px; }
.rp-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-stage { position: relative; border-radius: 10px; overflow: hidden; background: #f3f6ee; display: grid; place-items: center; min-height: 180px; }
.rp-stage canvas { max-width: 100%; height: auto; display: block; cursor: grab; user-select: none; }
.rp-stage-page canvas { cursor: default; }
.rp-status { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; background: rgba(255,255,255,0.82); font-size: 13px; color: #314b3a; pointer-events: none; }
.rp-status[hidden] { display: none; }
.rp-audio-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-audio-bar canvas { flex: 1; min-width: 180px; height: 64px; border-radius: 8px; background: #f6f8f3; cursor: pointer; }
.rp-note { margin: 0; }

.lf-head-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lf-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.lf-card { border: 1px solid #d0d8cb; border-radius: 12px; background: #fff; padding: 16px; display: grid; gap: 10px; }
.lf-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lf-budget { font-weight: 700; font-size: 13px; color: #193124; background: #e8efe2; padding: 3px 9px; border-radius: 999px; }
.lf-card h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.lf-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; color: #475569; }

.rp-stage-compare canvas { cursor: ew-resize; }
.rp-compare-range { display: flex; align-items: center; gap: 10px; }
.rp-compare-range input[type="range"] { flex: 1; accent-color: #193124; }
.slot-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e1efe4; color: #16552f; border: 1px solid #b6d7bf; }
.slot-pill.is-full { background: #fef3c7; color: #92400e; border-color: #f3d28f; }
.collab-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; font-size: 12px; color: #46554a; }
.collab-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #eef1e9; border: 1px solid #d0d8cb; color: #233d31; font-weight: 600; text-decoration: none; }
.collab-pill:hover { background: #dfe8dc; }
.queue-board { margin: 20px 0 26px; padding: 16px 18px; border: 1px solid #d0d8cb; border-radius: 12px; background: #fbfcf9; }
.queue-board h2 { margin: 0 0 4px; font-size: 17px; }
.queue-list { display: grid; gap: 8px; margin-top: 12px; }
.queue-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #dfe5da; border-radius: 9px; background: #fff; font-size: 13.5px; }
.queue-pos { font-weight: 800; color: #466854; margin-right: 6px; }
.queue-stage { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eef1e9; color: #314b3a; }
.queue-stage.st-sketching { background: #e0f2fe; color: #075985; }
.queue-stage.st-in_progress { background: #fef3c7; color: #92400e; }
.queue-stage.st-polishing { background: #ede9fe; color: #5b21b6; }
.queue-stage.st-delivered { background: #dcfce7; color: #166534; }
.gift-btn { margin-top: 6px; }
.tier-upgrade-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e1efe4; color: #16552f; font-size: 11px; font-weight: 700; margin-left: 4px; }
.waitlist-btn { margin-top: 6px; }



/* ==========================================================================
   Wave: Sticky Mini Cart, Quick View, Multi-Image Scrub, Follow on Creator
   Cards, Category-Tailored Default Covers, Freshness Badges, Instant Search
   Suggestions, Recently Viewed Shelf, and Dark Mode Theme.
   ========================================================================== */

/* 1. Multi-image hover scrub dots */
.card-dots {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16, 26, 20, .56);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  transition: width .16s ease, background .16s ease;
}
.card-dot.active { width: 14px; background: #fff; }
.com-pic .card-dots { bottom: 38px; }

/* 2. Freshness badge */
.tool-tag--fresh {
  background: #e2f5ec;
  border-color: #b4dfc9;
  color: #155c3e;
}

/* 3. Category-tailored default covers */
.card-art-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  user-select: none;
  --art-a: #dce8de;
  --art-b: #c7dbc9;
  --art-ink: #224432;
  --art-ring: rgba(34, 68, 50, .14);
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .55) 0%, transparent 45%),
              linear-gradient(135deg, var(--art-a) 0%, var(--art-b) 100%);
  color: var(--art-ink);
}
.card-art-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: radial-gradient(var(--art-ink) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.card-art-medallion {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--art-ring);
  box-shadow: 0 8px 20px -8px rgba(18, 34, 24, .22);
  display: grid;
  place-items: center;
  color: var(--art-ink);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.product-card:hover .card-art-medallion,
.com-card:hover .card-art-medallion { transform: scale(1.06) rotate(-2deg); }
.card-art-medallion svg { width: 24px; height: 24px; }
.card-art-mono { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.card-art-kicker {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .84;
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art-games { --art-a: #dcece0; --art-b: #bfd9c7; --art-ink: #1d4a31; --art-ring: rgba(29, 74, 49, .16); }
.art-code { --art-a: #dce8ec; --art-b: #bfd4dc; --art-ink: #1c4454; --art-ring: rgba(28, 68, 84, .16); }
.art-design { --art-a: #ece7dc; --art-b: #dad0be; --art-ink: #4f4126; --art-ring: rgba(79, 65, 38, .16); }
.art-art { --art-a: #efe1e6; --art-b: #dec5cf; --art-ink: #5d2c40; --art-ring: rgba(93, 44, 64, .16); }
.art-3d { --art-a: #e2e4f0; --art-b: #c9cee3; --art-ink: #2c355c; --art-ring: rgba(44, 53, 92, .16); }
.art-media { --art-a: #e6e0ee; --art-b: #d0c5df; --art-ink: #412d5c; --art-ring: rgba(65, 45, 92, .16); }
.art-study { --art-a: #ede9da; --art-b: #dcd3b9; --art-ink: #4e4220; --art-ring: rgba(78, 66, 32, .16); }
.art-commission { --art-a: #e4eae1; --art-b: #ccd8c7; --art-ink: #244533; --art-ring: rgba(36, 69, 51, .16); }
.product-list .card-art-fallback { gap: 6px; padding: 10px; }
.product-list .card-art-medallion { width: 42px; height: 42px; border-radius: 12px; }
.product-list .card-art-medallion svg { width: 20px; height: 20px; }
.product-list .card-art-kicker { font-size: 9px; }

/* 4. Creator card one-click Follow button */
.creator-card button.creator-follow-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 5px 11px;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid #c5d3bf;
  background: #edf3e9;
  color: #224030;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.creator-card button.creator-follow-btn svg { width: 13px; height: 13px; }
.creator-card button.creator-follow-btn:hover { background: #3a5f4b; border-color: #3a5f4b; color: #f9faf6; }
.creator-card button.creator-follow-btn.is-following { background: #2b4d3b; border-color: #2b4d3b; color: #f9faf6; }
.creator-card button.creator-follow-btn.is-following:hover { background: #fef0ed; border-color: #df9f92; color: #b42d1f; }
.creator-follow-btn .follow-cnt {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.creator-follow-btn.is-following .follow-cnt { background: rgba(255, 255, 255, .18); }
.creator-since-line { font-size: 11px; font-weight: 550; color: #67756a; margin: -2px 0 8px; }

/* 5. Header Live Cart Pill (expands smoothly when cart has items) */
.site-header .cart-toggle {
  transition: background .16s, border-color .16s, color .16s, padding .16s;
}
.site-header .cart-toggle.has-items {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid #c3d1bd;
  background: #edf3e9;
  color: #214030;
  font-size: 13px;
}
.site-header .cart-toggle.has-items:hover {
  background: #dfe9db;
  border-color: #93aa8e;
  color: #193225;
}
.site-header .cart-toggle.has-items svg { width: 17px; height: 17px; }
.site-header .cart-toggle.has-items .cart-count {
  position: static;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.site-header .cart-total {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 7px;
  border-left: 1px solid rgba(45, 84, 64, .2);
}
@media (max-width: 650px) {
  .site-header .cart-toggle.has-items {
    display: inline-grid;
    width: 38px;
    padding: 0;
    gap: 0;
    border-radius: 8px;
    border-color: transparent;
    background: transparent;
    color: #46544a;
  }
  .site-header .cart-toggle.has-items .cart-count {
    position: absolute;
    top: 0;
    right: -1px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
  }
  .site-header .cart-total { display: none; }
}

/* 6. Quick View Modal */
#quickViewDialog.qv-modal {
  width: min(820px, calc(100vw - 28px));
  padding: 20px 22px 22px;
  border-radius: 16px;
  background: #fcfcf9;
  border: 1px solid #d5dcd0;
  box-shadow: 0 24px 60px rgba(18, 30, 22, .26);
}
.qv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qv-head .eyebrow { margin: 0; }
.qv-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.qv-stage {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce2d7;
  background: #e8ede3;
}
.qv-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumbs { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding-bottom: 2px; }
.qv-thumb {
  flex: none;
  width: 66px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  background: #e8ede3;
}
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumb.active { border-color: #3d614d; }
.qv-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qv-info h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: #1d2922; }
.qv-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.qv-by button.com-creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 3px 8px 3px 3px;
  margin-left: -3px;
  border-radius: 999px;
  background: transparent;
  color: #29362e;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.qv-by button.com-creator-btn:hover { background: #edf2e9; color: #224432; }
.qv-summary { margin: 0; font-size: 13px; line-height: 1.6; color: #546358; }
.qv-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.qv-price-row strong { font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: #1d3629; font-variant-numeric: tabular-nums; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qv-actions .button:first-child { flex: 1; min-width: 160px; }
.qv-full-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3b5f4b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qv-full-link:hover { color: #203b2c; }
@media (max-width: 720px) {
  .qv-grid { grid-template-columns: 1fr; gap: 16px; }
  #quickViewDialog.qv-modal { padding: 16px 18px 18px; }
}

/* 7. Instant Search Suggestions Dropdown */
.search-wrap { position: relative; min-width: 0; }
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 75;
  border: 1px solid #c6d1c0;
  border-radius: 13px;
  background: #fcfcf9;
  box-shadow: 0 20px 44px -10px rgba(18, 34, 24, .22), 0 2px 8px rgba(18, 34, 24, .06);
  max-height: 430px;
  overflow-y: auto;
  padding: 6px;
}
.suggest-group + .suggest-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e7ece3; }
.suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #637366;
}
.suggest-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: #243028;
  transition: background .12s;
}
.suggest-row:hover,
.suggest-row.is-active { background: #edf3ea; }
.suggest-thumb {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #dce2d7;
  background: #e7ece2;
  display: grid;
  place-items: center;
}
.suggest-thumb.is-avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; justify-self: center; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-art { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--art-a, #dcece0), var(--art-b, #bfd9c7)); color: var(--art-ink, #1d4a31); }
.suggest-art svg { width: 15px; height: 15px; }
.suggest-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.suggest-copy strong { font-size: 13px; font-weight: 650; color: #1e2b23; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-copy strong mark { background: #dff2c2; color: inherit; border-radius: 3px; padding: 0 2px; }
.suggest-copy span { font-size: 11px; color: #617065; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-price { font-size: 12.5px; font-weight: 700; color: #244533; white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggest-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 0;
  border-top: 1px solid #e7ece3;
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: #365a46;
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
}
.suggest-all:hover,
.suggest-all.is-active { background: #edf3ea; }
.suggest-all svg { width: 15px; height: 15px; }
.suggest-empty { margin: 6px 10px 8px; font-size: 12.5px; color: #617065; }
.suggest-recents { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d5ddd0;
  background: #f2f5ee;
  color: #344439;
  font-size: 12px;
  font-weight: 550;
}
.suggest-chip:hover { background: #dfe8dc; border-color: #93a791; }
.suggest-chip svg { width: 13px; height: 13px; color: #5b6d60; }

/* 8. Recently Viewed Shelf */
.recent-shelf {
  margin: 12px 0 36px;
  padding-top: 22px;
  border-top: 1px solid #d8ddd3;
}
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.recent-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
  color: #2c3830;
}
.recent-head h2 svg { width: 16px; height: 16px; color: #466854; }
.recent-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.recent-card {
  flex: 0 0 248px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid #d9dfd4;
  background: #fcfcf9;
  color: #243028;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.recent-card:hover {
  border-color: #9eb19b;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(24, 42, 30, .14);
}
.recent-thumb {
  width: 62px;
  height: 44px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #e0e5dc;
  background: #e7ece2;
  display: grid;
  place-items: center;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-thumb-art { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--art-a, #dcece0), var(--art-b, #bfd9c7)); color: var(--art-ink, #1d4a31); }
.recent-thumb-art svg { width: 18px; height: 18px; }
.recent-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.recent-copy strong { font-size: 12.5px; font-weight: 650; color: #1f2d24; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy span { font-size: 11px; color: #607064; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

/* 9. Theme Toggle Button */
.theme-toggle svg { width: 18px; height: 18px; }

/* ==========================================================================
   10. Dark Mode Theme (html[data-theme="dark"]) — Deep Forest Slate Palette
   ========================================================================== */
html[data-theme="dark"] {
  --paper: #111714;
  --white: #18201c;
  --ink: #edf2ee;
  --muted: #9eb0a4;
  --forest: #6fb28b;
  --mint: #213429;
  --soft: #1f2a24;
  --line: #2a3730;
  color-scheme: dark;
  background: #111714;
  color: #edf2ee;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body:has(.market-catalog) { background: #111714; color: #edf2ee; }
html[data-theme="dark"] .market-catalog {
  --paper: #111714;
  --white: #18201c;
  --ink: #f2f6f3;
  --muted: #b8c8be;
  --line: #2a3730;
  --forest: #9ce6ba;
  --mint: #213429;
  --soft: #1f2a24;
  background: #111714;
  color: #f2f6f3;
}
html[data-theme="dark"] .site-header { background: #141b17; border-color: #27342d; color: #f2f6f3; }
html[data-theme="dark"] .site-header .brand,
html[data-theme="dark"] .site-footer .brand { color: #f2f6f3; }
html[data-theme="dark"] .site-header .brand-symbol,
html[data-theme="dark"] .site-footer .brand-symbol { background-image: url("/assets/brand/lakuhan-mark-dark.svg?v=20261203-2"); }
html[data-theme="dark"] .site-header nav { color: #b8c8be; }
html[data-theme="dark"] .site-header nav a:hover,
html[data-theme="dark"] .site-header nav a[aria-current="page"] { color: #9ce6ba; }
html[data-theme="dark"] .site-header nav a[aria-current="page"]::after { background: #9ce6ba; }
html[data-theme="dark"] .site-header .icon-button,
html[data-theme="dark"] .site-header .library-link,
html[data-theme="dark"] .acct-label { color: #f2f6f3; }
html[data-theme="dark"] .site-header .icon-button:hover { background: #233029; color: #f2f6f3; }
html[data-theme="dark"] .acct-pill { border-color: #5a7264; }
html[data-theme="dark"] .acct-pill a { color: #9ce6ba; }
html[data-theme="dark"] .acct-pill a + a { border-left-color: #5a7264; }
html[data-theme="dark"] .acct-pill a:hover { background: #223028; }
html[data-theme="dark"] .acct-pill a[aria-current=page] { background: #1d4d35; color: #ffffff; }
html[data-theme="dark"] .site-footer { background: #141b17; border-color: #27342d; color: #b8c8be; }
html[data-theme="dark"] .site-footer p { color: #b8c8be; border-color: #27342d; }
html[data-theme="dark"] .site-footer a { color: #9ce6ba; }
html[data-theme="dark"] .site-footer a:hover { color: #d8f68b; }

/* Buttons & inputs in dark mode */
html[data-theme="dark"] .button { background: #1e2822; border-color: #5a7264; color: #f2f6f3; }
html[data-theme="dark"] .button:hover { background: #27352d; border-color: #9ce6ba; }
html[data-theme="dark"] .button-dark,
html[data-theme="dark"] .market-catalog .button-dark,
html[data-theme="dark"] .market-catalog .button-mint { background: #1d4d35; border-color: #1d4d35; color: #ffffff; }
html[data-theme="dark"] .button-dark:hover,
html[data-theme="dark"] .market-catalog .button-dark:hover,
html[data-theme="dark"] .market-catalog .button-mint:hover { background: #173e2a; border-color: #173e2a; }
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .market-catalog .text-button:not(.card-author) { color: #9ce6ba; }
html[data-theme="dark"] .text-button:hover,
html[data-theme="dark"] .market-catalog .text-button:not(.card-author):hover { color: #e6f7ec; }
html[data-theme="dark"] .market-catalog .eyebrow { color: #b8c8be; }
html[data-theme="dark"] .market-catalog button { color: #edf2ee; }
html[data-theme="dark"] .market-catalog .select-input,
html[data-theme="dark"] .select-input { background: #1a231e; border-color: #33453b; color: #edf2ee; color-scheme: dark; }
html[data-theme="dark"] .catalog-search { background: #19221d; border-color: #36493e; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
html[data-theme="dark"] .catalog-search input { color: #edf2ee; }
html[data-theme="dark"] .catalog-search input::placeholder { color: #7e9285; }
html[data-theme="dark"] .catalog-search > svg { color: #8ca093; }
html[data-theme="dark"] .catalog-search kbd { border-color: #33453b; color: #96aa9d; background: #141c18; }

/* Category pills, filters sidebar, toolbars */
html[data-theme="dark"] .market-catalog .category-ribbon { border-bottom-color: #27342d; }
html[data-theme="dark"] .market-catalog .category-pill,
html[data-theme="dark"] .com-filter-pill,
html[data-theme="dark"] .saved-pill,
html[data-theme="dark"] .game-subpill { background: #18201c; border-color: #2d3c34; color: #b7c8bd; }
html[data-theme="dark"] .market-catalog .category-pill:hover,
html[data-theme="dark"] .com-filter-pill:hover,
html[data-theme="dark"] .saved-pill:hover { background: #222e27; border-color: #4b6557; color: #f0f5f1; }
html[data-theme="dark"] .market-catalog .category-pill.active,
html[data-theme="dark"] .com-filter-pill.active,
html[data-theme="dark"] .com-filter-pill[aria-pressed="true"],
html[data-theme="dark"] .saved-pill.active,
html[data-theme="dark"] .game-subpill.active { background: #263f31; border-color: #548369; color: #eef7f1; }
html[data-theme="dark"] .market-catalog .view-toggle { background: #1a231e; border-color: #33453b; }
html[data-theme="dark"] .market-catalog .view-toggle button { color: #8fa396; }
html[data-theme="dark"] .market-catalog .view-toggle button:hover { background: #24312a; }
html[data-theme="dark"] .market-catalog .view-toggle button.active { background: #274032; color: #9be0b7; box-shadow: inset 0 0 0 1px #548369; }
html[data-theme="dark"] .market-catalog .active-chip { background: #243a2e; border-color: #466d57; color: #d6f0df; }
html[data-theme="dark"] .market-catalog .filters { background: #161e1a; border-color: #29362f; }
html[data-theme="dark"] .market-catalog .filter-heading { background: #161e1a; border-bottom-color: #29362f; }
html[data-theme="dark"] .market-catalog .filter-heading h2 { color: #edf2ee; }
html[data-theme="dark"] .market-catalog .filter-heading button { color: #8ad0a6 !important; }
html[data-theme="dark"] .market-catalog .filter-drawer-foot { background: #161e1a; border-top-color: #29362f; }
html[data-theme="dark"] .market-catalog .filter-section { border-bottom-color: #27342d; }
html[data-theme="dark"] .market-catalog .filter-section > summary { color: #b5c6bb; }
html[data-theme="dark"] .market-catalog .filter-section > summary:hover { color: #eef5f0; }
html[data-theme="dark"] .market-catalog .filter-section > summary > svg { color: #879b8e; }
html[data-theme="dark"] .market-catalog .filter-section-count { background: #253b2f; border-color: #426652; color: #cdebd8; }
html[data-theme="dark"] .market-catalog .filter-section .filter-option { color: #b8c9be; }
html[data-theme="dark"] .market-catalog .filter-section .filter-option:hover,
html[data-theme="dark"] .market-catalog .filter-section .filter-option:focus-within { background: #212d26; }
html[data-theme="dark"] .market-catalog .filter-section .filter-option:has(input:checked) { background: #22382c; color: #e6f5ec; }
html[data-theme="dark"] .market-catalog .filter-option input { accent-color: #6fb28b; color-scheme: dark; }
html[data-theme="dark"] .market-catalog .filter-option input:checked + span { color: #b7eed0; }
html[data-theme="dark"] .market-catalog .filter-section .filter-option > span:last-child:not(:nth-child(2)) { color: #8fa396; }
html[data-theme="dark"] .market-catalog .filter-section input.filter-search,
html[data-theme="dark"] .market-catalog .filter-section .filter-search input { background: #121915; border-color: #304137; color: #edf2ee; color-scheme: dark; }
html[data-theme="dark"] .market-catalog .filter-section-note { color: #8da093; }
html[data-theme="dark"] .market-catalog .filter-exclusions > li { background: #213229; border-color: #355041; color: #d1e5d8; }
html[data-theme="dark"] .market-catalog .filter-mobile { background: #1a231e; border-color: #34473c; color: #d6e4db; }
html[data-theme="dark"] .com-how,
html[data-theme="dark"] .scope-sample-bar,
html[data-theme="dark"] .saved-undo { background: #18211c; border-color: #2b3a32; color: #c4d3c9; }
html[data-theme="dark"] .com-how li strong,
html[data-theme="dark"] .scope-sample-copy strong { color: #eef4f0; }
html[data-theme="dark"] .com-how li span,
html[data-theme="dark"] .com-how > p { color: #9ab0a2; }

/* Cards in dark mode (Marketplace, Commissions, Creators) */
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .com-card,
html[data-theme="dark"] .creator-card,
html[data-theme="dark"] .lf-card,
html[data-theme="dark"] .bundle-card,
html[data-theme="dark"] .library-card,
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .recent-card {
  background: #18201c;
  border-color: #2a3730;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .com-card:hover,
html[data-theme="dark"] .creator-card:hover,
html[data-theme="dark"] .recent-card:hover {
  background: #1b241f;
  border-color: #4a6856;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .product-image,
html[data-theme="dark"] .com-pic,
html[data-theme="dark"] .creator-cover { background: #202b25; border-color: #2a3730; }
html[data-theme="dark"] .product-list .product-image { border-right-color: #2a3730; }
html[data-theme="dark"] .card-type,
html[data-theme="dark"] .card-author-sub,
html[data-theme="dark"] .card-price-prefix,
html[data-theme="dark"] .com-price-label,
html[data-theme="dark"] .creator-since,
html[data-theme="dark"] .creator-since-line,
html[data-theme="dark"] .creator-stat span,
html[data-theme="dark"] .recent-copy span { color: #92a699; }
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .creator-card h2.creator-name,
html[data-theme="dark"] .recent-copy strong,
html[data-theme="dark"] .card-author-name,
html[data-theme="dark"] .com-card button.com-creator-btn { color: #eef4f0; }
html[data-theme="dark"] .product-card:hover .card-title a,
html[data-theme="dark"] .com-card:hover .card-title a,
html[data-theme="dark"] .creator-card:hover h2.creator-name a,
html[data-theme="dark"] button.card-author:hover .card-author-name { color: #96dfb3; }
html[data-theme="dark"] .card-summary,
html[data-theme="dark"] .com-summary,
html[data-theme="dark"] .creator-bio { color: #a3b5a9; }
html[data-theme="dark"] .card-ver,
html[data-theme="dark"] .tool-tag,
html[data-theme="dark"] .com-chip { background: #222e27; border-color: #324339; color: #bdd0c4; }
html[data-theme="dark"] .tool-tag--mc,
html[data-theme="dark"] .com-chip--escrow { background: #1e3328; border-color: #345a45; color: #9ce0b9; }
html[data-theme="dark"] .tool-tag--fresh { background: #1b362b; border-color: #2f654e; color: #8fe8be; }
html[data-theme="dark"] .tool-tag--earn { background: #362918; border-color: #634926; color: #f6c97a; }
html[data-theme="dark"] .tool-tag--owned { background: #1d392a; border-color: #36684c; color: #9ce6b9; }
html[data-theme="dark"] .card-rating { color: #edf2ee; }
html[data-theme="dark"] .card-rating span { color: #96aa9d; }
html[data-theme="dark"] .card-foot,
html[data-theme="dark"] .com-foot { border-top-color: #27342d; }
html[data-theme="dark"] .card-price-val,
html[data-theme="dark"] .com-price,
html[data-theme="dark"] .creator-stat strong { color: #e5f5ea; }
html[data-theme="dark"] .card-price.is-free .card-price-val { color: #7de0a6; }
html[data-theme="dark"] .tiny-avatar,
html[data-theme="dark"] .com-avatar,
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .creator-avatar { background: #283d31; color: #cdebd8; border-color: #18201c; }
html[data-theme="dark"] button.card-author:hover,
html[data-theme="dark"] .com-card button.com-creator-btn:hover { background: #233029; }
html[data-theme="dark"] button.card-save,
html[data-theme="dark"] button.card-qv-btn { background: rgba(24, 32, 28, .88); border-color: rgba(155, 190, 168, .22); color: #cde6d6; }
html[data-theme="dark"] button.card-save:hover,
html[data-theme="dark"] button.card-qv-btn:hover { background: #24332b; border-color: #6fb28b; color: #f2faf5; }
html[data-theme="dark"] button.card-save.saved { background: #3b6950; border-color: #3b6950; color: #f7faf7; }
html[data-theme="dark"] button.card-cart-btn { background: #223229; border-color: #365142; color: #bfe2cc; }
html[data-theme="dark"] button.card-cart-btn:hover { background: #3d6b52; border-color: #3d6b52; color: #f7faf7; }
html[data-theme="dark"] button.card-cart-btn.in-cart { background: #38644c; border-color: #467d5f; color: #f7faf7; }
@media (hover: hover) {
  html[data-theme="dark"] button.card-cart-btn.in-cart:hover { background: #3c1f1c; border-color: #8c3d34; color: #fca59b; }
}
html[data-theme="dark"] button.card-cart-btn.in-cart:focus-visible { background: #3c1f1c; border-color: #8c3d34; color: #fca59b; }
html[data-theme="dark"] .com-pill-open { background: rgba(21, 34, 26, .9); color: #9de8bd; border-color: rgba(111, 178, 139, .32); }
html[data-theme="dark"] .com-pill-full { background: rgba(54, 27, 20, .92); color: #fdba8c; border-color: rgba(234, 128, 82, .32); }
html[data-theme="dark"] .com-done-pill { background: #1d3629; border-color: #33624a; color: #9ae4b9; }
html[data-theme="dark"] .com-cta,
html[data-theme="dark"] .creator-cta { background: #213028; border-color: #354e40; color: #cde6d6; }
html[data-theme="dark"] .com-card:hover .com-cta,
html[data-theme="dark"] .creator-card:hover .creator-cta { background: #3b6950; border-color: #3b6950; color: #f7faf7; }
html[data-theme="dark"] .creator-mosaic { background: #18201c; }
html[data-theme="dark"] .creator-stats { background: #141c18; border-color: #27342d; }
html[data-theme="dark"] .creator-stat + .creator-stat { border-left-color: #27342d; }
html[data-theme="dark"] .creator-card button.creator-follow-btn { background: #213028; border-color: #375142; color: #cde6d6; }
html[data-theme="dark"] .creator-card button.creator-follow-btn:hover { background: #3b6950; border-color: #3b6950; color: #f7faf7; }
html[data-theme="dark"] .creator-card button.creator-follow-btn.is-following { background: #38644c; border-color: #477e60; color: #f7faf7; }
html[data-theme="dark"] .creator-card button.creator-follow-btn.is-following:hover { background: #3c1f1c; border-color: #8c3d34; color: #fca59b; }
html[data-theme="dark"] .card-art-fallback {
  --art-a: #1d2c24;
  --art-b: #15211b;
  --art-ink: #9ad8b4;
  --art-ring: rgba(154, 216, 180, .2);
  background: radial-gradient(circle at 82% 18%, rgba(154, 216, 180, .14) 0%, transparent 48%),
              linear-gradient(135deg, var(--art-a) 0%, var(--art-b) 100%);
}
html[data-theme="dark"] .qv-by button.com-creator-btn { color: #e8f1eb; }
html[data-theme="dark"] .qv-by button.com-creator-btn:hover { background: #233129; color: #a7e4c0; }
html[data-theme="dark"] .art-games { --art-a: #1a2f23; --art-b: #14241b; --art-ink: #8ce0ad; }
html[data-theme="dark"] .art-code { --art-a: #192b33; --art-b: #142128; --art-ink: #89d2e6; }
html[data-theme="dark"] .art-design { --art-a: #2d291f; --art-b: #221f17; --art-ink: #e2c98d; }
html[data-theme="dark"] .art-art { --art-a: #312029; --art-b: #24181f; --art-ink: #e8a2be; }
html[data-theme="dark"] .art-3d { --art-a: #1f2336; --art-b: #171a29; --art-ink: #a5b4fc; }
html[data-theme="dark"] .art-media { --art-a: #282035; --art-b: #1e1828; --art-ink: #c7a9f5; }
html[data-theme="dark"] .art-study { --art-a: #2d2a1d; --art-b: #222016; --art-ink: #e0ce8d; }
html[data-theme="dark"] .art-commission { --art-a: #1e2e25; --art-b: #16231c; --art-ink: #9ad8b4; }
html[data-theme="dark"] .card-art-medallion { background: rgba(24, 34, 29, .76); }

/* Header Live Cart Pill, Quick View, Cart Drawer, Checkout Modal, Search Suggest, Detail Page, Recently Viewed */
html[data-theme="dark"] .site-header .cart-toggle.has-items { background: #213229; border-color: #3a5646; color: #e2f2e8; }
html[data-theme="dark"] .site-header .cart-toggle.has-items:hover { background: #2a4134; border-color: #548369; color: #f4fbf6; }
html[data-theme="dark"] .site-header .cart-toggle.has-items .cart-count { background: #3f7256; color: #f7faf7; }
html[data-theme="dark"] .site-header .cart-total { border-left-color: rgba(154, 216, 180, .25); }
@media (max-width: 650px) {
  html[data-theme="dark"] .site-header .cart-toggle.has-items { background: transparent; border-color: transparent; color: #b9c9be; }
}
html[data-theme="dark"] #quickViewDialog.qv-modal,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] #cartDialog.drawer[open] { background: #18201c; border-color: #2d3c34; color: #edf2ee; }
html[data-theme="dark"] #cartDialog .dialog-head,
html[data-theme="dark"] .cart-foot { background: #151d19; border-color: #2a3730; }
html[data-theme="dark"] #cartDialog #cartTitle,
html[data-theme="dark"] .cart-sum-row.is-total,
html[data-theme="dark"] .cart-sum-row.is-total strong,
html[data-theme="dark"] .cart-info h3,
html[data-theme="dark"] .cart-line-price,
html[data-theme="dark"] .qv-info h2,
html[data-theme="dark"] .qv-price-row strong,
html[data-theme="dark"] .recent-head h2 { color: #eef5f0; }
html[data-theme="dark"] .cart-card { background: #1d2722; border-color: #2d3c34; }
html[data-theme="dark"] .cart-head-count { background: #274032; color: #b5e6c8; }
html[data-theme="dark"] .qv-stage { border-color: #2c3b33; background: #202a25; }
html[data-theme="dark"] .qv-summary { color: #a4b6aa; }
html[data-theme="dark"] .qv-full-link { color: #8ad0a6; }
html[data-theme="dark"] .search-suggest { background: #18201c; border-color: #32443a; box-shadow: 0 22px 48px rgba(0, 0, 0, .58); }
html[data-theme="dark"] .suggest-group + .suggest-group,
html[data-theme="dark"] .suggest-all { border-color: #28352e; }
html[data-theme="dark"] .suggest-head,
html[data-theme="dark"] .suggest-copy span,
html[data-theme="dark"] .suggest-empty { color: #8ea295; }
html[data-theme="dark"] .suggest-row { color: #e8f0ea; }
html[data-theme="dark"] .suggest-row:hover,
html[data-theme="dark"] .suggest-row.is-active,
html[data-theme="dark"] .suggest-all:hover,
html[data-theme="dark"] .suggest-all.is-active { background: #223029; }
html[data-theme="dark"] .suggest-copy strong { color: #eef5f0; }
html[data-theme="dark"] .suggest-copy strong mark { background: #365c45; color: #f2faf5; }
html[data-theme="dark"] .suggest-price,
html[data-theme="dark"] .suggest-all { color: #8ed4aa; }
html[data-theme="dark"] .suggest-chip { background: #202a25; border-color: #324339; color: #d3e2d8; }
html[data-theme="dark"] .suggest-chip:hover { background: #2a3a32; }
html[data-theme="dark"] .recent-shelf { border-top-color: #27342d; }
html[data-theme="dark"] .purchase-panel,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .market-catalog .empty-state,
html[data-theme="dark"] .library-note,
html[data-theme="dark"] .market-catalog .library-note,
html[data-theme="dark"] .rp-card,
html[data-theme="dark"] .queue-board,
html[data-theme="dark"] .queue-item { background: #18201c; border-color: #2a3730; color: #edf2ee; }
html[data-theme="dark"] .requirements-box,
html[data-theme="dark"] .whats-new-box,
html[data-theme="dark"] .affiliate-box,
html[data-theme="dark"] .pwyw-box { background: #1c2620; border-color: #2e3e35; color: #d9e5dd; }
html[data-theme="dark"] .whats-new-box p,
html[data-theme="dark"] .whats-new-head strong,
html[data-theme="dark"] .detail-tab-panel,
html[data-theme="dark"] .detail-tab-panel h2,
html[data-theme="dark"] .requirements-box h3 { color: #dce8e0; }
html[data-theme="dark"] .pkg-card { border-color: #2e3e35; background: #1a231e; }
html[data-theme="dark"] .pkg-card:has(input:checked) { background: #213429; border-color: #5b9474; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .promo-bar input,
html[data-theme="dark"] .pwyw-input-row { background: #131a16; border-color: #33453b; color: #edf2ee; }
html[data-theme="dark"] .pwyw-input-row input { color: #edf2ee; background: transparent; }

/* Market-embedded Buyer Library — Editorial Summary, AAA Contrast & Target Sizes */
.lib-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lib-page-head .button { min-height: 44px; }
.lib-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #c9d1c6;
  border-radius: 10px;
  font-size: 14px;
  color: #3d4a41;
}
.lib-summary strong { color: #141c17; font-variant-numeric: tabular-nums; }
.lib-summary__sep { color: #6b7870; }
.lib-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.lib-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-pill {
  padding: 0 16px;
  min-height: 44px;
  border: 1px solid #6b7870;
  border-radius: 8px;
  background: #ffffff;
  color: #141c17;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.lib-pill:hover { background: #f0f2ec; border-color: #1b3f2d; color: #123322; }
.lib-pill.active { background: #1b3f2d; border-color: #1b3f2d; color: #ffffff; }
.lib-pill:focus-visible,
.lib-search input:focus-visible,
.library-card a:focus-visible,
.library-card button:focus-visible { outline: 3px solid #143322; outline-offset: 2px; }
.lib-search { position: relative; flex: 1 1 240px; max-width: 340px; }
.lib-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #3d4a41; pointer-events: none; }
.lib-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid #6b7870;
  border-radius: 8px;
  background: #ffffff;
  color: #141c17;
  font-size: 14px;
}
.lib-search input::placeholder { color: #3d4a41; opacity: 1; }
.library-card { border: 1px solid #c9d1c6; border-radius: 10px; }
.library-card:hover { border-color: #6b7870; }
.library-card h2,
.library-card h3 { color: #141c17; }
.library-card p { color: #3d4a41; line-height: 1.55; }
.library-card .label { color: #1a422e; font-weight: 700; }
.library-card .button,
.library-note .text-button { min-height: 44px; }
@media (max-width: 560px) {
  .lib-search { max-width: none; width: 100%; flex-basis: 100%; }
}
html[data-theme="dark"] .lib-summary { background: #161d19; border-color: #36453c; color: #b8c8be; }
html[data-theme="dark"] .lib-summary strong { color: #f2f6f3; }
html[data-theme="dark"] .lib-summary__sep { color: #7d9185; }
html[data-theme="dark"] .lib-pill { background: #161d19; border-color: #7d9185; color: #f2f6f3; }
html[data-theme="dark"] .library-card { background: #161d19; border-color: #36453c; }
html[data-theme="dark"] .library-card h2,
html[data-theme="dark"] .library-card h3 { color: #f2f6f3; }
html[data-theme="dark"] .library-card p { color: #b8c8be; }
html[data-theme="dark"] .library-card .label { color: #9ce6ba; }
html[data-theme="dark"] .lib-pill:hover { background: #1e2822; border-color: #9ce6ba; color: #e6f7ec; }
html[data-theme="dark"] .lib-pill.active { background: #1d4d35; border-color: #1d4d35; color: #ffffff; }
html[data-theme="dark"] .lib-search input { background: #101613; border-color: #7d9185; color: #f2f6f3; }
html[data-theme="dark"] .lib-search input::placeholder { color: #b8c8be; opacity: 1; }
html[data-theme="dark"] .lib-search svg { color: #b8c8be; }
html[data-theme="dark"] .lib-pill:focus-visible,
html[data-theme="dark"] .lib-search input:focus-visible,
html[data-theme="dark"] .library-card a:focus-visible,
html[data-theme="dark"] .library-card button:focus-visible,
html[data-theme="dark"] .site-header :is(button, a):focus-visible,
html[data-theme="dark"] .site-footer a:focus-visible,
html[data-theme="dark"] .market-catalog :is(button, a, input, select, textarea, summary):focus-visible,
html[data-theme="dark"] button.card-save:focus-visible,
html[data-theme="dark"] button.card-qv-btn:focus-visible,
html[data-theme="dark"] .product-card:has(.card-title a:focus-visible),
html[data-theme="dark"] .com-card:has(.card-title a:focus-visible),
html[data-theme="dark"] .creator-card:has(.creator-name a:focus-visible) { outline-color: #d8f68b; }

html[data-theme="dark"] .creator-reply { background: #1c2620; border-left-color: #6fb28b; color: #edf2ee; }
html[data-theme="dark"] .bundle-badge { background: #3d2c12; color: #fde68a; border: 1px solid #6b4e1e; }
html[data-theme="dark"] .promo-msg { color: #9ce6b9; }
html[data-theme="dark"] .promo-msg.is-err { color: #fca5a5; }
html[data-theme="dark"] .rp-stage,
html[data-theme="dark"] .rp-audio-bar canvas { background: #131a16; }
html[data-theme="dark"] .rp-status { background: rgba(17, 23, 20, .86); color: #cdebd8; }
html[data-theme="dark"] .rp-compare-range input[type="range"] { accent-color: #9ce6b9; }
html[data-theme="dark"] .lf-card h2 { color: #f2f6f3; }
html[data-theme="dark"] .lf-card-foot,
html[data-theme="dark"] .collab-strip { color: #b8c8be; }
html[data-theme="dark"] .lf-budget,
html[data-theme="dark"] .slot-pill,
html[data-theme="dark"] .tier-upgrade-tag { background: #1b3629; color: #9ce6b9; border-color: #345a45; }
html[data-theme="dark"] .slot-pill.is-full { background: #3d2c12; color: #fde68a; border-color: #6b4e1e; }
html[data-theme="dark"] .collab-pill { background: #1f2e26; border-color: #354e40; color: #cde6d6; }
html[data-theme="dark"] .collab-pill:hover { background: #293e33; color: #f2f6f3; }
html[data-theme="dark"] .queue-pos { color: #9ce6b9; }
html[data-theme="dark"] .queue-stage { background: #222e27; color: #cde6d6; }
html[data-theme="dark"] .queue-stage.st-sketching { background: #163044; color: #93c5fd; }
html[data-theme="dark"] .queue-stage.st-in_progress { background: #3d2c12; color: #fde68a; }
html[data-theme="dark"] .queue-stage.st-polishing { background: #2e1f4d; color: #d8b4fe; }
html[data-theme="dark"] .queue-stage.st-delivered { background: #183824; color: #86efac; }
html[data-theme="dark"] .com-how a { color: #9ce6ba; }
@media (max-width: 520px) { .acct-pill .acct-seller { min-height: 44px; } }

html[data-theme="dark"] .skeleton-card,
html[data-theme="dark"] .skeleton-side { background: #18201c; border-color: #2a3730; }
html[data-theme="dark"] .skeleton-box,
html[data-theme="dark"] .skeleton-line { background: linear-gradient(90deg, #1f2a24 25%, #27352d 50%, #1f2a24 75%); background-size: 200% 100%; }
html[data-theme="dark"] .toast { background: #2b4d3b; color: #f5faf6; border: 1px solid #48795d; }
html[data-theme="dark"] .creator-banner { background: #17271f; border: 1px solid #2e4a3b; color: #f2f6f3; }
html[data-theme="dark"] .creator-banner .eyebrow { color: #9ce6ba; }
html[data-theme="dark"] .creator-banner h2 { color: #f2f6f3; }
html[data-theme="dark"] .creator-banner p { color: #b8c8be; }
html[data-theme="dark"] .market-catalog .creator-banner .button-mint { background: #23593d; border-color: #2e6f4d; color: #ffffff; }
html[data-theme="dark"] .market-catalog .creator-banner .button-mint:hover { background: #2b6b4a; border-color: #3a865f; }
html[data-theme="dark"] .market-catalog .empty-state p { color: #b8c8be; }
html[data-theme="dark"] .market-catalog .empty-state svg { color: #9ce6ba; }
html[data-theme="dark"] .market-catalog .load-more .button { background: #1e2822; border-color: #5a7264; color: #f2f6f3; }
html[data-theme="dark"] .market-catalog .load-more .button:hover { background: #27352d; border-color: #9ce6ba; }
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .count-badge,
html[data-theme="dark"] .cart-count,
html[data-theme="dark"] .live-label { background: #1d4d35; color: #ffffff; }
html[data-theme="dark"] .sample-label,
html[data-theme="dark"] .card-label { background: rgba(20, 27, 23, .92); color: #d6e4db; border: 1px solid #32443a; }
html[data-theme="dark"] .demo-strip { background: #161f1a; color: #b8c8be; border-bottom: 1px solid #27342d; }
html[data-theme="dark"] .seller-notes,
html[data-theme="dark"] .demo-notice,
html[data-theme="dark"] .filter-note { background: #18221d; border: 1px solid #2c3d34; color: #c4d3c9; }
html[data-theme="dark"] .seller-notes h3,
html[data-theme="dark"] .filter-note strong { color: #f2f6f3; }
html[data-theme="dark"] .checkout-error { background: #361c1a; border-color: #7c352f; color: #fecaca; }
@media (prefers-reduced-motion: reduce) {
  .card-dot,
  .card-art-medallion,
  button.card-qv-btn,
  .site-header *,
  .button { transition: none !important; animation: none !important; }
}
