:root {
  --ink: #231942;
  --pink: #ff6b9f;
  --mint: #67e8c9;
  --paper: #fffafc;
  --line: #eee;
  --muted: #6b6478;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb, #f7fbff);
}
a {
  color: #6d28d9;
  text-decoration: none;
}
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900;
  color: var(--ink);
}
nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
nav form {
  display: inline;
}
.nav-logout {
  margin: 0;
}
.nav-logout button {
  font: inherit;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 28px 20px;
}
footer {
  padding: 30px 5vw;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  background: white;
  border-top: 1px solid var(--line);
}
.hero {
  padding: 70px 24px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, #ffe1ee, #fff 45%, #defcf4);
  text-align: center;
  box-shadow: 0 20px 50px #23194214;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
}
.hero form {
  display: flex;
  max-width: 680px;
  margin: 25px auto;
  gap: 8px;
}
.hero input,
.filters input,
.filters select,
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: white;
}
button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--ink);
  color: white;
  display: inline-block;
  cursor: pointer;
}
.btn.alt {
  background: var(--pink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.grid.products {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}
.product {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px #2319420d;
}
.product {
  transition: 0.2s;
}
.product:hover {
  transform: translateY(-3px);
}
.thumb,
.banner {
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd1e2, #c7fff1);
  display: grid;
  place-items: center;
  color: #6b6478;
}

.product .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.grid.products > .product {
  min-width: 0;
}

.product h3,
.product p,
.product a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.big {
  height: 330px;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  background: #eee;
  margin: 2px;
}
.badge.ok {
  background: #dcfce7;
  color: #166534;
}
.badge.no {
  background: #fee2e2;
  color: #991b1b;
}
.badge.ai {
  background: #e0e7ff;
  color: #3730a3;
}
.badge.rank {
  background: #fef3c7;
  color: #92400e;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}
.form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.adminnav {
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.muted {
  color: var(--muted);
}
.error {
  color: #b91c1c;
}
@media (max-width: 760px) {
  .top,
  .detail {
    display: block;
  }
  .hero form {
    display: block;
  }
  .hero button {
    margin-top: 8px;
  }
  nav {
    margin-top: 12px;
  }
  .wrap {
    padding: 18px 12px;
  }
}

.notice {
  padding: 14px 18px;
  border-radius: 16px;
  margin: 0 0 18px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.notice.success {
  background: #dcfce7;
  border-color: #86efac;
}
.notice.warning {
  background: #fef3c7;
  border-color: #fcd34d;
}
.notice.error {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.status-card {
  border-left: 8px solid #cbd5e1;
  margin-bottom: 16px;
}
.status-card.status-pending,
.status-card.status_pending,
.status-card.status-pending_review {
  border-left-color: #f59e0b;
}
.status-card.status-approved {
  border-left-color: #22c55e;
}
.status-card.status-denied,
.status-card.status-rejected {
  border-left-color: #ef4444;
}
.badge.pending {
  background: #fef3c7;
  color: #92400e;
}
.tabs {
  margin: 16px 0;
}
.application-list {
  display: grid;
  gap: 16px;
}
.application-intro ul {
  margin: 0;
  padding-left: 20px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  width: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 18px;
}
.storefront {
  display: grid;
  gap: 22px;
}
.store-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.storefront-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px #2319420d;
}
.storefront-banner {
  min-height: 280px;
  background: linear-gradient(135deg, #ffd1e2, #c7fff1);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #6b6478;
}
.storefront-banner.small {
  min-height: 160px;
  border-radius: 18px;
}
.storefront-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 18px 24px 24px;
  margin-top: 0;
}
.storefront-profile .avatar.large {
  margin-top: -78px;
}
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px #23194224;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  overflow: hidden;
}
.avatar.large {
  width: 118px;
  height: 118px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.storefront-title h1 {
  margin: 0.2rem 0;
}
.follow-box {
  text-align: right;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stats-row .card {
  display: grid;
  gap: 4px;
}
.stats-row strong {
  font-size: 1.6rem;
}
.empty-state {
  border-style: dashed;
  text-align: center;
  color: var(--muted);
}
.store-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.seller-summary {
  overflow: hidden;
}
@media (max-width: 760px) {
  .storefront-profile {
    grid-template-columns: 1fr;
    margin-top: 0;
    text-align: center;
  }
  .avatar,
  .avatar.large {
    margin: auto;
  }
  .follow-box {
    text-align: center;
  }
  .storefront-banner {
    min-height: 180px;
  }
  .store-preview-row {
    display: block;
    text-align: center;
  }
}

.gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-license-row {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.inline-license-row label {
  margin: 0;
}

@media (max-width: 760px) {
  .inline-license-row {
    grid-template-columns: 1fr;
  }
}

.page-hero,
.page-cta {
  padding: 52px 28px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, #ffe1ee, #fff 48%, #defcf4);
  box-shadow: 0 20px 50px #23194214;
  text-align: center;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 10px auto 16px;
  max-width: 880px;
}

.page-hero p,
.page-cta p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.page-section {
  margin: 22px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.page-cta {
  background: linear-gradient(135deg, #231942, #6d28d9);
  color: white;
}

.page-cta .btn {
  background: white;
  color: var(--ink);
}

.page-cta .btn.alt {
  background: var(--pink);
  color: white;
}


/* Phase 7 launch polish */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.25rem;
}
.brand-logo span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-logo img {
  display: block;
  max-height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.site-footer {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-footer > div {
  max-width: 360px;
}
.site-footer p {
  margin: 6px 0 0;
}
.site-footer nav {
  justify-content: flex-end;
}
.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
}
.product-meta {
  display: block;
  margin-top: 10px;
}
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.help-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.empty,
.empty-state {
  border: 1px dashed #d8cfe6;
  background: rgba(255, 255, 255, 0.72);
}
.thumb img,
img.thumb {
  width: 100%;
  object-fit: cover;
}
.tabs a {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
}
.tabs a.active {
  background: var(--ink);
  color: white;
}
@media (max-width: 760px) {
  .top {
    padding: 12px 16px;
  }
  .brand-logo img {
    max-height: 36px;
    max-width: 160px;
  }
  .site-footer,
  .site-footer nav {
    display: grid;
    justify-content: stretch;
    text-align: center;
  }
  .site-footer nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .brand-logo span {
    min-height: 36px;
    font-size: 1.15rem;
  }
  .hero,
  .page-hero {
    padding: 44px 18px;
  }
}

/* Phase 7 VPS validation fix: restore polished static page presentation */
.policy-content,
.contact-content,
.terms-content {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.policy-content h2,
.contact-content h2,
.terms-content h2 {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.policy-content h2:first-child,
.contact-content h2:first-child,
.terms-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy-content h3,
.contact-content h3,
.terms-content h3 {
  margin-top: 24px;
}

.policy-date {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.about-hero,
.contact-hero,
.terms-hero,
.privacy-hero {
  position: relative;
  overflow: hidden;
}

.about-hero::after,
.contact-hero::after,
.terms-hero::after,
.privacy-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 77, 166, 0.16);
  pointer-events: none;
}

.page-section.card,
.page-section .card,
.split-grid .card {
  box-shadow: 0 14px 34px rgba(35, 25, 66, 0.08);
}

.page-section ul,
.page-section ol,
.policy-content ul,
.policy-content ol,
.contact-content ul,
.contact-content ol {
  padding-left: 24px;
}

.page-section li,
.policy-content li,
.contact-content li {
  margin: 8px 0;
}

.contact-content ul {
  margin-top: 14px;
}

.page-cta {
  margin-top: 28px;
  padding: 44px 28px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(35, 25, 66, 0.16);
}

@media (max-width: 760px) {
  .policy-content,
  .contact-content,
  .terms-content {
    line-height: 1.65;
  }

  .policy-content h2,
  .contact-content h2,
  .terms-content h2 {
    margin-top: 24px;
  }

  .page-cta {
    padding: 36px 18px;
  }
}

/* Phase 7 VPS validation fix: keep logo fallback text hidden while image loads */
.brand-logo span[hidden],
.brand-logo img[hidden] {
  display: none;
}

/* Phase 8 search and browsing */
.browse-filters {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}
.browse-filters .wide {
  grid-column: span 2;
}
.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.browse-summary,
.pagination {
  margin: 18px 0;
}
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
}
.pagination a.active {
  background: var(--ink);
  color: white;
}
.product-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .browse-filters .wide {
    grid-column: auto;
  }
}

.license-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.license-help-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: help;
  background: #fff;
  color: var(--ink);
}

.license-help-text {
  display: none;
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  width: min(280px, 80vw);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: pre-line;
  box-shadow: 0 10px 24px #23194233;
}

.license-help:hover .license-help-text,
.license-help:focus .license-help-text,
.license-help:focus-within .license-help-text {
  display: block;
}

.license-modal[hidden] {
  display: none;
}

.license-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.license-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 38, 0.72);
}

.license-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 94vw);
  max-height: 82vh;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 10, 38, 0.35);
  padding: 24px;
}

.license-modal-card h2 {
  margin-top: 0;
  padding-right: 42px;
}

.license-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.license-modal-body {
  max-height: 62vh;
  overflow: auto;
  white-space: pre-line;
  line-height: 1.55;
  padding-right: 6px;
}

body.license-modal-open {
  overflow: hidden;
}

.license-help-note {
  color: #4c1d95;
  background: #f3edff;
  border: 1px solid #d8c7ff;
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 600;
}

.license-options {
  margin-bottom: 18px;
}

.share-actions,.social-link-list{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.btn.small{padding:.45rem .75rem;font-size:.9rem}.social-link{display:inline-flex;border:1px solid var(--border,#ddd);border-radius:999px;padding:.35rem .7rem;text-decoration:none;font-weight:700}.help-text{color:var(--muted,#666);font-size:.92rem}


/* Phase 8.75 social/share icon buttons */
.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;
}

.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border, #ddd);
  background: var(--card, #fff);
  color: var(--text, #111);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.icon-btn:hover,
.icon-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  border-color: var(--accent, #7c3aed);
  outline: none;
}

.icon-btn.copied {
  border-color: var(--accent, #7c3aed);
}


.instagram-share-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}


/* Phase 8.75 sidebar share spacing */
.product-aside .share-card,
aside .share-card {
  margin-top: 1rem;
}

.character-counter {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.character-counter.over-limit {
  color: #b91c1c;
  font-weight: 700;
}

/* Live fix: show full uncropped product previews on admin review pages */
.admin-review-preview-item {
  margin: 12px 0 24px;
}

.admin-review-preview-link {
  display: block;
}

.admin-review-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd1e2, #c7fff1);
}

.ip-rights-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.45;
}

.ip-rights-confirmation input[type="checkbox"] {
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: currentColor;
}

.ip-rights-confirmation span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 700px) {
  .ip-rights-confirmation {
    gap: 16px;
    padding: 16px 12px;
    font-size: 1rem;
  }

  .ip-rights-confirmation input[type="checkbox"] {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}

.badge { display: inline-block; min-width: 1.25rem; padding: .1rem .35rem; border-radius: 999px; background: #8b3fd1; color: #fff; text-align: center; font-size: .75rem; }
.notification { border-bottom: 1px solid #ddd; padding: 1rem; }
.notification.unread { border-left: 4px solid #8b3fd1; background: #faf6ff; }
.notification form { display: inline; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.email-preview { white-space: normal; border: 1px solid #ddd; padding: 1rem; background: #fff; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 680px; }
.admin-filters, .admin-actions, .status-counts, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.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; }
@media (max-width: 700px) {
  .admin-filters > *, .admin-actions > * { width: 100%; }
  .status-counts { align-items: flex-start; }
}

/* Phase 10.6 dashboard system */
html,body{max-width:100%;overflow-x:hidden}.dashboard-nav{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1.25rem;padding:.5rem;border:1px solid var(--line);border-radius:14px;background:#fff}.dashboard-nav a{padding:.7rem .85rem;border-radius:10px;min-height:44px;display:flex;align-items:center}.dashboard-nav a.active{background:#8b3fd1;color:#fff;text-decoration:none}.dashboard-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.dashboard-heading h1{margin-bottom:.25rem}.dashboard-grid,.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:1rem}.dashboard-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1rem}.quick-actions{display:flex;flex-wrap:wrap;gap:.65rem}.status-badge{display:inline-flex;padding:.25rem .55rem;border-radius:999px;font-weight:700;font-size:.85rem}.status-badge.ok{background:#d9f7e8;color:#12603c}.status-badge.warning{background:#fff0c2;color:#714f00}.status-badge.danger{background:#ffe0e0;color:#8c1d1d}.status-badge.neutral{background:#eee;color:#444}.attention-panel{border-left:5px solid #d08b00;background:#fff9e8}.empty-state{text-align:center;padding:2rem}.responsive-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.responsive-table table{min-width:680px}.media-row{display:flex;align-items:center;gap:.7rem}.product-thumb{width:56px;height:56px;object-fit:cover;border-radius:10px}.receipt-preview img{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:12px}.password-field{display:flex;align-items:stretch}.password-field input{flex:1;min-width:0}.password-toggle{min-width:64px;min-height:44px}.password-toggle:focus,.dashboard-nav a:focus{outline:3px solid #f6a7c8;outline-offset:2px}@media(max-width:480px){.dashboard-nav a{flex:1 1 calc(50% - .4rem);justify-content:center}.quick-actions>*{flex:1 1 100%}.wrap{padding-left:12px;padding-right:12px}}

/* Phase 10.6 correction: preserve local table scrolling while preventing page overflow. */
.responsive-table { max-width: 100%; overflow-x: auto; overflow-y: visible; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8b3fd1; outline-offset: 3px; }
.dashboard-grid > .card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .responsive-table table { min-width: 640px; } .dashboard-heading > * { min-width: 0; } }

/* Phase 10.6 live dashboard, waitlist, and storefront refinements. */
.dashboard-grid > .card { display:flex; flex-direction:column; align-items:flex-start; gap:.45rem; }
.dashboard-grid > .card > strong { display:block; font-size:clamp(1.35rem,3vw,2rem); line-height:1.05; }
.dashboard-grid > .card > span { display:block; line-height:1.35; }
.dashboard-grid > a.card:focus-visible,.admin-dashboard a:focus-visible,.danger-button:focus-visible { outline:3px solid #8b3fd1; outline-offset:3px; }
.minimal-page { min-height:100%; background:linear-gradient(145deg,#fff7fb 0%,#f3fff9 52%,#f6f0ff 100%); }
.minimal-shell { min-height:100vh; width:min(100% - 2rem,560px); margin:auto; display:grid; place-content:center; padding:2rem 0; }
.waitlist-form-panel { width:100%; margin:0; box-shadow:0 18px 55px #6f46701a; }
.waitlist-form-panel fieldset { border:0; padding:0; margin:0; min-width:0; }
.waitlist-form-panel legend { font-size:1.55rem; font-weight:800; margin-bottom:1rem; color:#372b46; }
.admin-dashboard { position:relative; isolation:isolate; display:grid; gap:1.35rem; padding-bottom:1rem; }
.admin-dashboard::before,.admin-dashboard::after { content:"✦"; position:absolute; z-index:-1; color:#d89be9; opacity:.45; font-size:2rem; }
.admin-dashboard::before { top:1rem; right:4%; transform:rotate(12deg); }
.admin-dashboard::after { top:12rem; left:-.5rem; color:#6bcdb0; font-size:1.3rem; }
.admin-dashboard-hero { position:relative; overflow:hidden; padding:clamp(1.35rem,4vw,2.4rem); border:1px solid #eadcf2; border-radius:26px; background:linear-gradient(120deg,#fff 0%,#fff1f7 48%,#ecfff8 100%); box-shadow:0 14px 40px #6f467012; }
.admin-dashboard-hero::after { content:""; position:absolute; width:130px; height:130px; right:-45px; bottom:-70px; border-radius:50%; background:#d9c5ff66; }
.admin-dashboard-section { margin:0; padding:clamp(1rem,3vw,1.55rem); border:1px solid #ede2f0; border-radius:22px; background:#ffffffde; box-shadow:0 8px 28px #6f46700d; }
.admin-dashboard-section > h2 { margin-top:0; color:#493652; }
.admin-dashboard .attention-panel { border-left:5px solid #d989af; background:linear-gradient(120deg,#fff,#fff4f8); }
.admin-dashboard .dashboard-grid > .card { border-color:#eadff0; background:linear-gradient(150deg,#fff,#fbf8ff); }
.admin-dashboard .dashboard-grid > a.card:hover { border-color:#bf8ddd; box-shadow:0 9px 24px #8b3fd116; text-decoration:none; transform:translateY(-2px); }
.admin-waitlist-section { background:linear-gradient(135deg,#fff,#effff8); }
.admin-quick-section { background:linear-gradient(135deg,#fff9fc,#f4f0ff); }
.permanent-delete-form { display:grid; gap:.45rem; margin-top:.75rem; padding:.75rem; border:1px solid #e8a7ad; border-radius:12px; background:#fff5f5; min-width:260px; }
.danger-button { background:#9b2632; color:#fff; border-color:#9b2632; }
.storefront-banner { width:100%; min-height:0; aspect-ratio:3 / 1; background-size:cover; background-position:center; }
.storefront-banner.small { min-height:0; aspect-ratio:3 / 1; }
@media(max-width:600px){.admin-dashboard-section{padding:.9rem}.admin-dashboard-hero{align-items:stretch}.admin-dashboard-hero .btn{width:100%}.permanent-delete-form{min-width:220px}.minimal-shell{width:min(100% - 1.25rem,560px)}}

/* Phase 10.6 live mobile navigation and table access. */
@media (max-width: 760px) {
  .top {
    display: block;
    padding: 12px;
  }

  .top > .brand {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }

  .top > nav {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    gap: .55rem .8rem;
  }

  .top > nav a,
  .top .nav-logout,
  .top .nav-logout button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top .nav-logout {
    margin: 0;
  }

  .top .nav-logout button {
    font-size: inherit;
  }
}

@media (max-width: 600px) {
  .dashboard-nav a {
    flex: 1 1 calc(50% - .4rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .dashboard-nav a {
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .responsive-table {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px #2319420d;
  }

  .responsive-table::before {
    content: "Swipe left or right to see all table details";
    display: block;
    padding: .7rem .85rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
  }

  .responsive-table table {
    margin: 0;
  }
}

/* Phase 10.6 live action-control polish. */
.product-actions {
  display: grid;
  gap: .45rem;
  min-width: 155px;
}

.product-actions > a,
.product-actions > form,
.product-actions > form > button {
  width: 100%;
  margin: 0;
}

.product-actions > a,
.product-actions > form > button {
  text-align: center;
}

.product-actions .muted {
  display: block;
  font-size: .85rem;
  line-height: 1.4;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.user-actions > form {
  margin: 0;
}

.permanent-delete {
  margin-top: .35rem;
}

.permanent-delete > summary {
  width: fit-content;
  cursor: pointer;
  color: #9b2632;
  font-size: .9rem;
  font-weight: 800;
}

.permanent-delete[open] > summary {
  margin-bottom: .5rem;
}

.permanent-delete-form {
  min-width: 0;
  max-width: 360px;
  margin-top: 0;
  padding: .7rem;
}

.permanent-delete-form input {
  margin-top: .35rem;
}

.permanent-delete-form .danger-button {
  width: auto;
  align-self: start;
  padding: .6rem .9rem;
}

@media (max-width: 600px) {
  .product-actions {
    min-width: 140px;
  }

  .permanent-delete-form {
    min-width: 0;
    width: 100%;
  }
}


/* Featured designer homepage cards */
.featured-designers-section {
  margin-top: 2.5rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading-row h2 {
  margin-bottom: .35rem;
}

.featured-designer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.4rem;
}

.featured-designer-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(49, 28, 74, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.featured-designer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(49, 28, 74, .15);
}

.featured-designer-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(135deg, #6c2bd9, #b44de1 52%, #f08ab6);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.featured-designer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(31, 16, 55, .20)
  );
}

.featured-banner-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.featured-designer-content {
  position: relative;
  padding: 0 1.25rem 1.3rem;
}

.featured-designer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 54px;
}

.featured-designer-avatar {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  margin-top: -42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 84px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede3ff, #fce8f1);
  box-shadow: 0 8px 24px rgba(38, 21, 62, .18);
  color: #6c2bd9;
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
}

.featured-designer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-designer-top .badge {
  margin-top: .85rem;
}

.featured-designer-content h3 {
  margin: .7rem 0 .45rem;
  font-size: 1.25rem;
}

.featured-designer-content h3 a {
  color: var(--text);
  text-decoration: none;
}

.featured-designer-content h3 a:hover {
  color: var(--accent);
}

.featured-designer-bio {
  min-height: 4.5em;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-designer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .88rem;
}

.featured-designer-meta span {
  white-space: nowrap;
}

.featured-store-button {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .featured-designer-grid {
    grid-template-columns: 1fr;
  }

  .featured-designer-card {
    border-radius: 18px;
  }

  .featured-designer-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .featured-designer-avatar {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    margin-top: -37px;
  }
}


/* Homepage feature drag-and-drop management */
.homepage-feature-add {
  margin-bottom: 1.5rem;
}

.homepage-feature-sections {
  display: grid;
  gap: 1.5rem;
}

.homepage-feature-section {
  padding: 1.25rem;
}

.homepage-feature-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.homepage-feature-heading h2 {
  margin-bottom: .3rem;
}

.homepage-feature-count {
  flex: 0 0 auto;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #f1e8ff;
  color: #6628aa;
  font-size: .85rem;
  font-weight: 800;
}

.homepage-sortable-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.homepage-sortable-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(45, 28, 68, .06);
  transition:
    opacity .15s ease,
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.homepage-sortable-item:hover {
  border-color: #b68bdd;
  box-shadow: 0 8px 22px rgba(45, 28, 68, .10);
}

.homepage-sortable-item.is-dragging {
  opacity: .45;
  transform: scale(.99);
  border-color: #8b3fd1;
}

.homepage-drag-handle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9c7eb;
  border-radius: 10px;
  background: #f7f1fc;
  color: #6628aa;
  font-size: 1.25rem;
  cursor: grab;
}

.homepage-drag-handle:active {
  cursor: grabbing;
}

.homepage-feature-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.homepage-feature-details strong {
  overflow-wrap: anywhere;
}

.homepage-feature-type {
  color: var(--muted);
  font-size: .85rem;
}

.homepage-feature-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.homepage-visible-form,
.homepage-remove-form {
  margin: 0;
}

.homepage-visible-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  white-space: nowrap;
}

.homepage-visible-toggle input {
  width: auto;
  margin: 0;
}

.homepage-save-order {
  width: 100%;
}

.homepage-feature-empty {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

@media (max-width: 720px) {
  .homepage-sortable-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .homepage-feature-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}


/* Compact homepage featured grids */
.featured-products-section .grid.products,
.featured-designers-section .featured-designer-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

/* Featured product cards only */
.featured-products-section .product.card {
  padding: .85rem;
  border-radius: 18px;
}

.featured-products-section .product .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 13px;
}

.featured-products-section .product h3 {
  margin: .75rem 0 .45rem;
  font-size: 1rem;
  line-height: 1.2;
}

.featured-products-section .product > p {
  margin: .35rem 0;
  font-size: .88rem;
}

.featured-products-section .product-card-badges {
  gap: .3rem;
  margin-top: .55rem;
}

.featured-products-section .product-card-badges .badge {
  padding: .2rem .4rem;
  font-size: .7rem;
}

.featured-products-section .product-meta {
  font-size: .95rem;
}

/* Featured designer cards only */
.featured-designers-section .featured-designer-card {
  border-radius: 18px;
}

.featured-designers-section .featured-designer-content {
  padding: 0 1rem 1rem;
}

.featured-designers-section .featured-designer-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  margin-top: -34px;
  border-width: 4px;
  font-size: 1.55rem;
}

.featured-designers-section .featured-designer-top {
  min-height: 44px;
}

.featured-designers-section .featured-designer-top .badge {
  margin-top: .65rem;
  font-size: .72rem;
}

.featured-designers-section .featured-designer-content h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.featured-designers-section .featured-designer-bio {
  min-height: 4.2em;
  margin-bottom: .75rem;
  font-size: .86rem;
  line-height: 1.4;
  -webkit-line-clamp: 3;
}

.featured-designers-section .featured-designer-meta {
  gap: .35rem .6rem;
  margin-bottom: .75rem;
  font-size: .76rem;
}

.featured-designers-section .featured-store-button {
  min-height: 40px;
  padding: .55rem .75rem;
  font-size: .9rem;
}

@media (max-width: 1250px) {
  .featured-products-section .grid.products,
  .featured-designers-section .featured-designer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .featured-products-section .grid.products,
  .featured-designers-section .featured-designer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .featured-products-section .grid.products,
  .featured-designers-section .featured-designer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .featured-products-section .grid.products,
  .featured-designers-section .featured-designer-grid {
    grid-template-columns: 1fr;
  }
}

.badge.hand-drawn {
  background: #ffe169;
  color: #5d3a00;
  border: 1px solid #d89b00;
  box-shadow: 0 2px 6px rgba(216, 155, 0, .24);
  font-weight: 800;
}
.badge.founder{border:2px solid currentColor;font-weight:700}.rank-progress{height:1rem;border:1px solid currentColor;border-radius:999px;overflow:hidden;background:#eee}.rank-progress span{display:block;height:100%;background:#6941c6}.rank-levels{display:grid;gap:.5rem}.creator-rank-card{max-width:48rem}

[data-import-progress] progress,[data-csv-upload] progress{display:block;width:100%;height:1.25rem}[data-csv-upload] progress[hidden]{display:none}
/* Phase 12.5 messaging */
.message-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.message-inbox{display:grid;gap:.75rem}.message-row{display:grid;grid-template-columns:minmax(160px,1fr) 2fr auto;gap:1rem;align-items:center;padding:1rem;border:1px solid #ddd;border-radius:14px;background:#fff;text-decoration:none;color:inherit}.message-row.unread{border-left:5px solid var(--accent,#7857d8);background:#faf8ff}.message-row>div{display:flex;flex-direction:column}.thread-history{display:flex;flex-direction:column;gap:1rem;margin:1rem 0}.thread-message{max-width:78%;padding:1rem;border-radius:16px;background:#f1f1f4}.thread-message.mine{align-self:flex-end;background:#eee8ff}.thread-message header{display:flex;justify-content:space-between;gap:1rem;font-size:.85rem}.message-attachment{display:inline-flex;flex-direction:column;margin:.5rem .5rem 0 0}.message-attachment img{width:140px;height:110px;object-fit:cover;border-radius:10px}.message-controls{display:flex;gap:.75rem;margin:1rem 0}.moderation-layout{display:grid;grid-template-columns:minmax(240px,1fr) 2fr;gap:1rem}@media(max-width:700px){.message-row,.moderation-layout{grid-template-columns:1fr}.thread-message{max-width:94%}.message-heading{align-items:flex-start}.message-compose input[type=file]{max-width:100%}}

/* Phase 12.6 — Custom Design editor */
.custom-service-editor {
  max-width: 920px;
  margin: 0 auto;
}

.custom-service-heading {
  margin-bottom: 22px;
}

.custom-service-heading h1 {
  margin: 4px 0 8px;
}

.custom-service-form {
  display: grid;
  gap: 22px;
}

.custom-form-section {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.custom-section-heading h2 {
  margin: 0 0 6px;
}

.custom-section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.custom-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.custom-field {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.custom-field > span {
  display: block;
}

.custom-field-full {
  grid-column: 1 / -1;
}

.custom-field textarea {
  resize: vertical;
  min-height: 110px;
}

.custom-field small {
  color: var(--muted);
  font-weight: 400;
}

.input-with-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.input-with-suffix > span {
  color: var(--muted);
  font-weight: 500;
}

.question-count-field {
  max-width: 260px;
}

.buyer-question-list {
  display: grid;
  gap: 14px;
}

.buyer-question-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.buyer-question-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.question-required-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}

.question-required-toggle input {
  width: auto;
  margin: 0;
}

.buyer-question-empty {
  border: 1px dashed #d8d3df;
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
}

.existing-custom-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.custom-image-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.custom-image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.custom-remove-image {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-remove-image input {
  width: auto;
  margin: 0;
}

.custom-upload-field {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.custom-availability-section {
  padding: 20px 24px;
}

.custom-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.custom-toggle input {
  width: auto;
  margin: 4px 0 0;
}

.custom-toggle span {
  display: grid;
  gap: 3px;
}

.custom-toggle small {
  color: var(--muted);
  font-weight: 400;
}

.custom-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.custom-form-actions .secondary {
  background: #ece8f3;
  color: var(--ink);
}

@media (max-width: 700px) {
  .custom-form-grid {
    grid-template-columns: 1fr;
  }

  .custom-field-full {
    grid-column: auto;
  }

  .custom-form-section {
    padding: 18px;
  }

  .buyer-question-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* Phase 12.6 — configurable buyer brief fields */
.brief-field-list {
  display: grid;
  gap: 10px;
}

.brief-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.brief-field-option,
.brief-field-required {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brief-field-option {
  font-weight: 600;
}

.brief-field-required {
  font-weight: 500;
  color: var(--muted);
}

.brief-field-option input,
.brief-field-required input {
  width: auto;
  margin: 0;
}

.brief-field-required:has(input:disabled) {
  opacity: .45;
  cursor: default;
}

@media (max-width: 650px) {
  .brief-field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* Custom Design detail preview sizing */
.custom-design-preview-image {
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  margin: 18px 0;
  border-radius: 18px;
}

@media (max-width: 760px) {
  .custom-design-preview-image {
    max-width: 100%;
    max-height: 420px;
  }
}


/* Phase 12.6 Custom Design detail gallery */

.custom-design-detail {
  align-items: start;
}

.custom-design-gallery {
  min-width: 0;
}

.custom-design-main-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.custom-design-gallery .custom-design-main-preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  border-radius: 18px;
}

.custom-design-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 96px));
  gap: 10px;
  margin-top: 12px;
}

.custom-design-preview-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
}

.custom-design-preview-thumb.active {
  border-color: var(--ink);
}

.custom-design-gallery .custom-design-preview-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border-radius: 8px;
}

.custom-design-summary {
  position: sticky;
  top: 90px;
}

.custom-design-contact {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.custom-design-contact form {
  margin: 0;
}

.custom-design-purchase-card {
  margin-top: 24px;
}

@media (max-width: 760px) {

  .custom-design-summary {
    position: static;
    margin-top: 18px;
  }

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


/* Phase 12.6 Custom Design sidebar purchase options */

.custom-design-summary {
  position: static;
  top: auto;
}

.custom-design-purchase-options {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.custom-design-purchase-options > h2:first-child {
  margin-top: 0;
}

.custom-design-purchase-options textarea {
  min-height: 90px;
}

.custom-delete-button {
  margin-left: auto;
  border-color: #b42318;
  color: #b42318;
  background: #fff;
}

.custom-delete-button:hover {
  background: #fff4f2;
}

@media (max-width: 760px) {
  .custom-delete-button {
    margin-left: 0;
  }
}

/* Phase 12.6 Custom Orders seller dashboard */
.custom-orders-page {
  width: 100%;
}

.custom-orders-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 10px 0 28px;
}

.custom-orders-header h1 {
  margin: 0 0 8px;
}

.custom-orders-eyebrow {
  margin: 0 0 6px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.custom-orders-intro {
  margin: 0;
  color: var(--muted);
}

.custom-orders-count {
  min-width: 92px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.custom-orders-count strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.custom-orders-count span {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: var(--muted);
}

.custom-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.custom-order-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
}

.custom-order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.custom-order-number {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}

.custom-order-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.custom-order-status,
.custom-order-payment {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.custom-order-status {
  background: #f1e8ff;
  color: #6f2dbd;
}

.custom-order-status.status-new {
  background: #eee8ff;
  color: #5730a6;
}

.custom-order-status.status-in-progress {
  background: #e7f3ff;
  color: #195f9e;
}

.custom-order-status.status-proof-review {
  background: #fff4d6;
  color: #895d00;
}

.custom-order-status.status-revision-requested {
  background: #fff0e6;
  color: #a4470a;
}

.custom-order-status.status-completed {
  background: #e5f8ec;
  color: #217a42;
}

.custom-order-status.status-cancelled,
.custom-order-status.status-refunded {
  background: #f4f4f4;
  color: #666;
}

.custom-order-payment {
  background: #e5f8ec;
  color: #217a42;
}

.custom-order-payment.payment-refunded {
  background: #f4f4f4;
  color: #666;
}

.custom-order-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.custom-order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.custom-order-details > div {
  min-width: 0;
}

.custom-order-detail-label {
  display: block;
  margin-bottom: 3px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: var(--muted);
}

.custom-order-details strong {
  display: block;
  overflow-wrap: anywhere;
}

.custom-order-card-footer {
  margin-top: auto;
  padding-top: 2px;
}

.custom-order-card-footer .btn {
  width: 100%;
  text-align: center;
}

.custom-orders-empty {
  max-width: 620px;
  padding: 28px;
}

.custom-orders-empty h2 {
  margin-top: 0;
}

@media (max-width: 820px) {
  .custom-orders-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .custom-orders-header {
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .custom-orders-header h1 {
    font-size: 2rem;
  }

  .custom-orders-intro {
    font-size: .92rem;
  }

  .custom-orders-count {
    min-width: 72px;
    padding: 11px 12px;
  }

  .custom-orders-count strong {
    font-size: 1.35rem;
  }

  .custom-order-card {
    gap: 16px;
    padding: 18px;
  }

  .custom-order-card-top {
    display: block;
  }

  .custom-order-badges {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .custom-order-details {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
}

/* Responsive grouped dashboard navigation */
.dashboard-switcher{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin:0 0 1rem;padding:.65rem .8rem;border:1px solid var(--border,#ddd);border-radius:.65rem}.dashboard-switcher a{padding:.35rem .65rem;border-radius:.45rem}.dashboard-switcher a.active{background:var(--primary,#4f3578);color:#fff;text-decoration:none}
.dashboard-nav-grouped {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dashboard-nav-group {
  position: relative;
  min-width: 0;
}

.dashboard-nav-group summary {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 11px 36px 11px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #faf8fd;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dashboard-nav-group summary::-webkit-details-marker {
  display: none;
}

.dashboard-nav-group summary::marker {
  display: none;
  content: "";
}

.dashboard-nav-group-name {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.dashboard-nav-group summary small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav-chevron {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform .18s ease;
}

.dashboard-nav-group[open] .dashboard-nav-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.dashboard-nav-group.has-active > summary {
  border-color: rgba(126, 58, 242, .18);
  background: rgba(126, 58, 242, .09);
}

.dashboard-nav-group[open] > summary {
  border-color: rgba(126, 58, 242, .28);
}

.dashboard-nav-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 50;
  width: max(100%, 220px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(36, 23, 58, .14);
}

.dashboard-nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.dashboard-nav-menu a:hover {
  background: #faf8fd;
}

.dashboard-nav-menu a.active {
  background: #8f3fe0;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 760px) {
  .dashboard-nav-grouped {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0 20px;
    padding: 10px;
  }

  .dashboard-nav-group summary {
    min-height: 58px;
    padding: 10px 31px 10px 12px;
  }

  .dashboard-nav-group-name {
    font-size: .94rem;
  }

  .dashboard-nav-chevron {
    right: 10px;
  }

  .dashboard-nav-group[open] {
    grid-column: 1 / -1;
  }

  .dashboard-nav-group[open] .dashboard-nav-menu {
    position: static;
    width: auto;
    margin-top: 7px;
    box-shadow: none;
  }

  .dashboard-nav-menu {
    width: 100%;
  }

  .dashboard-nav-menu a {
    padding: 11px 12px;
  }
}

@media (max-width: 390px) {
  .dashboard-nav-grouped {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-nav-group-name {
    font-size: .88rem;
  }

  .dashboard-nav-group summary small {
    font-size: .68rem;
  }
}

/* Protected marketplace preview-image deterrence */
img[src*="/uploads/product_previews/"],
img[src*="/uploads/custom_designs/examples/"] {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.sponsored-card{position:relative;border:2px solid #ff6b9f}.sponsored-label{position:absolute;z-index:2;top:.6rem;left:.6rem;background:#231942;color:#fff;border-radius:999px;padding:.25rem .6rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.sponsored-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.promo-form{max-width:760px}.promo-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.promo-package{border:1px solid #ddd;border-radius:.5rem;padding:.7rem}.promo-pricing{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.promo-table{overflow-x:auto;-webkit-overflow-scrolling:touch}.promo-table table{min-width:850px;width:100%}.promo-table form{display:inline-block;margin:.15rem}@media(max-width:600px){.promo-form fieldset{grid-template-columns:1fr}.promo-pricing{grid-template-columns:1fr}}
/* Phase 13.5 public promotional graphics library */
.promo-library-hero{max-width:760px;margin:2rem auto 3rem;text-align:center}.promo-library-hero h1{margin:.35rem 0}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--primary,#6d3fc0)}
.promo-library-section{margin:2.5rem 0}.promo-size-group{margin:1.5rem 0}.promo-size-group>h3{margin:0 0 .75rem}.promo-library-grid,.promo-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1.25rem}.promo-graphic-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.promo-graphic-card>a{background:#f4f1f8;display:flex;min-height:220px;align-items:center;justify-content:center}.promo-graphic-card img{display:block;width:100%;max-height:480px;object-fit:contain}.promo-graphic-details{padding:1rem;display:flex;flex:1;flex-direction:column;gap:.75rem}.promo-graphic-details h3{font-size:1rem;margin:0 0 .25rem}.promo-graphic-details p{margin:0}.promo-meta{color:#625b6b}.promo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:auto}.promo-actions form{margin:0}.promo-empty{text-align:center}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem}.promo-admin-card{display:grid;grid-template-columns:120px 1fr;gap:1rem}.promo-admin-card>img{width:120px;height:120px;object-fit:contain;background:#f4f1f8}.promo-graphic-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.promo-graphic-form label{display:flex;flex-direction:column;gap:.35rem}.promo-graphic-form .full{grid-column:1/-1}.promo-graphic-form .check{flex-direction:row}.promo-form-preview{display:block;max-width:min(100%,420px);max-height:320px;object-fit:contain;background:#f4f1f8}
@media(max-width:640px){.promo-library-hero{margin:1rem auto 2rem}.promo-library-grid{grid-template-columns:1fr}.promo-actions>*{flex:1;text-align:center}.page-heading{align-items:flex-start;flex-direction:column}.promo-admin-card{grid-template-columns:80px 1fr}.promo-admin-card>img{width:80px;height:80px}.promo-graphic-form{grid-template-columns:1fr}}

/* Phase 13.5 bulk promo upload review */
.promo-batch-card{
    display:grid;
    grid-template-columns:minmax(180px,280px) 1fr;
    gap:1.25rem;
    margin-bottom:1rem;
}
.promo-batch-preview{
    display:flex;
    align-items:flex-start;
    justify-content:center;
}
.promo-batch-preview img{
    display:block;
    width:100%;
    max-height:360px;
    object-fit:contain;
}
.promo-batch-fields{
    display:flex;
    flex-direction:column;
    gap:.75rem;
}
.promo-batch-fields label{
    display:flex;
    flex-direction:column;
    gap:.35rem;
}
@media(max-width:700px){
    .promo-batch-card{
        grid-template-columns:1fr;
    }
}


/* Phase 13.5 clickable caption copy box */
.promo-caption-copybox{
    width:100%;
    display:block;
    text-align:left;
    border:1px solid #ddd;
    border-radius:.65rem;
    background:#faf9fc;
    padding:.85rem;
    cursor:pointer;
    font:inherit;
    color:inherit;
}
.promo-caption-copybox:hover{
    background:#f4f1f8;
}
.promo-caption-copybox:focus-visible{
    outline:3px solid currentColor;
    outline-offset:2px;
}
.promo-caption-text{
    display:block;
    white-space:normal;
}
.promo-caption-hint{
    display:block;
    margin-top:.6rem;
    font-weight:700;
    opacity:.7;
}


/* Phase 13.5 social promo sharing */
.promo-social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}
.promo-social-pinterest,
.promo-social-facebook,
.promo-social-instagram{
    min-width:105px;
}


/* Collab bundle cards */
.collab-card {
  display: flex;
  flex-direction: column;
}

.collab-card-image-link {
  display: block;
  margin-bottom: 12px;
}

.collab-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.collab-card h3 {
  margin-bottom: 8px;
}

.collab-card-host {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.collab-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0;
}

.collab-card-designers {
  margin-top: 2px;
}

.collab-public-cover {
  display: block;
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}


.collab-preview-gallery {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 340px), 1fr)
  );
  gap: 18px;
  margin-bottom: 20px;
}

.collab-preview-gallery .collab-public-cover {
  width: 100%;
  margin: 0;
}

/* Prize Donations seller form */
.prize-donation-form {
    display: grid;
    gap: 1.25rem;
}

.prize-donation-form > label {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.prize-donation-form > label > input,
.prize-donation-form > label > select,
.prize-donation-form > label > textarea {
    width: 100%;
}

.prize-donation-form .help-text {
    display: block;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.prize-donation-form > .notice {
    margin: 0;
}

.prize-donation-form fieldset {
    margin: 0;
    padding: 1rem 1.1rem;
}

.prize-donation-form fieldset legend {
    padding: 0 0.35rem;
}

.prize-donation-form fieldset label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.45rem 0;
}

.prize-donation-form fieldset input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.prize-donation-form textarea {
    min-height: 110px;
}

.prize-donation-form button[type="submit"],
.prize-donation-form > button {
    justify-self: start;
    margin-top: 0.25rem;
}

.prize-donation-form .prize-authorization {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    justify-content: flex-start;
}

.prize-donation-form .prize-authorization input[type="checkbox"] {
    width: auto;
    margin: 0.2rem 0 0;
    flex: 0 0 auto;
}

.prize-donation-form .prize-authorization span {
    display: block;
    line-height: 1.4;
}
