:root {
  --yc-bg: #ffffff;
  --yc-bg-soft: #f6fffc;
  --yc-surface: #ffffff;
  --yc-surface-mint: #effffc;
  --yc-mint: #70ead2;
  --yc-mint-soft: #e9fff9;
  --yc-teal: #00a896;
  --yc-teal-dark: #00796f;
  --yc-navy: #10192c;
  --yc-muted: #667487;
  --yc-line: #dbe8ec;
  --yc-line-mint: #c8f4eb;
  --yc-red: #ef233c;
  --yc-red-dark: #d71931;
  --yc-radius-sm: 10px;
  --yc-radius-md: 14px;
  --yc-radius-lg: 22px;
  --yc-radius-xl: 30px;
  --yc-radius-pill: 999px;
  --yc-space-1: 4px;
  --yc-space-2: 8px;
  --yc-space-3: 12px;
  --yc-space-4: 16px;
  --yc-space-5: 24px;
  --yc-space-6: 32px;
  --yc-container: 1180px;
  --yc-shadow-soft: 0 18px 44px rgba(16, 25, 44, .08);
  --yc-shadow-card: 0 12px 32px rgba(16, 25, 44, .07);
  --mint: #68ead1;
  --soft: #f1fffc;
  --teal: #008875;
  --navy: #071827;
  --midnight: #071827;
  --midnight-hover: #10293d;
  --coral: #b85243;
  --coral-dark: #9f4035;
  --ocean: #8ee8df;
  --ocean-strong: #5bcfc8;
  --ocean-hover: #75ddd6;
  --ocean-text: #062f36;
  --line: #c9f1ea;
  --muted: #61717b;
  --shadow: 0 18px 44px rgba(7, 24, 39, .10);
}

/* Yourcell component design system preview */
body.ycm-view-styleguide > .market-header,
body.ycm-view-styleguide > .market-trustbar,
body.ycm-view-styleguide > .market-footer,
body.ycm-view-styleguide > .bottom-nav {
  display: none !important;
}

.yc-styleguide .bottom-nav {
  display: none !important;
}

body.ycm-view-styleguide {
  background: var(--yc-bg);
  color: var(--yc-navy);
  font-family: Inter, Arial, Helvetica, sans-serif;
  padding-bottom: 0;
}

.yc-styleguide {
  width: min(100% - 48px, var(--yc-container));
  margin: 36px auto 64px;
  display: grid;
  gap: 28px;
}

.yc-styleguide-intro {
  display: grid;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-xl);
  background:
    radial-gradient(circle at 85% 18%, rgba(112, 234, 210, .2), transparent 28%),
    linear-gradient(135deg, #fff 0%, var(--yc-bg-soft) 100%);
  box-shadow: var(--yc-shadow-soft);
}

.yc-styleguide-intro h1,
.yc-style-block h2 {
  margin: 0;
  color: var(--yc-navy);
  letter-spacing: 0;
}

.yc-styleguide-intro h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
}

.yc-styleguide-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--yc-muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.yc-style-block {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-lg);
  background: var(--yc-surface);
  box-shadow: var(--yc-shadow-card);
}

.yc-style-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yc-style-block-head h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.yc-component-frame {
  padding: 0;
  overflow: hidden;
}

.yc-component-frame .yc-style-block-head {
  padding: 24px 26px 0;
}

.yc-token-grid,
.yc-controls-demo,
.yc-style-grid {
  display: grid;
  gap: 14px;
}

.yc-token-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.yc-token-grid span {
  min-height: 92px;
  padding: 14px;
  display: flex;
  align-items: end;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-md);
  background: linear-gradient(180deg, var(--swatch), var(--swatch));
  color: var(--yc-navy);
  font-weight: 850;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .3);
}

.yc-controls-demo {
  grid-template-columns: repeat(3, max-content) minmax(240px, 1fr) max-content max-content;
  align-items: end;
}

.yc-style-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yc-creator-demo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yc-btn,
.yc-site-header .header-actions a,
.yc-site-header .search-bar button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.yc-btn:hover,
.yc-site-header .header-actions a:hover,
.yc-site-header .search-bar button:hover {
  transform: translateY(-1px);
}

.yc-btn-red,
.yc-site-header .header-actions .publish-action {
  background: var(--yc-red);
  border-color: var(--yc-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 35, 60, .18);
}

.yc-btn-red:hover,
.yc-site-header .header-actions .publish-action:hover {
  background: var(--yc-red-dark);
}

.yc-btn-secondary,
.yc-site-header .header-actions .login-action {
  background: var(--yc-mint-soft);
  border-color: var(--yc-line-mint);
  color: var(--yc-teal-dark);
}

.yc-btn-ghost {
  background: #fff;
  border-color: var(--yc-line);
  color: var(--yc-navy);
}

.yc-input-wrap {
  display: grid;
  gap: 8px;
  color: var(--yc-muted);
  font-size: 12px;
  font-weight: 850;
}

.yc-input,
.yc-search-bar input,
.yc-search-bar select {
  min-height: 42px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-sm);
  background: #fff;
  color: var(--yc-navy);
  outline: 0;
}

.yc-input {
  padding: 0 14px;
}

.yc-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--yc-radius-pill);
  background: var(--yc-mint-soft);
  border: 1px solid var(--yc-line-mint);
  color: var(--yc-teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.yc-badge-soft {
  background: #fff;
  border-color: var(--yc-line);
  color: var(--yc-muted);
}

.yc-styleguide .yc-site-header {
  position: relative;
  top: auto;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.yc-styleguide .yc-header-inner {
  width: 100%;
  max-width: none;
  grid-template-columns: auto minmax(380px, 1fr) auto;
  gap: 22px;
  padding: 24px 28px 18px;
}

.yc-styleguide .yc-brand {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.yc-styleguide .yc-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.yc-styleguide .yc-brand .brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
}

.yc-styleguide .yc-brand strong {
  color: var(--yc-teal);
  font-size: inherit;
}

.yc-styleguide .yc-brand em {
  color: var(--yc-navy);
  font-style: normal;
}

.yc-styleguide .yc-menu-drop {
  display: none;
}

.yc-styleguide .yc-search-bar {
  grid-template-columns: 1fr 166px 44px;
  min-height: 48px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-sm);
  box-shadow: none;
}

.yc-styleguide .yc-search-bar input,
.yc-styleguide .yc-search-bar select {
  border: 0;
  min-height: auto;
  font-size: 14px;
  font-weight: 600;
}

.yc-styleguide .yc-search-bar select {
  border-left: 1px solid var(--yc-line);
  background: #fff;
}

.yc-styleguide .yc-search-bar button {
  min-height: 36px;
  width: 36px;
  margin: 5px;
  padding: 0;
  border-radius: 50%;
  background: var(--yc-teal);
  color: #fff;
  box-shadow: none;
}

.yc-styleguide .yc-header-actions {
  gap: 16px;
}

.yc-styleguide .yc-header-actions .cart-bubble {
  position: relative;
  min-width: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yc-navy);
  box-shadow: none;
}

.yc-styleguide .yc-header-actions .cart-bubble span {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yc-teal);
  color: #fff;
  font-size: 11px;
}

.yc-styleguide .yc-category-nav {
  display: flex;
  max-width: none;
  width: 100%;
  gap: 30px;
  padding: 15px 28px 20px;
  border-top: 1px solid #eef3f5;
  overflow-x: auto;
  background: #fff;
}

.yc-styleguide .yc-category-nav a {
  font-size: 14px;
  font-weight: 800;
  color: var(--yc-navy);
  white-space: nowrap;
}

.yc-product-card-v2 {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-md);
  background: #fff;
  box-shadow: var(--yc-shadow-card);
}

.yc-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / .88;
  overflow: hidden;
  background: var(--yc-surface-mint);
}

.yc-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yc-card-media .yc-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--yc-navy);
  border-color: var(--yc-line);
  backdrop-filter: blur(10px);
}

.yc-card-content {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.yc-title-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.yc-title-line h3 {
  margin: 0;
  min-height: 42px;
  color: var(--yc-navy);
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yc-heart {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--yc-line);
  border-radius: 50%;
  color: var(--yc-muted);
  background: #fff;
  font-size: 18px;
}

.yc-card-creator {
  margin: 0;
  color: var(--yc-muted);
  font-size: 13px;
  font-weight: 700;
}

.yc-card-creator span,
.yc-creator-head h3 span {
  color: var(--yc-teal);
}

.yc-card-price {
  color: var(--yc-teal);
  font-size: 17px;
}

.yc-card-actions {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
}

.yc-card-actions form {
  margin: 0;
}

.yc-card-actions .yc-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
}

.yc-creator-card-v2 {
  position: relative;
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-lg);
  background: #fff;
  box-shadow: var(--yc-shadow-card);
}

.yc-featured-ribbon {
  position: absolute;
  top: 0;
  left: 18px;
  transform: translateY(-50%);
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--yc-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.yc-creator-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.yc-creator-head img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--yc-mint-soft);
}

.yc-creator-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--yc-navy);
}

.yc-creator-head p,
.yc-creator-bio {
  margin: 0;
  color: var(--yc-muted);
  font-weight: 650;
  line-height: 1.45;
}

.yc-creator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--yc-muted);
  font-size: 13px;
}

.yc-creator-meta b {
  color: var(--yc-navy);
}

.yc-creator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.yc-styleguide .yc-site-footer {
  margin: 0;
  width: 100%;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.yc-styleguide .yc-newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 18px;
  align-items: center;
  margin: 0 26px 20px;
  padding: 20px;
  border: 1px solid var(--yc-line);
  border-radius: var(--yc-radius-md);
  background: linear-gradient(90deg, var(--yc-bg-soft), #fff);
}

.yc-styleguide .yc-newsletter span,
.yc-styleguide .footer-brand p,
.yc-styleguide .yc-footer-grid a {
  color: var(--yc-muted);
}

.yc-styleguide .yc-newsletter form {
  display: grid;
  grid-template-columns: 1fr 140px;
}

.yc-styleguide .yc-newsletter input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--yc-line);
  border-right: 0;
  border-radius: var(--yc-radius-sm) 0 0 var(--yc-radius-sm);
}

.yc-styleguide .yc-newsletter .button {
  border-radius: 0 var(--yc-radius-sm) var(--yc-radius-sm) 0;
  background: var(--yc-red);
  color: #fff;
}

.yc-styleguide .yc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 26px;
  padding: 26px;
  border-top: 1px solid #eef3f5;
}

.yc-styleguide .footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.yc-payments {
  display: grid;
  gap: 8px;
}

.yc-payments span {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--yc-line);
  border-radius: 8px;
  color: var(--yc-navy);
  font-weight: 850;
  background: #fff;
}

.yc-styleguide .footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 26px 26px;
  color: var(--yc-muted);
}

@media (max-width: 900px) {
  .yc-styleguide {
    width: min(100% - 24px, var(--yc-container));
    margin-top: 18px;
  }

  .yc-styleguide-intro,
  .yc-style-block {
    padding: 18px;
  }

  .yc-token-grid,
  .yc-style-grid,
  .yc-creator-demo-grid,
  .yc-controls-demo {
    grid-template-columns: 1fr;
  }

  .yc-styleguide .yc-header-inner {
    grid-template-columns: 1fr auto;
    padding: 16px;
  }

  .yc-styleguide .yc-brand .brand-word {
    font-size: 22px;
  }

  .yc-styleguide .yc-search-bar {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 44px;
    order: 3;
  }

  .yc-styleguide .yc-search-bar select {
    display: none;
  }

  .yc-styleguide .yc-header-actions .login-action,
  .yc-styleguide .yc-header-actions .publish-action {
    display: none;
  }

  .yc-styleguide .yc-category-nav {
    padding: 12px 16px 16px;
  }

  .yc-styleguide .yc-newsletter,
  .yc-styleguide .yc-footer-grid {
    grid-template-columns: 1fr;
    margin-inline: 16px;
    padding: 18px;
  }

  .yc-styleguide .yc-newsletter form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .yc-styleguide .yc-newsletter input,
  .yc-styleguide .yc-newsletter .button {
    border: 1px solid var(--yc-line);
    border-radius: var(--yc-radius-sm);
  }

  .yc-styleguide .footer-bottom {
    padding: 0 18px 22px;
    display: grid;
    gap: 8px;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 0 94px;
  color: var(--navy);
  background: linear-gradient(180deg, #f4fffc 0%, #fff 42%, #f8fffd 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.market-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 255, 252, .98);
  backdrop-filter: blur(14px);
}
.top-market-row {
  display: grid;
  grid-template-columns: auto auto minmax(520px, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
  max-width: 1680px;
  margin: 0 auto;
}
.brand { display: flex; gap: 9px; align-items: center; min-width: 0; }
.brand-logo {
  width: 112px;
  height: 58px;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 24, 39, .08);
  overflow: hidden;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #bff8ee; object-fit: cover; box-shadow: 0 8px 22px rgba(0, 136, 117, .18); }
.brand-logo img {
  width: 86%;
  height: 86%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}
.brand strong { display: block; color: var(--teal); font-size: 22px; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.brand small { display: block; margin-top: 4px; font-size: 12px; font-weight: 850; }
.guide-chip {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 950;
  white-space: nowrap;
}
.guide-chip::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: inset 0 0 0 9px #12324a;
}
.menu-drop {
  position: relative;
  z-index: 25;
}
.menu-drop summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ocean);
  color: var(--ocean-text);
  cursor: pointer;
  font-weight: 950;
  font-size: 0;
  list-style: none;
  box-shadow: 0 8px 18px rgba(74, 112, 36, .08);
}
.menu-drop summary::-webkit-details-marker { display: none; }
.menu-drop summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu-drop summary svg,
.search-bar button svg,
.cart-bubble svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-drop summary svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.45;
}
.menu-drop div {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  min-width: 280px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 42px rgba(7, 24, 39, .16);
  backdrop-filter: blur(14px);
}
.menu-drop a {
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--navy);
  font-weight: 900;
  font-size: 14px;
}
.menu-drop a:hover { background: #f2fadf; color: var(--teal); }
.header-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ocean);
  color: var(--ocean-text);
  font-size: 13px;
  font-weight: 950;
}
.header-actions .login-action,
.header-actions .publish-action {
  background: var(--midnight);
  border-color: var(--midnight);
  color: #fff;
}
.header-actions .text-action { display: none; }
.header-actions .cart-bubble {
  min-width: 56px;
  padding: 0 13px;
  background: var(--ocean);
  border-color: var(--ocean-strong);
  color: var(--ocean-text);
  gap: 8px;
  box-shadow: none;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 48px;
  min-height: 48px;
  border: 1px solid #d0f2ec;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.market-search { grid-template-columns: minmax(280px, 1fr) 46px; min-height: 42px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0, 136, 117, .07); }
.market-search select {
  min-height: auto;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #f3fffc;
  font-size: 15px;
}
.search-bar input { min-width: 0; border: 0; outline: 0; padding: 0 16px; font-size: 14px; font-weight: 750; }
.search-bar button {
  display: grid;
  place-items: center;
  border: 0;
  margin: 4px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--teal);
  font-size: 0;
  box-shadow: inset 0 0 0 1px var(--ocean-strong), 0 6px 14px rgba(74, 112, 36, .10);
}
.search-bar button:hover { background: var(--ocean-hover); color: var(--navy); }
.search-bar button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-bar button svg { width: 23px; height: 23px; stroke-width: 2.5; }
.navline {
  display: none;
}
.navline {
  display: none;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 14px;
  font-weight: 950;
  scrollbar-width: none;
}
.navline::-webkit-scrollbar { display: none; }
.creator-nav { gap: 10px; background: #eafffb; color: var(--navy); }
.creator-nav b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 16px;
  white-space: nowrap;
}
.creator-nav b::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--navy);
}
.creator-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #82ebda;
  border-radius: 999px;
  background: #f3fffc;
  color: var(--teal);
}

.market-trustbar {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.market-trustbar article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}
.market-trustbar img {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #9cf2e2;
}
.market-trustbar b { color: var(--teal); line-height: 1.05; }
.market-trustbar span { color: var(--navy); font-size: 13px; font-weight: 850; }

main { width: min(100%, 1440px); margin: 0 auto; }
.notice, .empty {
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.hero, .section { margin: 0; padding: 24px clamp(16px, 3vw, 34px); }
.hero {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero h1, .section h1 {
  margin: 10px 0;
  font-size: clamp(31px, 4.7vw, 52px);
  line-height: .98;
  letter-spacing: 0;
}
.hero p { color: #344555; font-size: 17px; line-height: 1.45; }
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.35fr .75fr .75fr;
  grid-template-rows: repeat(2, minmax(132px, 1fr));
  gap: 12px;
  min-width: 0;
}
.hero-cover {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(7, 24, 39, .12);
}
.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}
.hero-cover span {
  position: absolute;
  inset: auto 18px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(7, 24, 39, .14);
}
.hero-tile {
  position: relative;
  display: block;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(7, 24, 39, .11);
}
.hero-tile-large { grid-row: span 2; }
.hero-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
.hero-tile span {
  position: absolute;
  inset: auto 12px 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(234, 255, 251, .97);
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
}
.eyebrow, .badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(7, 24, 39, .06);
}
.actions, .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.button, .chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid var(--ocean-strong);
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}
.button,
.button.mint,
.button.navy,
.button.soft,
.chips a {
  background: var(--ocean);
  color: var(--ocean-text);
  box-shadow: 0 8px 18px rgba(74, 112, 36, .08);
}
.button.red {
  background: var(--midnight);
  border-color: var(--midnight);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 24, 39, .18);
}
.button.red:hover { background: var(--midnight-hover); }
.button.full { width: 100%; }
.chips a.active { background: var(--ocean-strong); color: var(--navy); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 22px; }
.trust-grid article, .auth-card, .product-card, .checkout-card, .line-item, .total, .upload-form, .register-form, .detail-card, .order-card, .profile-hero-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.trust-grid article { padding: 16px; }
.trust-grid b, .trust-grid span { display: block; }
.trust-grid b { color: var(--teal); font-size: 18px; }
.trust-grid span { color: var(--muted); margin-top: 8px; font-weight: 800; }
.marketplace-home, .creator-band { margin-top: 18px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}
.section-head h2 { margin: 10px 0 0; font-size: clamp(24px, 3.5vw, 40px); line-height: 1.02; }
.section-link { color: var(--teal); font-weight: 950; }
.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.department-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f4fffc);
  box-shadow: 0 12px 26px rgba(7, 24, 39, .06);
}
.department-card b { color: var(--teal); font-size: 17px; }
.department-card span { color: var(--muted); font-weight: 800; line-height: 1.35; }
.compact-products { margin-top: 18px; }
.creator-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f2fffc 60%, #eafcff 100%);
}
.creator-band p { color: var(--muted); font-weight: 800; line-height: 1.45; }
.cell-preview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cell-preview b { color: var(--navy); font-size: 21px; }
.cell-preview span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--teal);
  background: #f6fffd;
  font-weight: 900;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 16px 22px;
}
.workflow-grid article, .filter-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 24, 39, .06);
}
.workflow-grid b, .filter-panel b { display: block; color: var(--teal); font-size: 18px; }
.workflow-grid span, .filter-panel span { display: block; margin-top: 8px; color: var(--muted); font-weight: 800; line-height: 1.35; }
.filter-panel { margin: 14px 0 16px; background: linear-gradient(90deg, #fff, #f3fffc); }
.product-grid { display: grid; gap: 18px; }
.product-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  background: linear-gradient(180deg, #fff, #fbfffe);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(7, 24, 39, .13); }
.product-card div { padding: 16px; }
.product-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.12; }
.product-card p { color: var(--muted); font-weight: 800; }
.product-card strong { display: block; margin: 12px 0; color: var(--coral); font-size: 19px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 !important; }
.detail-card { padding: 18px; }
.detail-card img { width: 100%; aspect-ratio: 1 / .72; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.detail-card .lead { color: #344555; font-size: 18px; line-height: 1.5; }
.detail-grid { display: grid; gap: 10px; margin: 18px 0; }
.detail-grid div, .download-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fffd;
}
.detail-grid b { color: var(--teal); }
.detail-grid span, .download-row em { color: var(--muted); font-weight: 800; }
.sticky-buy { position: sticky; bottom: 86px; }
.product-buy-actions {
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,.95);
  padding-top: 10px;
}
.narrow { max-width: 760px; margin-inline: auto; }
.auth-card, .checkout-card, .upload-form, .register-form { padding: 22px; }
.auth-card { box-shadow: 0 18px 40px rgba(7, 24, 39, .08); }
.auth-card h1 { text-align: center; font-size: 24px; letter-spacing: 0; }
.protected { display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; color: var(--navy); font-weight: 800; }
.protected span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #11b59f;
  color: #fff;
  font-size: 13px;
}
.auth-form, .register-form, .upload-form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #bdece4;
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}
textarea { min-height: 120px; padding-top: 14px; resize: vertical; }
label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
}
.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 16px 0; color: #89949b; font-weight: 800; }
.divider::before, .divider::after { content: ""; height: 1px; background: #d7dee2; }
.social-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.social-row a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(7, 24, 39, .07);
}
.social-row a:hover { border-color: #9eeadd; background: #f7fffd; color: var(--teal); }
.social-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px #e7eef0;
}
.social-row .google .social-icon { color: #ea4335; }
.social-row .facebook .social-icon { background: #1877f2; color: #fff; font-family: Arial, Helvetica, sans-serif; }
.line-item, .total { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 16px; margin: 12px 0; }
.total { grid-template-columns: 1fr auto; font-size: 22px; }
.cart-item {
  display: grid;
  grid-template-columns: 108px 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cart-thumb {
  width: 108px;
  aspect-ratio: 1 / .78;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.cart-item h2 { margin: 7px 0 5px; font-size: 19px; line-height: 1.12; }
.cart-item p,
.cart-item small { display: block; color: var(--muted); font-weight: 800; line-height: 1.35; }
.cart-item strong { color: var(--coral); font-size: 19px; white-space: nowrap; }
.checkout-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f7fffd);
  box-shadow: 0 12px 26px rgba(7, 24, 39, .06);
}
.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 850;
}
.checkout-summary strong { color: var(--navy); }
.checkout-summary .grand-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 20px;
}
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.payment-methods span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fffd;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}
.order-card { display: grid; gap: 10px; padding: 14px; margin: 12px 0; }
.order-card span { color: var(--muted); font-weight: 800; }
.account-grid, .cell-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.profile-hero-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fff 0%, #f3fffc 100%);
}
.account-dashboard {
  display: grid;
  gap: 16px;
}
.account-app-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(90deg, #fff, #f4fffc);
}
.account-app-header img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: contain;
}
.account-app-header b { color: var(--teal); font-size: 18px; }
.account-app-header a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ocean);
  color: var(--ocean-text);
  font-size: 13px;
  font-weight: 950;
}
.role-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--ocean);
  color: var(--ocean-text);
  font-size: 12px;
  font-weight: 950;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.account-stats a {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 24, 39, .06);
}
.account-stats b { color: var(--teal); font-size: 22px; }
.account-stats span { color: var(--muted); font-weight: 850; }
.creator-banner-account {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f2fffc 58%, #ecfbff 100%);
  box-shadow: var(--shadow);
}
.creator-banner-account h2 { margin: 8px 0 5px; font-size: 24px; }
.creator-banner-account p { margin: 0; color: var(--muted); font-weight: 850; line-height: 1.4; }
.account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(7, 24, 39, .05);
}
.account-actions a.active { border-color: var(--ocean-strong); background: #f2fffc; }
.action-icon {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--ocean);
  color: var(--ocean-text);
  font-weight: 950;
}
.account-actions b { font-size: 15px; }
.account-actions small { color: var(--muted); font-weight: 750; line-height: 1.25; }
.activity-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 24, 39, .06);
}
.activity-panel h2 { margin-top: 0; }
.activity-panel p { color: var(--muted); font-weight: 850; line-height: 1.45; }
.activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.activity-list article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fffd;
}
.activity-list span { color: var(--muted); font-weight: 800; }
.account-download-row {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
}
.account-download-row img {
  width: 72px;
  aspect-ratio: 1 / .78;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.account-logout { margin-top: 2px; }
.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mint), #fff);
  color: var(--navy);
  font-size: 24px;
  font-weight: 950;
}
.image-avatar {
  display: block;
  object-fit: cover;
  padding: 0;
  border: 2px solid #9eeadd;
}
.profile-hero-card h2 { margin: 6px 0 2px; font-size: 23px; }
.profile-hero-card p { margin: 0; color: var(--muted); font-weight: 850; }
.profile-form, .danger-form { margin: 14px 0; box-shadow: 0 12px 26px rgba(7, 24, 39, .06); }
.danger-form {
  background: linear-gradient(180deg, #fff, #f8fffd);
}
.danger-form h2 { margin: 0; font-size: 20px; }
.danger-form p { margin: 0; color: var(--muted); font-weight: 800; line-height: 1.4; }
.account-grid article, .cell-stats span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fffd;
}
.account-grid b, .cell-stats b { color: var(--teal); }
.account-grid span, .creator-profile-card p { color: var(--muted); font-weight: 800; line-height: 1.35; }
.creator-profile-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f2fffc);
  box-shadow: var(--shadow);
}
.cell-cover {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mint), #eafffb);
  color: var(--navy);
  font-weight: 950;
}
.creator-profile-card h2 { margin: 0; font-size: 25px; }
.creator-upload-form {
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f7fffd);
}
.form-head h2 { margin: 8px 0; font-size: 24px; }
.form-head p { margin: 0; color: var(--muted); font-weight: 850; line-height: 1.4; }
.form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.legal-page .lead {
  color: #344555;
  font-size: 17px;
  line-height: 1.48;
}
.legal-stack {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.legal-stack article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fffd);
  box-shadow: 0 12px 26px rgba(7, 24, 39, .06);
}
.legal-stack h2 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 19px;
}
.legal-stack p,
.legal-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.48;
}
.legal-stack a {
  color: var(--teal);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; color: var(--muted); }
.check input { width: auto; min-height: auto; }

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -12px 32px rgba(7, 24, 39, .10);
}
.bottom-nav a {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-radius: 18px;
  color: #52636b;
  font-size: 13px;
  font-weight: 950;
  align-content: center;
  gap: 3px;
}
.bottom-nav span { display: block; font-size: 12px; }
.bottom-nav svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 12px;
  background: #f7fffd;
  box-shadow: inset 0 0 0 1px #dcefed;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav a.active {
  background: var(--ocean);
  color: var(--ocean-text);
  border: 1px solid var(--ocean-strong);
  box-shadow: 0 10px 22px rgba(74, 112, 36, .08);
}
.bottom-nav a.active svg { background: #fff; box-shadow: inset 0 0 0 1px var(--ocean-strong); color: var(--teal); }

/* YCM10 marketplace polish inspired by the supplied reference screens */
body {
  background: #fff;
  color: #141c33;
  font-size: 14px;
}
main { width: min(100%, 1220px); }
.market-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #edf1f4;
  box-shadow: 0 8px 26px rgba(20, 28, 51, .04);
}
.top-market-row {
  grid-template-columns: 250px minmax(360px, 560px) auto;
  max-width: 1220px;
  padding: 18px 24px 14px;
  gap: 22px;
}
.brand-logo {
  width: auto;
  height: 58px;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.brand-logo img { width: 210px; height: 58px; object-fit: contain; }
.brand-word {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  margin-left: 10px;
  color: #141c33;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}
.brand-word strong { color: #0ba99b; font-size: inherit; }
.brand-word em { font-style: normal; font-weight: 500; }
.guide-chip, .creator-nav, .market-trustbar { display: none !important; }
.menu-drop { order: 4; }
.menu-drop summary {
  width: auto;
  height: 40px;
  min-height: 40px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #141c33;
  box-shadow: none;
}
.menu-drop summary span {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  font-size: 14px;
}
.market-search {
  min-height: 54px;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  box-shadow: none;
}
.search-bar input { color: #7a8797; font-weight: 700; }
.search-bar button {
  margin: 8px;
  background: #fff;
  color: #748093;
  box-shadow: none;
}
.header-actions a {
  background: #fff;
  border-color: transparent;
  color: #141c33;
  font-weight: 850;
  box-shadow: none;
}
.header-actions .login-action,
.header-actions .publish-action {
  background: #fff;
  color: #141c33;
  border-color: transparent;
}
.header-actions .publish-action {
  background: #ef1f2d;
  color: #fff;
  border-color: #ef1f2d;
}
.header-actions .cart-bubble {
  background: #fff;
  color: #141c33;
  border-left: 1px solid #e7edf1;
  border-radius: 0;
  min-width: 54px;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 14px 24px;
  color: #141c33;
  background: #fff;
  font-size: 14px;
}
.primary-nav a:first-child {
  font-weight: 950;
}
.hero, .section { padding: 32px clamp(18px, 4vw, 48px); }
.hero {
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr);
  min-height: 520px;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  color: #141c33;
}
.hero h1 strong,
.hero h1 em { color: #11a99d; font-style: normal; }
.hero p, .lead {
  color: #5d6879;
  font-size: 18px;
  line-height: 1.55;
}
.hero-cover {
  min-height: 420px;
  border: 0;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 48%, #e5fffb 0%, #f7fffd 50%, #fff 72%);
  box-shadow: none;
}
.hero-cover img {
  object-fit: contain;
  padding: 34px;
  filter: drop-shadow(0 26px 34px rgba(13, 171, 158, .18));
}
.hero-cover span { display: none; }
.button, .chips a {
  min-height: 43px;
  border-radius: 10px;
  border-color: #0ba99b;
  background: #fff;
  color: #078f84;
  box-shadow: none;
}
.button.mint, .button.soft, .button.navy, .chips a {
  background: #fff;
  color: #078f84;
}
.button.red {
  background: #ef1f2d;
  border-color: #ef1f2d;
  color: #fff;
  box-shadow: 0 14px 28px rgba(239, 31, 45, .18);
}
.chips a.active {
  background: #eafffb;
  color: #078f84;
  border-color: #0ba99b;
}
.trust-grid,
.workflow-grid {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}
.trust-grid article,
.workflow-grid article,
.filter-panel,
.product-card,
.auth-card,
.checkout-card,
.line-item,
.total,
.upload-form,
.register-form,
.detail-card,
.order-card,
.profile-hero-card,
.department-card,
.legal-stack article,
.cart-item,
.checkout-summary,
.activity-panel,
.creator-card,
.receipt-card {
  border: 1px solid #e2e9ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 28, 51, .045);
}
.product-grid { gap: 18px; }
@media (min-width: 800px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card img {
  aspect-ratio: 1 / .82;
  border-radius: 14px 14px 0 0;
  border-color: #edf1f4;
}
.product-card h3 { font-size: 16px; line-height: 1.2; }
.product-card strong { color: #09a79a; font-size: 17px; }
.badge, .eyebrow {
  background: #eafffb;
  color: #078f84;
  box-shadow: none;
  padding: 6px 11px;
}
.section-head h2 { color: #141c33; }
.cart-item {
  grid-template-columns: 112px 1fr 92px auto;
  border-radius: 16px;
}
.checkout-summary.compact { box-shadow: none; }
.checkout-page { max-width: 1220px; margin-inline: auto; }
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d6879;
  font-weight: 850;
}
.checkout-steps b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfe7ec;
  border-radius: 50%;
}
.checkout-steps .active b {
  background: #0ba99b;
  border-color: #0ba99b;
  color: #fff;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 22px;
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-form article,
.checkout-side,
.receipt-card {
  padding: 22px;
  border: 1px solid #e2e9ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 28, 51, .045);
}
.payment-choice {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  color: #5d6879;
}
.payment-choice.active {
  border-color: #0ba99b;
  background: #f2fffd;
}
.summary-product {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f4;
}
.summary-product img {
  width: 70px;
  aspect-ratio: 1 / .82;
  border-radius: 10px;
  object-fit: cover;
}
.summary-product span { color: #5d6879; font-weight: 750; }
.summary-product strong { color: #09a79a; }
.trust-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f2fffd;
  color: #5d6879;
  font-weight: 800;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f4;
}
.receipt-head span { display: block; margin-top: 5px; color: #5d6879; }
.creator-directory .directory-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
}
.directory-hero h1 { font-size: clamp(40px, 5vw, 58px); }
.directory-hero img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(13, 171, 158, .14));
}
.directory-filter {
  max-width: none;
  margin: 20px 0;
}
.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.creator-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.creator-card img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}
.creator-card span,
.creator-card p { color: #5d6879; font-weight: 800; line-height: 1.4; }
.market-footer {
  width: min(100% - 48px, 1120px);
  margin: 26px auto 110px;
  color: #5d6879;
}
.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e2e9ee;
  border-radius: 16px;
  background: linear-gradient(90deg, #f2fffd, #fff);
}
.newsletter b,
.footer-grid b { display: block; color: #141c33; margin-bottom: 8px; }
.newsletter form { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.newsletter input {
  border-radius: 10px 0 0 10px;
  border-right: 0;
}
.newsletter button { border-radius: 0 10px 10px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 26px;
  padding: 30px 6px 18px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-brand b {
  display: inline-block;
  color: #08a69a;
  font-size: 20px;
}
.footer-brand p,
.footer-grid a,
.footer-bottom {
  color: #5d6879;
  font-weight: 750;
  line-height: 1.55;
}
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #edf1f4;
}

@media (min-width: 800px) {
  .hero { grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr); padding-top: 34px; max-width: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { display: none; }
}

@media (max-width: 1240px) and (min-width: 800px) {
  .top-market-row { grid-template-columns: auto auto minmax(320px, 1fr) auto; }
  .guide-chip { display: none; }
  .header-actions .text-action { display: none; }
  .brand strong { font-size: 22px; }
  .brand-logo { width: 118px; height: 58px; }
  .header-actions a { padding-inline: 10px; font-size: 13px; }
}

@media (max-width: 799px) {
  body { padding-top: 136px; }
  .market-header { position: fixed; inset: 0 0 auto; }
  .top-market-row { grid-template-columns: 1fr auto auto; padding: 10px 12px; }
  .brand-logo { width: 104px; height: 54px; border-radius: 17px; padding: 4px 6px; }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 11px; }
  .guide-chip, .primary-nav, .creator-nav, .header-actions .text-action, .header-actions .login-action, .header-actions .publish-action { display: none; }
  .menu-drop { grid-column: 2; grid-row: 1; }
  .menu-drop summary {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border-radius: 50%;
  }
  .menu-drop summary span { display: none; }
  .menu-drop div {
    left: auto;
    right: 0;
    top: calc(100% + 18px);
    grid-template-columns: 1fr;
    min-width: min(250px, calc(100vw - 24px));
    padding: 10px;
  }
  .header-actions { grid-column: 3; grid-row: 1; align-self: center; }
  .header-actions .cart-bubble { min-width: 46px; height: 46px; border-radius: 50%; font-size: 15px; }
  .market-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr 50px; min-height: 52px; border-radius: 26px; }
  .market-search select { display: none; }
  .market-search input { font-size: 14px; padding-inline: 14px; }
  .market-search button { margin: 5px; }
  .social-row { grid-template-columns: 1fr; }
  .market-trustbar { display: none; }
  .market-trustbar::-webkit-scrollbar { display: none; }
  .market-trustbar article {
    flex: 0 0 150px;
    grid-template-columns: 1fr;
    min-height: 84px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .market-trustbar img { display: none; }
  .market-trustbar b { font-size: 18px; }
  .market-trustbar span { font-size: 14px; color: var(--muted); }
  .hero-cover { min-height: 260px; border-radius: 22px; }
  .hero-cover span { left: 12px; right: 12px; bottom: 12px; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .section-head, .creator-band { display: grid; grid-template-columns: 1fr; align-items: start; }
  .department-grid, .workflow-grid, .account-grid, .cell-stats, .legal-grid, .form-two, .profile-hero-card, .account-stats, .account-actions, .activity-list, .creator-banner-account { grid-template-columns: 1fr; }
  .account-app-header { grid-template-columns: auto 1fr; }
  .account-app-header a { text-align: center; }
  .cart-item { grid-template-columns: 92px 1fr; }
  .cart-item form, .cart-item strong { grid-column: 1 / -1; }
  .cart-thumb { width: 92px; }
  .account-download-row { grid-template-columns: 64px 1fr; }
  .account-download-row a, .account-download-row em { grid-column: 1 / -1; }
  .workflow-grid { margin-inline: 16px; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1240px) and (min-width: 800px) {
  .top-market-row { grid-template-columns: 220px minmax(300px, 1fr) auto; }
  .brand-logo { width: auto; }
}

@media (max-width: 799px) {
  body { padding-top: 134px; }
  .top-market-row { grid-template-columns: 1fr auto auto; gap: 10px; }
  .brand-logo {
    width: 118px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .brand-logo img {
    width: 118px;
    height: 58px;
    object-fit: contain;
  }
  .menu-drop summary span { display: none; }
  .header-actions .cart-bubble {
    display: inline-flex;
    border: 1px solid #e2e9ee;
    border-radius: 999px;
    background: #fff;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 24px;
  }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .hero-cover {
    min-height: 250px;
    background: radial-gradient(circle at center, #e7fffb, #fff 72%);
  }
  .hero-cover img { padding: 18px; }
  .brand-word { display: none; }
  .checkout-layout,
  .creator-directory .directory-hero,
  .creator-grid,
  .newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .checkout-steps {
    grid-template-columns: 1fr;
  }
  .market-footer { width: min(100% - 28px, 1120px); margin-bottom: 104px; }
  .newsletter form { grid-template-columns: 1fr; gap: 10px; }
  .newsletter input,
  .newsletter button { border-radius: 10px; border-right: 1px solid #dfe7ec; }
  .footer-bottom { display: grid; gap: 8px; }
}

/* Reference preview pass - 2026-06-18
   Local-only restyle to align the custom site/app with the supplied marketplace mockups. */
:root {
  --ref-ink: #101b2f;
  --ref-muted: #66758a;
  --ref-line: #dce8ea;
  --ref-soft: #eefdfb;
  --ref-teal: #0aa99c;
  --ref-teal-dark: #087f76;
  --ref-red: #ef2336;
  --ref-pistachio: #dff8ef;
  --ref-shadow: 0 22px 70px rgba(13, 55, 65, .08);
}

body {
  color: var(--ref-ink);
  background:
    radial-gradient(circle at 86% 10%, rgba(127, 237, 221, .14), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbffff 58%, #fff 100%);
  font-size: 15px;
}

body.ycm-view-home main,
body.ycm-view-shop main,
body.ycm-view-product main,
body.ycm-view-cart main,
body.ycm-view-checkout main,
body.ycm-view-account main,
body.ycm-view-creator main,
body.ycm-view-creators main,
body.ycm-view-admin main {
  width: min(100% - 56px, 1220px);
  margin-inline: auto;
}

.market-header {
  border-bottom: 1px solid var(--ref-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(12, 48, 58, .04);
}

.top-market-row {
  width: min(100% - 56px, 1220px);
  grid-template-columns: 300px 1fr auto auto auto;
  gap: 18px;
  min-height: 86px;
}

.brand-logo {
  width: auto;
  min-width: 286px;
  height: 70px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 12px;
  overflow: visible;
}

.brand-logo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0, 166, 153, .16);
}

.brand-word strong,
.brand-word em {
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-word strong { color: var(--ref-teal-dark); }
.brand-word em { color: var(--ref-ink); font-style: normal; font-weight: 500; }

.guide-chip {
  display: none;
}

.market-search {
  max-width: 620px;
  justify-self: center;
  min-height: 54px;
  border: 1px solid #cfdde1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 45, 55, .05);
  padding: 0 10px 0 18px;
}

.market-search select {
  max-width: 170px;
  border-left: 1px solid #edf2f3;
  color: var(--ref-ink);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
}

.market-search input {
  min-height: 50px;
  font-size: 14px;
  color: var(--ref-ink);
}

.market-search input::placeholder { color: #8995a4; }

.market-search button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ref-teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 169, 156, .22);
}

.menu-drop summary,
.header-actions a,
.header-actions .cart-bubble,
.button:not(.red),
button:not(.red):not(.danger):not(.link),
.pill,
.chip {
  background: var(--ref-pistachio);
  border-color: #bfe8de;
  color: var(--ref-teal-dark);
  box-shadow: none;
}

.button.red,
.header-actions .primary,
.hero .red,
.cart-summary-ref .red,
.product-buy-panel-ref .red,
.checkout-summary .red,
button.red {
  background: linear-gradient(180deg, #f04452 0%, var(--ref-red) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(239, 35, 54, .18);
}

.navline {
  width: min(100% - 56px, 1220px);
  gap: 26px;
  min-height: 54px;
  border-top: 0;
  color: var(--ref-ink);
}

.navline a {
  font-size: 14px;
  font-weight: 700;
}

.hero {
  min-height: 510px;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 64px;
  padding: 62px 0 32px;
}

.hero-copy {
  max-width: 520px;
}

.hero-kicker {
  color: var(--ref-teal-dark);
  background: var(--ref-soft);
  border: 1px solid #d6f2ed;
  border-radius: 999px;
  width: max-content;
  padding: 10px 18px;
  font-size: 15px;
}

.hero h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: .98;
  letter-spacing: 0;
  color: var(--ref-ink);
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: #40516a;
}

.hero-cover {
  min-height: 470px;
  border: 0;
  background: radial-gradient(circle at center, #e9fffb 0%, #fff 58%);
  border-radius: 26px;
  box-shadow: none;
  overflow: visible;
}

.hero-cover::before,
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(10, 169, 156, .14);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-cover::after {
  inset: 19%;
  transform: rotate(16deg);
}

.hero-cover img {
  position: relative;
  z-index: 2;
  width: min(84%, 470px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(6, 50, 61, .13));
}

.hero-cover span {
  display: none;
}

.department-grid {
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.department-card,
.product-card,
.creator-card,
.panel,
.form-card,
.account-card,
.checkout-card,
.cart-table-ref,
.cart-summary-ref,
.product-buy-panel-ref,
.product-tabs-ref,
.product-info-ref,
.profile-hero-card,
.account-downloads,
.account-activity,
.creator-dashboard-card {
  border: 1px solid var(--ref-line);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(18, 50, 62, .045);
}

.department-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 12px;
  color: var(--ref-ink);
}

.department-card svg,
.department-card .icon {
  color: var(--ref-teal);
  stroke-width: 1.8;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card img {
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border-radius: 0;
}

.product-card .product-body,
.product-card > div:not(.wishlist) {
  padding: 14px;
}

.product-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.product-card .price {
  color: var(--ref-teal);
  font-size: 18px;
  font-weight: 800;
}

.product-card .actions {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.section {
  padding-block: 36px;
}

.section h1,
.section h2 {
  letter-spacing: 0;
}

.product-reference-page {
  padding-top: 46px;
}

.product-detail-ref {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 42px;
  align-items: start;
}

.product-gallery-ref {
  display: grid;
  gap: 16px;
}

.gallery-main {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ccece7;
  background: radial-gradient(circle at 50% 45%, #dffff7, #f8fffe 68%);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.gallery-main button {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ref-line);
  color: var(--ref-ink);
  transform: translateY(-50%);
  box-shadow: 0 10px 26px rgba(12, 43, 52, .1);
}

.gallery-main button:first-of-type { left: 18px; }
.gallery-main button:last-of-type { right: 18px; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-thumbs img {
  height: 96px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--ref-line);
}

.gallery-thumbs img:first-child {
  border: 2px solid var(--ref-teal);
  padding: 3px;
}

.product-buy-panel-ref {
  padding: 18px 0 0;
  border: 0;
  box-shadow: none;
}

.product-buy-panel-ref .breadcrumb {
  color: var(--ref-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.product-buy-panel-ref h1 {
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.08;
  margin: 0 0 16px;
}

.creator-inline-ref {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--ref-muted);
  margin-bottom: 18px;
}

.creator-inline-ref img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-inline-ref b,
.creator-inline-ref span {
  display: block;
}

.product-price-ref {
  display: block;
  color: var(--ref-teal);
  font-size: 34px;
  font-weight: 900;
  margin: 16px 0;
}

.product-points-ref {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
  color: #40516a;
}

.license-select-ref,
.quantity-ref {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--ref-muted);
}

.license-select-ref select,
.quantity-ref div {
  min-height: 46px;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  background: #fff;
}

.quantity-ref div {
  display: inline-grid;
  grid-template-columns: 42px 42px 42px;
  width: max-content;
  align-items: center;
  text-align: center;
}

.quantity-ref button {
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ref-ink);
}

.product-buy-panel-ref form,
.product-buy-panel-ref .button {
  width: 100%;
  margin-top: 10px;
}

.product-buy-panel-ref form button,
.product-buy-panel-ref .button {
  width: 100%;
  justify-content: center;
}

.product-info-ref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 34px 0;
  padding: 22px;
}

.product-info-ref article {
  display: grid;
  gap: 6px;
  padding: 8px 22px;
  border-right: 1px solid #edf3f3;
}

.product-info-ref article:last-child {
  border-right: 0;
}

.product-info-ref b {
  color: var(--ref-ink);
}

.product-info-ref span {
  color: var(--ref-muted);
  font-size: 14px;
}

.product-tabs-ref {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 32px;
  padding: 24px;
  margin-bottom: 30px;
}

.product-tabs-ref nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--ref-line);
}

.product-tabs-ref nav a {
  padding: 0 0 14px;
  color: var(--ref-muted);
  font-weight: 700;
}

.product-tabs-ref nav a:first-child {
  color: var(--ref-teal-dark);
  border-bottom: 3px solid var(--ref-teal);
}

.creator-mini-ref {
  border: 1px solid var(--ref-line);
  border-radius: 14px;
  padding: 18px;
}

.cart-reference-page {
  padding-top: 58px;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.cart-title-row h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin: 0 0 10px;
}

.cart-layout-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-table-ref {
  overflow: hidden;
}

.cart-head-ref,
.cart-row-ref {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) .75fr .65fr .65fr .7fr .7fr 42px;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.cart-head-ref {
  color: var(--ref-muted);
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid var(--ref-line);
}

.cart-row-ref {
  min-height: 140px;
  border-bottom: 1px solid #edf3f3;
}

.cart-row-ref:last-child {
  border-bottom: 0;
}

.cart-product-ref {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
}

.cart-product-ref h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-product-ref p,
.cart-product-ref small {
  margin: 0;
  color: var(--ref-muted);
}

.cart-product-ref small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-row-ref strong {
  color: var(--ref-ink);
}

.qty-ref {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  min-height: 42px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  color: var(--ref-muted);
}

.cart-row-ref form button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--ref-line);
  background: #fff;
  color: var(--ref-muted);
  font-size: 18px;
}

.cart-summary-ref {
  position: sticky;
  top: 112px;
  padding: 28px;
}

.cart-summary-ref h2 {
  margin: 0 0 22px;
  font-size: 26px;
}

.cart-summary-ref > div:not(.payment-methods) {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  color: var(--ref-muted);
}

.cart-summary-ref .grand-total {
  margin-top: 18px;
  padding-top: 22px !important;
  border-top: 1px solid var(--ref-line);
  color: var(--ref-ink) !important;
}

.cart-summary-ref .grand-total strong {
  color: var(--ref-teal);
  font-size: 30px;
}

.payment-methods {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.payment-methods span {
  border: 1px solid var(--ref-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  color: #355064;
  background: #fff;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 30px;
}

.checkout-card,
.checkout-summary {
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(18, 50, 62, .045);
}

.checkout-steps {
  width: min(100% - 56px, 1120px);
  margin-inline: auto;
}

.account-grid {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
}

.account-sidebar {
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--ref-shadow);
}

.profile-hero-card {
  grid-template-columns: 1fr 220px;
  align-items: center;
  min-height: 190px;
  padding: 28px;
}

.account-stats {
  grid-template-columns: repeat(4, 1fr);
}

.creator-profile-card {
  border: 1px solid var(--ref-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ref-shadow);
}

.creator-cover {
  min-height: 270px;
  background-position: center;
  background-size: cover;
}

.creator-directory .directory-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 40px;
}

.creator-grid {
  grid-template-columns: repeat(4, 1fr);
}

.market-footer {
  width: min(100% - 56px, 1220px);
  border-top: 1px solid var(--ref-line);
}

@media (max-width: 1050px) {
  .top-market-row {
    grid-template-columns: auto 1fr auto;
  }
  .market-search {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }
  .navline {
    overflow-x: auto;
  }
  .department-grid,
  .product-grid,
  .creator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-ref,
  .cart-layout-ref,
  .checkout-layout,
  .product-tabs-ref,
  .account-grid,
  .creator-directory .directory-hero {
    grid-template-columns: 1fr;
  }
  .cart-summary-ref {
    position: static;
  }
}

/* Reference fidelity pass 2 - 2026-06-20 */
.market-search {
  grid-template-columns: minmax(260px, 1fr) 172px 48px !important;
  min-height: 48px !important;
  height: 48px;
  max-width: 620px;
  border: 1px solid #d5e0e4 !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .035) !important;
}

.market-search input {
  height: 100%;
  padding: 0 18px 0 44px !important;
  font-size: 13px !important;
  font-weight: 650;
  color: #273449;
}

.market-search::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: currentColor;
  color: #7f8ca0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' d='M10.8 18.1a7.3 7.3 0 1 1 0-14.6 7.3 7.3 0 0 1 0 14.6Zm5.2-2.1 4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' d='M10.8 18.1a7.3 7.3 0 1 1 0-14.6 7.3 7.3 0 0 1 0 14.6Zm5.2-2.1 4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.market-search select {
  height: 100%;
  min-width: 0;
  border: 0;
  border-left: 1px solid #e2e9ec;
  background: transparent;
  padding: 0 28px 0 16px;
  color: #1b2638;
  font-size: 12px;
  font-weight: 850;
}

.market-search button {
  width: 42px !important;
  height: 42px !important;
  margin: 3px 3px 3px 0 !important;
  border-radius: 15px !important;
  background: #0aa99a !important;
  box-shadow: 0 12px 22px rgba(10, 169, 154, .22) !important;
}

.market-search button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.7;
}

.hero {
  align-items: center;
  min-height: 560px;
  padding-top: 52px;
  padding-bottom: 42px;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: .99;
  letter-spacing: 0;
}

.hero h1 strong {
  color: #0aa99a;
}

.hero p {
  max-width: 520px;
  color: #526176;
  font-size: 16px;
  line-height: 1.72;
}

.hero-cover {
  position: relative !important;
  min-height: 440px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(114, 234, 217, .18), rgba(114, 234, 217, .06) 34%, transparent 68%) !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: grid !important;
  place-items: center !important;
}

.hero-cover::before,
.hero-cover::after,
.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 10% 2%;
  border: 1px solid rgba(10, 169, 154, .18);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-cover::after,
.logo-orbit::after {
  inset: 21% 12%;
  transform: rotate(20deg);
}

.hero-cover img {
  position: relative;
  z-index: 2;
  width: min(84%, 410px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 410px;
  object-fit: contain !important;
  padding: 0 !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 28px 42px rgba(6, 61, 73, .16));
}

.hero-cover span {
  display: none !important;
}

.shop-hero-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  margin: 18px 0 24px;
}

.shop-hero-ref h1 {
  margin: 0 0 10px;
  color: #172238;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
}

.shop-hero-ref .lead {
  max-width: 540px;
  color: #5d687a;
  font-size: 16px;
  line-height: 1.65;
}

.logo-orbit {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 236, 220, .18), transparent 68%);
}

.logo-orbit img {
  position: relative;
  z-index: 2;
  width: 215px;
  height: 215px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 24px 34px rgba(0, 118, 110, .15));
}

.shop-filter-ref {
  padding: 24px !important;
  border: 1px solid #e1eaee !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .035) !important;
}

.shop-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 150px;
  gap: 16px;
  align-items: end;
}

.shop-filter-form label {
  display: grid;
  gap: 7px;
  color: #536177;
  font-size: 12px;
  font-weight: 800;
}

.shop-filter-form input,
.shop-filter-form select {
  height: 48px;
  border: 1px solid #dbe5e9;
  border-radius: 11px;
  background: #fff;
  color: #172238;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.shop-filter-form .button {
  height: 48px;
  border-radius: 11px;
}

.chips {
  margin: 18px 0 24px;
  gap: 12px;
}

.chips a {
  min-height: 38px;
  border-radius: 9px;
  border-color: #dce7eb;
  background: #fff;
  color: #2a374c;
  font-size: 13px;
  font-weight: 780;
}

.chips a.active {
  background: #eefdf9;
  border-color: #0aa99a;
  color: #008879;
}

.product-card {
  border-radius: 13px !important;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .045) !important;
}

.product-card img {
  aspect-ratio: 1 / .82;
  border-radius: 12px 12px 0 0;
}

.product-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.product-card p {
  font-size: 12px;
}

.department-card,
.account-action,
.creator-upload-types-ref button,
.creator-table-ref,
.auth-card,
.profile-hero-card,
.activity-panel,
.stat,
.cell-preview,
.trust-grid article,
.workflow-grid article {
  border-color: #e0e9ed !important;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .04) !important;
}

@media (max-width: 980px) {
  .market-search {
    max-width: none;
  }
  .shop-hero-ref {
    grid-template-columns: 1fr;
  }
  .logo-orbit {
    min-height: 210px;
  }
  .logo-orbit img {
    width: 170px;
    height: 170px;
  }
  .shop-filter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 799px) {
  .market-search {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    height: 54px;
    min-height: 54px !important;
    border-radius: 22px !important;
  }
  .market-search select {
    display: none !important;
  }
  .market-search button {
    width: 46px !important;
    height: 46px !important;
    margin: 4px !important;
  }
  .hero {
    min-height: auto;
    padding-top: 34px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
  .hero-cover {
    min-height: 300px !important;
  }
  .hero-cover img {
    width: min(84%, 250px) !important;
  }
  .shop-hero-ref h1 {
    font-size: 38px;
  }
}

@media (max-width: 799px) {
  body {
    padding-top: 0;
    padding-bottom: 98px;
  }
  body.ycm-view-home main,
  body.ycm-view-shop main,
  body.ycm-view-product main,
  body.ycm-view-cart main,
  body.ycm-view-checkout main,
  body.ycm-view-account main,
  body.ycm-view-creator main,
  body.ycm-view-creators main,
  body.ycm-view-admin main,
  .top-market-row,
  .navline,
  .market-footer {
    width: min(100% - 28px, 1220px);
  }
  .market-header {
    position: static;
  }
  .top-market-row {
    min-height: 82px;
    grid-template-columns: 140px auto auto;
    gap: 10px;
    padding: 12px 0;
  }
  .brand-logo {
    min-width: 132px;
    width: 132px;
    height: 66px;
    padding: 8px 10px;
    border: 1px solid var(--ref-line);
    border-radius: 20px;
    background: #fff;
  }
  .brand-logo img {
    width: 42px;
    height: 42px;
  }
  .brand-word {
    display: none;
  }
  .market-search {
    min-height: 64px;
    border-radius: 24px;
    padding-left: 16px;
  }
  .market-search select {
    display: none;
  }
  .market-search button {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }
  .hero {
    padding-top: 30px;
    gap: 18px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero p {
    font-size: 19px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-cover {
    min-height: 280px;
    order: -1;
  }
  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid,
  .creator-grid,
  .account-stats,
  .product-info-ref,
  .profile-hero-card {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    min-height: 360px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
  }
  .product-buy-panel-ref h1 {
    font-size: 32px;
  }
  .cart-head-ref {
    display: none;
  }
  .cart-row-ref {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }
  .cart-product-ref {
    grid-template-columns: 86px 1fr;
  }
  .cart-title-row {
    display: grid;
    align-items: start;
  }
  .bottom-nav {
    box-shadow: 0 -14px 36px rgba(13, 47, 58, .12);
  }
}

/* Product-art pass - 2026-06-19
   Keep the reference layout, but make purchasable works look like actual works. */
.hero {
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
}

.hero-cover {
  min-height: 500px;
  border: 1px solid var(--ref-line);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 70px rgba(13, 55, 65, .10);
}

.hero-cover::before,
.hero-cover::after {
  display: none;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 58% center;
  filter: none;
}

.hero-cover span {
  display: inline-flex;
  left: 22px;
  right: 22px;
  bottom: 22px;
  min-height: 46px;
  background: rgba(255, 255, 255, .94);
  color: var(--ref-ink);
  border: 1px solid rgba(220, 232, 234, .85);
  box-shadow: 0 14px 34px rgba(13, 55, 65, .12);
}

.product-card img,
.cart-thumb,
.gallery-thumbs img,
.checkout-summary img,
.account-download-row img {
  background: #f8fffd;
}

.product-card img {
  aspect-ratio: 1 / .86;
  image-rendering: auto;
}

.product-card .badge {
  background: var(--ref-pistachio);
  color: var(--ref-teal-dark);
  box-shadow: none;
  font-size: 12px;
  padding: 6px 10px;
}

.gallery-main {
  background: #fbffff;
}

.gallery-main img {
  object-fit: cover;
  image-rendering: auto;
}

.gallery-thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cart-product-ref h2,
.product-card h3 {
  color: var(--ref-ink);
}

.cart-product-ref small,
.product-card p {
  color: var(--ref-muted);
}

.market-search {
  min-height: 50px;
}

.market-search input {
  min-height: 46px;
}

.market-search button {
  width: 40px;
  height: 40px;
}

@media (max-width: 799px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    min-height: 278px;
    order: 0;
  }

  .hero-cover img {
    padding: 0;
    object-position: 61% center;
  }

  .hero-cover span {
    display: none;
  }

  .product-card img {
    aspect-ratio: 1 / .82;
  }
}

/* Reference detail pass - 2026-06-20
   Closer alignment to the supplied premium marketplace mockups, without changing backend flows. */
:root {
  --yc-line-fine: #e6eef1;
  --yc-card-shadow: 0 18px 55px rgba(14, 42, 55, .055);
  --yc-radius-ref: 18px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.yc-icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.top-market-row {
  min-height: 78px;
  gap: 22px;
}

.brand-logo {
  min-width: 270px;
}

.brand-logo img {
  width: 58px;
  height: 58px;
}

.brand-word strong,
.brand-word em {
  font-size: 29px;
  font-weight: 760;
}

.market-search {
  max-width: 560px;
  min-height: 48px;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(21, 56, 70, .045);
}

.market-search input {
  min-height: 44px;
  font-size: 13px;
}

.market-search button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.navline {
  min-height: 50px;
  gap: 28px;
}

.navline a {
  color: #1d2a3d;
  font-size: 13px;
  font-weight: 760;
}

.menu-drop summary {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.menu-drop summary span {
  display: none;
}

.header-actions .login-action,
.header-actions .publish-action {
  min-height: 44px;
  padding: 0 21px;
  border-radius: 22px;
}

.header-actions .cart-bubble {
  min-width: 58px;
  height: 44px;
  border-radius: 24px;
}

.hero {
  min-height: 530px;
  padding-top: 68px;
  padding-bottom: 20px;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(50px, 5.45vw, 72px);
  line-height: 1.02;
}

.hero p {
  max-width: 560px;
  font-size: 18px;
}

.hero .actions {
  margin-top: 28px;
}

.hero-cover {
  min-height: 430px;
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
  width: min(100% - 56px, 1220px);
  margin: 0 auto 34px;
}

.trust-grid article {
  min-height: 92px;
  border: 1px solid #d9f0eb;
  border-radius: 18px;
  background: #fbfffe;
}

.department-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: stretch;
}

.department-card {
  min-height: 118px;
  gap: 10px;
  padding: 18px 10px;
}

.department-card .yc-icon {
  width: 37px;
  height: 37px;
  color: var(--ref-teal);
}

.department-card b {
  font-size: 14px;
}

.department-card span {
  display: none;
}

.compact-products.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  border-color: var(--yc-line-fine);
  box-shadow: var(--yc-card-shadow);
}

.product-card img {
  aspect-ratio: 1 / .84;
}

.product-card h3 {
  min-height: 40px;
}

.product-card p {
  min-height: 36px;
  font-size: 12px;
}

.card-actions,
.product-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.card-actions .button {
  min-height: 39px;
  padding: 0 12px;
}

.card-actions .button.red {
  font-size: 0;
}

.card-actions .button.red::before {
  content: "Cart";
  font-size: 13px;
}

.filter-panel {
  border: 1px solid var(--yc-line-fine);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--yc-card-shadow);
}

.chips a {
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--yc-line-fine);
  color: #263447;
}

.chips a.active {
  background: #f1fffb;
  border-color: var(--ref-teal);
  color: var(--ref-teal-dark);
}

.product-detail-ref {
  gap: 44px;
}

.gallery-main {
  border-radius: var(--yc-radius-ref);
  border-color: #dcecef;
  background: #effffc;
}

.product-buy-panel-ref h1 {
  font-size: clamp(34px, 3.2vw, 44px);
}

.product-buy-panel-ref .button.mint {
  background: #fff;
  border-color: var(--ref-teal);
}

.product-info-ref,
.product-tabs-ref,
.cart-table-ref,
.cart-summary-ref,
.checkout-form article,
.checkout-side,
.profile-hero-card,
.account-stats a,
.creator-banner-account,
.account-actions a,
.activity-panel,
.order-card,
.upload-form {
  border-color: var(--yc-line-fine);
  box-shadow: var(--yc-card-shadow);
}

.cart-title-row h1,
.section-head h1 {
  font-size: clamp(40px, 4.5vw, 58px);
}

.cart-row-ref {
  min-height: 126px;
}

.cart-thumb,
.cart-product-ref img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-steps {
  margin-top: 28px;
  margin-bottom: 28px;
}

.checkout-side .summary-product img {
  width: 74px;
  height: 74px;
  border-radius: 11px;
  object-fit: cover;
}

.account-dashboard {
  display: grid;
  gap: 22px;
}

.ycm-view-account .section.narrow {
  max-width: none;
  width: min(100% - 56px, 1220px);
}

.ycm-view-account .auth-card {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ycm-view-account .auth-card > h1,
.ycm-view-account .auth-card > .protected {
  display: none;
}

.ycm-view-account .account-dashboard {
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
}

.ycm-view-account .account-app-header {
  grid-column: 1 / -1;
  border: 1px solid var(--yc-line-fine);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--yc-card-shadow);
}

.ycm-view-account .profile-hero-card {
  grid-column: 1;
  grid-row: 2 / span 5;
  position: sticky;
  top: 104px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  min-height: 520px;
  text-align: center;
}

.ycm-view-account .profile-hero-card .button {
  width: 100%;
}

.ycm-view-account .account-stats,
.ycm-view-account .creator-banner-account,
.ycm-view-account .account-actions,
.ycm-view-account .activity-panel,
.ycm-view-account .account-logout {
  grid-column: 2;
}

.ycm-view-account .account-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ycm-view-account .creator-banner-account {
  border-radius: 20px;
  box-shadow: var(--yc-card-shadow);
}

.account-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ref-teal);
  background: #effffc;
  border-radius: 14px;
}

.action-icon .yc-icon {
  width: 23px;
  height: 23px;
}

.creator-dashboard-ref {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 36px;
}

.creator-side-ref {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--yc-line-fine);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--yc-card-shadow);
}

.creator-side-user {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--yc-line-fine);
  text-align: center;
}

.creator-side-user img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-side-user b,
.creator-welcome-ref h1,
.creator-table-ref h2 {
  color: var(--ref-ink);
}

.creator-side-user span {
  color: var(--ref-teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.creator-side-ref nav {
  display: grid;
  gap: 8px;
}

.creator-side-ref nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 12px;
  color: #354258;
  font-weight: 760;
}

.creator-side-ref nav a.active,
.creator-side-ref nav a:hover {
  background: #e9fbf6;
  color: var(--ref-teal-dark);
}

.creator-side-ref nav .yc-icon {
  width: 20px;
  height: 20px;
}

.creator-side-cta {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d5efea;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fffb, #fff);
}

.creator-side-cta b {
  font-size: 22px;
  line-height: 1.1;
  color: var(--ref-teal-dark);
}

.creator-side-cta span {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.35;
}

.creator-side-cta img {
  width: 112px;
  justify-self: center;
  border-radius: 50%;
}

.creator-main-ref {
  display: grid;
  gap: 22px;
}

.creator-welcome-ref {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.creator-welcome-ref h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3.2vw, 42px);
}

.creator-welcome-ref p,
.creator-kpis-ref em,
.creator-table-ref span,
.creator-table-ref em {
  color: var(--ref-muted);
}

.creator-kpis-ref {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.creator-kpis-ref article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--yc-line-fine);
  border-radius: 17px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--yc-card-shadow);
}

.creator-kpis-ref span {
  color: #58677d;
  font-weight: 760;
}

.creator-kpis-ref b {
  color: var(--ref-ink);
  font-size: 30px;
}

.creator-upload-panel-ref {
  padding: 24px;
}

.creator-upload-types-ref {
  display: grid;
  grid-template-columns: 1.28fr repeat(4, minmax(116px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.creator-upload-types-ref button,
.drop-zone-ref {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px solid var(--yc-line-fine);
  border-radius: 14px;
  background: #fff;
  color: var(--ref-teal-dark);
  font-weight: 780;
}

.drop-zone-ref {
  border-style: dashed;
  cursor: pointer;
}

.drop-zone-ref input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creator-upload-types-ref button {
  padding: 16px 10px;
  border-color: #e5edf0;
  background: #fff !important;
}

.creator-upload-types-ref button:hover {
  border-color: var(--teal);
  background: #fbfffe;
  transform: translateY(-1px);
}

.drop-zone-ref {
  padding: 16px;
  background: #fff;
}

.drop-zone-ref small {
  display: block;
  max-width: 150px;
  color: var(--muted);
  line-height: 1.45;
}

.creator-upload-types-ref .yc-icon {
  width: 34px;
  height: 34px;
}

.creator-upload-fields-ref {
  display: grid;
  grid-template-columns: 1.4fr 1fr .75fr 1fr;
  gap: 14px;
}

.creator-panels-ref {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.creator-table-ref {
  border: 1px solid var(--yc-line-fine);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--yc-card-shadow);
}

.creator-table-ref > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.creator-table-ref h2 {
  margin: 0;
  font-size: 21px;
}

.creator-table-ref > div a {
  color: var(--ref-teal-dark);
  font-weight: 800;
  font-size: 13px;
}

.creator-table-ref article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.1fr) .7fr .55fr .7fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid #edf3f3;
  color: #334154;
}

.creator-table-ref article:first-of-type {
  border-top: 0;
}

.creator-table-ref article img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
}

.creator-table-ref article b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-table-ref article strong {
  color: var(--ref-teal-dark);
}

.creator-table-ref article em {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9fbf6;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .department-grid,
  .product-grid,
  .compact-products.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .creator-dashboard-ref,
  .creator-upload-types-ref,
  .creator-upload-fields-ref,
  .creator-panels-ref {
    grid-template-columns: 1fr;
  }
  .creator-side-ref {
    position: static;
  }
  .creator-kpis-ref {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .brand-logo {
    min-width: 96px;
    width: 96px;
    height: 58px;
  }
  .brand-logo img {
    width: 46px;
    height: 46px;
  }
  .department-grid,
  .product-grid,
  .compact-products.product-grid,
  .creator-kpis-ref,
  .account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ycm-view-account .section.narrow {
    width: min(100% - 32px, 720px);
  }
  .ycm-view-account .account-dashboard {
    grid-template-columns: 1fr;
  }
  .ycm-view-account .profile-hero-card,
  .ycm-view-account .account-stats,
  .ycm-view-account .creator-banner-account,
  .ycm-view-account .account-actions,
  .ycm-view-account .activity-panel,
  .ycm-view-account .account-logout {
    grid-column: 1;
  }
  .ycm-view-account .profile-hero-card {
    position: static;
    min-height: auto;
  }
  .creator-dashboard-ref {
    padding-top: 20px;
  }
  .creator-welcome-ref {
    display: grid;
  }
  .creator-table-ref article {
    grid-template-columns: 38px 1fr;
  }
  .creator-table-ref article span,
  .creator-table-ref article strong,
  .creator-table-ref article em {
    grid-column: 2;
    justify-self: start;
  }
}

