:root {
  color-scheme: dark;
  --page: #101111;
  --header: #050606;
  --panel: #191a1a;
  --card: #1c1d1d;
  --white: #f8f8f6;
  --muted: #a8aaa8;
  --line: #343636;
  --green: #14c995;
  --green-soft: rgba(20, 201, 149, 0.12);
  --rainbow: linear-gradient(
    110deg,
    #ff344d 0%,
    #ff9d31 24%,
    #ffe45d 43%,
    #36d891 59%,
    #24d9d2 71%,
    #31b9ff 79%,
    #6c83ff 84%,
    #8356eb 88%,
    #a34cda 92%,
    #d94bcf 95%,
    #f052b8 98%,
    #f84f86 99%,
    #ff344d 100%
  );
}

.nav-unread-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  z-index: 2;
  display: inline-flex;
  min-width: 0.85rem;
  height: 0.85rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #0b0c0c;
  border-radius: 999px;
  background: #f04444;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  transition: min-width 150ms ease, height 150ms ease, padding 150ms ease;
}

.nav-unread-badge[hidden] {
  display: none;
}

.nav-unread-dot {
  display: none;
}

.nav-unread-count {
  display: none;
}

.sidebar .site-link.has-unread:hover .nav-unread-badge,
.sidebar .site-link.has-unread:focus-visible .nav-unread-badge {
  min-width: 1.35rem;
  height: 1.1rem;
  padding: 0 0.32rem;
}

.sidebar .site-link.has-unread:hover .nav-unread-count,
.sidebar .site-link.has-unread:focus-visible .nav-unread-count,
.mobile-top-nav a.has-unread[aria-current="page"] .nav-unread-count,
.mobile-bottom-nav a.has-unread[aria-current="page"] .nav-unread-count {
  display: inline;
}

.sidebar .site-link.has-unread:hover .nav-unread-dot,
.sidebar .site-link.has-unread:focus-visible .nav-unread-dot,
.mobile-top-nav a.has-unread[aria-current="page"] .nav-unread-dot,
.mobile-bottom-nav a.has-unread[aria-current="page"] .nav-unread-dot {
  display: none;
}

.mobile-top-nav a.has-unread[aria-current="page"] .nav-unread-badge,
.mobile-bottom-nav a.has-unread[aria-current="page"] .nav-unread-badge {
  min-width: 1.35rem;
  height: 1.1rem;
  padding: 0 0.32rem;
}

.mobile-top-nav .nav-unread-badge,
.mobile-bottom-nav .nav-unread-badge {
  top: 0.52rem;
  right: calc(50% - 1.22rem);
  border-color: #090a0a;
}

.shop-admin-main {
  min-width: 0;
}

.shop-order-toggle {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.shop-order-unread-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
}

.shop-order-card.is-unread .shop-order-unread-dot {
  background: #f04444;
}

.shop-order-title {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.shop-order-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-order-card.is-unread .shop-order-title strong {
  font-weight: 800;
}

.shop-order-card:not(.is-unread) .shop-order-title strong {
  font-weight: 450;
}

.shop-order-menu {
  position: relative;
  flex: 0 0 auto;
}

.shop-order-menu-toggle {
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cfd1d0;
  cursor: pointer;
  letter-spacing: 0.12em;
}

.shop-order-menu-items {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 9rem;
  padding: 0.3rem;
  border: 1px solid #3b3d3d;
  border-radius: 8px;
  background: #202222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.shop-order-menu-items[hidden] {
  display: none;
}

.shop-order-menu-items button {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #eee;
  cursor: pointer;
  text-align: left;
}

.shop-order-menu-items button:hover,
.shop-order-menu-items button:focus-visible {
  background: #343737;
}

.shop-admin-heading {
  margin: -1.5rem 0 1.5rem;
}

.shop-admin-heading .eyebrow {
  margin: 0 0 0.6rem;
  color: #bca8c4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-admin-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.shop-admin-heading > p:last-child {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.shop-admin-notice {
  width: 100%;
  margin: 0 0 1.5rem;
}

.shop-switcher {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid #2e3030;
  border-radius: 12px;
  background: #151717;
}

.shop-switcher > .field-label {
  margin: 0;
}

.shop-switcher > .outline-button {
  min-height: 44px;
  font-size: 0.9rem;
}

.shop-selector-field {
  min-width: 0;
}

.shop-selector-wrap {
  position: relative;
  width: 100%;
}

.shop-selector-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #414545;
  border-radius: 9px;
  background: #101212;
  color: var(--white);
  cursor: pointer;
  font: 400 0.9rem Inter, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.shop-selector-button:focus-visible {
  border-color: #8b65d9;
  box-shadow: 0 0 0 3px rgba(49, 185, 255, 0.1);
  outline: none;
}

.shop-selector-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.shop-selector-button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 150ms ease;
}

.shop-selector-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.shop-selector-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.3rem;
  border: 1px solid #414545;
  border-radius: 10px;
  background: #101212;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.shop-selector-options[hidden] {
  display: none;
}

.shop-selector-option {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e2e4e1;
  cursor: pointer;
  font: 400 0.9rem Inter, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.shop-selector-option:hover,
.shop-selector-option:focus-visible,
.shop-selector-option[aria-selected="true"] {
  background: #282b2b;
  color: #fff;
  outline: none;
}

.shop-item-filters {
  display: flex;
  width: fit-content;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border: 1px solid #353939;
  border-radius: 10px;
  background: #111313;
}

.shop-item-filter {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c6c9c6;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
}

.shop-item-filter.active,
.shop-item-filter:hover,
.shop-item-filter:focus-visible {
  background: #282b2b;
  color: #fff;
  outline: none;
}

.shop-items-storefront-link {
  margin-top: 1rem;
}

.shop-create-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2b2d2d;
}

.shop-create-form[hidden] {
  display: none;
}

.shop-create-form .form-actions {
  grid-column: 1 / -1;
}

.shop-banner-preview {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-banner-preview[hidden] {
  display: none;
}

.shop-banner-preview img {
  display: block;
  width: min(100%, 720px);
  aspect-ratio: 3 / 1;
  border: 1px solid #333535;
  border-radius: 10px;
  background: #101212;
  object-fit: cover;
}

.view-shop-button {
  width: fit-content;
  margin-top: 0.8rem;
}

.shop-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.shop-feature-card h2 {
  margin: 0.25rem 0;
  font-size: 1.2rem;
}

.shop-overview .shop-feature-card {
  display: grid;
  align-content: start;
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.shop-overview .shop-feature-card:hover,
.shop-overview .shop-feature-card:focus-visible,
.shop-overview .shop-feature-card[aria-expanded="true"] {
  border-color: transparent;
  box-shadow: 0 0 0 2px #d94bcf, 0 0 0 4px #24d9d2;
  outline: none;
}

.shop-overview .shop-feature-card[aria-expanded="true"] {
  transform: translateY(-2px);
}

.shop-feature-card > p:not(.eyebrow) {
  min-height: 2.8em;
  color: var(--muted);
  line-height: 1.5;
}

.shop-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows 280ms ease, opacity 220ms ease;
}

.shop-accordion-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 1.5rem;
  opacity: 1;
  pointer-events: auto;
}

.shop-accordion-content {
  min-height: 0;
  overflow: hidden;
}

.shop-accordion-content > .studio-section {
  margin-top: 0;
}

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.store-banner {
  width: 100%;
  height: clamp(150px, 28vw, 340px);
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid #303232;
  border-radius: 14px;
  background: linear-gradient(110deg, #122c2b, #312443, #153344);
}

.store-banner[hidden] {
  display: none;
}

.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-tagline {
  color: #dedfdd;
  font-size: 1.1rem;
  font-weight: 600;
}

.shop-products-grid .community-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.shop-gallery {
  position: relative;
  min-width: 0;
}

.shop-gallery .community-card-gallery {
  width: 100%;
  aspect-ratio: 4 / 3;
  overscroll-behavior-inline: contain;
}

.shop-gallery .community-card-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 0 0 100%;
  object-fit: cover;
}

.shop-gallery-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #252929;
  color: var(--muted);
}

.shop-gallery-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 9, 9, 0.82);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
}

.shop-gallery-button:hover,
.shop-gallery-button:focus-visible {
  border-color: #d94bcf;
  box-shadow: 0 0 0 2px rgba(36, 217, 210, 0.55);
  outline: none;
}

.shop-gallery-prev {
  left: 0.55rem;
}

.shop-gallery-next {
  right: 0.55rem;
}

.shop-products-grid .community-card-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.shop-products-grid .community-card-copy p {
  -webkit-line-clamp: 4;
}

.shop-product-controls {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.shop-product-controls .field-label {
  margin: 0;
}

.shop-product-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d4d5d3;
  font-size: 0.83rem;
}

.shop-products-grid .shop-product-toggle {
  margin-top: 0.1rem;
}

.shop-products-grid .community-card-meta strong {
  color: var(--green);
}

.market-shop-link {
  display: none;
}

.shop-listings-card h3 {
  margin: 0;
  font-size: 1rem;
}

.shop-listings-card .community-card-copy p {
  min-height: auto;
}

.shop-accordion-panels [id="orders"],
.shop-accordion-panels [id="shop-details"],
.shop-accordion-panels [id="list-a-creation"] {
  scroll-margin-top: 90px;
}

.shop-accordion-content .studio-heading > div {
  min-width: 0;
}

.shop-accordion-content .api-notice {
  overflow-wrap: anywhere;
}

.order-count {
  display: inline-grid;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--rainbow);
  color: #101111;
  font-size: 0.8rem;
  vertical-align: middle;
}

.order-count[hidden] {
  display: none;
}

.feature-status {
  display: inline-block;
  margin-top: 0.5rem;
  color: #c2b5c7;
  font-size: 0.8rem;
}

.shop-feature-link {
  justify-self: start;
}

.shop-provider-grid {
  align-items: start;
}

.shop-provider-grid .field-label input {
  width: 100%;
}

.provider-results {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.2rem;
  color: #d7d9d6;
  font-size: 0.84rem;
}

.provider-results:empty {
  display: none;
}

.collection-field[hidden],
.provider-import[hidden] {
  display: none;
}

.provider-import {
  display: grid;
  gap: 0.75rem;
}

.selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e8e9e7;
  font-size: 0.82rem;
}

.selection-actions label,
.shop-product-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selection-count,
.import-product small {
  color: var(--muted);
  font-size: 0.76rem;
}

.import-product-list {
  display: grid;
  max-height: 420px;
  gap: 0.5rem;
  overflow-y: auto;
}

.import-product {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151717;
  cursor: pointer;
}

.import-product img,
.import-product-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  background: #252929;
  object-fit: cover;
}

.import-product strong,
.import-product small {
  display: block;
}

.import-product strong {
  font-size: 0.84rem;
}

.shop-products-list {
  display: grid;
  gap: 0.75rem;
}

.shop-product-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.shop-product-image {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #252929;
  object-fit: cover;
}

.shop-product-copy {
  min-width: 0;
}

.shop-product-copy h3,
.shop-product-copy p {
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.shop-product-copy .eyebrow {
  color: #c2b5c7;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.product-price-field {
  max-width: 220px;
  margin-top: 0.6rem;
}

.product-price-field input {
  width: 100%;
}

.shop-product-toggle {
  white-space: nowrap;
  font-size: 0.82rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.image-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: auto;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 6vw, 5.5rem);
  border-bottom: 1px solid #252727;
  background: rgba(5, 6, 6, 0.96);
  backdrop-filter: blur(14px);
}

.brand-home,
.topbar-actions,
.cart-link,
.account-link {
  display: inline-flex;
  align-items: center;
}

.brand-home {
  width: 40px;
  height: 40px;
  justify-content: center;
}

.topbar-actions {
  gap: 0.5rem;
}

.cart-link {
  position: relative;
  justify-content: center;
  width: 36px;
  height: 40px;
  color: var(--white);
}

.cart-link svg,
.account-link svg,
.my-shop svg,
.nav-option svg,
.search-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not([data-page="market"]) .cart-link {
  display: none;
}

.cart-count {
  position: absolute;
  top: -1px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--green);
  color: #07150f;
  font-size: 0.68rem;
  font-weight: 800;
}

.cart-count[hidden] {
  display: none;
}

.brand-mark {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mark-track,
.mark-rainbow {
  fill: none;
  stroke-width: 8;
}

.mark-track {
  stroke: rgba(255, 255, 255, 0.1);
}

.mark-rainbow {
  stroke-linecap: round;
}

.page-title {
  position: relative;
  padding-left: 0.8rem;
}

.page-title::before {
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 3px;
  border-radius: 4px;
  background: var(--rainbow);
  content: "";
}

.brand-home:hover .brand-mark {
  filter: drop-shadow(0 0 7px rgba(234, 70, 182, 0.4));
}

.market-layout {
  display: grid;
  width: min(1440px, 100%);
  min-height: calc(100vh - 72px);
  grid-template-columns: 78px minmax(0, 1fr);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  z-index: 4;
  justify-self: start;
  top: 72px;
  display: flex;
  width: 78px;
  height: calc(100vh - 72px);
  min-height: 560px;
  flex-direction: column;
  padding: 1.5rem 0.6rem;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid #292b2b;
  background: var(--panel);
  transition: width 180ms ease, box-shadow 180ms ease;
}

.sidebar:hover,
.sidebar:focus-within {
  width: 270px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
}

.sidebar-heading h1 {
  margin: 0;
  overflow: hidden;
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.my-shop {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: var(--white);
  font-size: 1.05rem;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 180ms ease;
}

.my-shop:hover {
  background: transparent;
  color: #aeb4b5;
  box-shadow: none;
}

.my-shop svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.market-nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.nav-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #d4d5d3;
  cursor: pointer;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.market-link {
  text-decoration: none;
}

.nav-option:hover {
  background: #252727;
  box-shadow: inset 3px 0 0 transparent;
  background-image: linear-gradient(#252727, #252727), var(--rainbow);
  background-size: 100% 100%, 220% 100%;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: rainbow-hover 1.8s linear infinite;
}

.site-link:hover {
  background: transparent;
  box-shadow: none;
  color: #aeb4b5;
  animation: none;
}

.nav-option.active {
  background: var(--green-soft);
  color: var(--green);
}

.sidebar:not(:hover):not(:focus-within) .sidebar-heading h1,
.sidebar:not(:hover):not(:focus-within) .sidebar span,
.sidebar:not(:hover):not(:focus-within) .sidebar-section-label,
.sidebar:not(:hover):not(:focus-within) .sort-label,
.sidebar:not(:hover):not(:focus-within) .sort-select,
.sidebar:not(:hover):not(:focus-within) .sidebar-note {
  display: none;
}

.sidebar:not(:hover):not(:focus-within) .site-link .nav-unread-badge:not([hidden]) {
  display: inline-flex;
}

.sidebar:not(:hover):not(:focus-within) .site-pages summary {
  width: 48px;
  height: 44px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.sidebar:not(:hover):not(:focus-within) .site-pages summary::before {
  display: block;
  color: var(--white);
  content: "◎";
  font-size: 1.25rem;
  text-align: center;
}

.sidebar:not(:hover):not(:focus-within) .site-pages summary::after {
  display: none;
}

.sidebar:not(:hover):not(:focus-within) .my-shop,
.sidebar:not(:hover):not(:focus-within) .nav-option,
.sidebar:not(:hover):not(:focus-within) .site-link {
  width: 48px;
  min-width: 48px;
  justify-content: center;
  gap: 0;
  padding-right: 0;
  padding-left: 0;
}

.sidebar:not(:hover):not(:focus-within) .site-pages,
.sidebar:not(:hover):not(:focus-within) .market-nav,
.sidebar:not(:hover):not(:focus-within) .creator-nav {
  margin-right: 0;
  margin-left: 0;
}

.sidebar:not(:hover):not(:focus-within) .market-search {
  margin-top: 1rem;
}

.sidebar:not(:hover):not(:focus-within) .search-box {
  width: 48px;
  justify-content: center;
  padding: 0;
}

.sidebar:not(:hover):not(:focus-within) .search-box input {
  display: none;
}

.sidebar:not(:hover):not(:focus-within) .market-nav,
.sidebar:not(:hover):not(:focus-within) .site-page-links,
.sidebar:not(:hover):not(:focus-within) .creator-nav {
  gap: 0.35rem;
}

.nav-option.active:hover {
  background-image: linear-gradient(#1c2925, #1c2925), var(--rainbow);
  background-size: 100% 100%, 220% 100%;
}

.nav-option svg {
  flex: 0 0 24px;
}

.nav-option span {
  font-size: 1.05rem;
}

.site-pages {
  margin: 1.05rem -0.35rem 0;
}

.site-pages summary {
  padding: 0.35rem 0.65rem;
  color: #909491;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.site-pages summary::-webkit-details-marker {
  display: none;
}

.site-pages summary::after {
  float: right;
  color: var(--green);
  content: "−";
  font-size: 1rem;
  line-height: 0.9;
}

.site-pages:not([open]) summary::after {
  content: "+";
}

.site-page-links,
.creator-nav {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.25rem;
}

.site-link {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid transparent;
  border-radius: 9px;
  color: #c3c6c3;
  font-size: 0.86rem;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 180ms ease;
}

.site-link svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-link:hover {
  background: transparent;
  box-shadow: none;
  color: #aeb4b5;
  animation: none;
}

.site-link.account-link {
  position: static;
  width: auto;
  height: auto;
  justify-content: flex-start;
  gap: 0.75rem;
}

.sidebar-section-label {
  margin: 1.15rem 0 0.25rem;
  padding: 0 0.65rem;
  color: #909491;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.creator-tools-label {
  margin-top: 1rem;
}

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

.market-search {
  margin-top: 1.2rem;
}

.search-box {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  border: 1px solid #3a3c3c;
  border-radius: 12px;
  background: #101111;
  color: var(--muted);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
  border-color: #b55fb3;
  box-shadow: 0 0 0 2px rgba(237, 85, 196, 0.14), 0 0 0 4px rgba(49, 185, 255, 0.08);
}

.search-box svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
}

.search-box input::placeholder {
  color: #9a9c9a;
  opacity: 1;
}

.search-box input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: grayscale(1) brightness(2);
}

.sort-label {
  margin: 1.25rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.sort-select {
  width: 100%;
  min-height: 46px;
  padding: 0 0.8rem;
  border: 1px solid #3a3c3c;
  border-radius: 10px;
  outline: 0;
  background: #101111;
  color: var(--white);
  cursor: pointer;
}

.sort-select:focus-visible {
  border-color: var(--green);
}

.sidebar-note {
  margin: auto 0 0;
  padding-top: 1.5rem;
  color: #858987;
  font-size: 0.78rem;
  line-height: 1.55;
}

.market-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 2.7rem clamp(1.5rem, 4vw, 3.5rem) 4rem;
}

.results-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.results-bar p {
  margin: 0;
  color: #a5a7a5;
  font-size: 0.88rem;
}

.results-accent {
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background: var(--green);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2b2d2d;
  border-radius: 12px;
  background: var(--card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #675064;
  box-shadow: 0 0 0 1px rgba(236, 78, 183, 0.2), 0 7px 28px rgba(74, 95, 255, 0.12);
}

.product-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  margin: 0.7rem;
  border-radius: 7px;
  background: #f6f5f1;
}

.community-product-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-product-gallery {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.community-product-gallery img {
  position: static;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.community-card-gallery {
  display: flex;
  width: 112px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.community-card-gallery img {
  flex: 0 0 112px;
  scroll-snap-align: start;
}

.store-products {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.store-products .community-card {
  grid-template-columns: 1fr;
}

.store-products .community-card-gallery {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.store-products .community-card-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-basis: 100%;
}

.store-products .community-card-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.listing-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.83);
  color: var(--white);
  font-size: 0.69rem;
  backdrop-filter: blur(6px);
}

.art-frame {
  display: grid;
  width: 83%;
  height: 83%;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.7), transparent 35%),
    linear-gradient(140deg, var(--art-a), var(--art-b) 54%, var(--art-c));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.art-figure {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-7deg);
  user-select: none;
}

.product-price {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.83);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 650;
  backdrop-filter: blur(6px);
}

.product-info {
  padding: 0.45rem 1rem 1rem;
}

.product-info h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  min-height: 2.7em;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-description {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  margin: 0.45rem 0 0.85rem;
  color: #b0b2af;
  font-size: 0.87rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info .fulfillment-details {
  display: -webkit-box;
  overflow: hidden;
  margin: -0.45rem 0 0.65rem;
  color: #9ca29e;
  font-size: 0.76rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: #b7bab7;
  font-size: 0.81rem;
}

.product-byline a {
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-button,
.options-button {
  display: inline-block;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  border: 1px solid #3c4c46;
  border-radius: 7px;
  background: #202624;
  color: #d9fff1;
  cursor: pointer;
  font-size: 0.76rem;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.add-button:hover,
.add-button:focus-visible,
.options-button:hover,
.options-button:focus-visible {
  border-color: var(--green);
  background: #18372d;
}

.add-button:disabled {
  color: var(--green);
  cursor: default;
}

.options-notice {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid #3c4c46;
  border-radius: 9px;
  background: #151a18;
  color: #c2c9c4;
  font-size: 0.86rem;
  line-height: 1.5;
}

.options-notice[hidden] {
  display: none;
}

.empty-state {
  padding: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.loading-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  background: #090a0a;
  color: #b2b6b3;
  font-size: 0.86rem;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

body.installed-app-mode .fullscreen-toggle,
body.installed-app-mode .fullscreen-message {
  display: none !important;
}

.loader-mark {
  width: 52px;
  height: 52px;
}

.primary-button,
.text-button {
  font: inherit;
}

.primary-button,
.outline-button,
.text-button {
  cursor: pointer;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#111313, #111313) padding-box, var(--rainbow) border-box;
  color: var(--white);
  font-weight: 650;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.primary-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(237, 85, 196, 0.25);
}

.outline-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(#191b1b, #191b1b) padding-box, var(--rainbow) border-box;
  color: #e8e9e7;
  font-size: 0.83rem;
  text-align: center;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.studio-section {
  display: grid;
  gap: 1.2rem;
  margin-top: 4rem;
  padding-top: 2.3rem;
  border-top: 1px solid #303232;
  scroll-margin-top: 90px;
}

.studio-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.studio-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.studio-heading p:not(.eyebrow),
.panel-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.studio-heading .eyebrow,
.panel-heading .eyebrow {
  margin-bottom: 0.55rem;
}

.studio-panel {
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid #303232;
  border-radius: 15px;
  background: #171919;
  scroll-margin-top: 90px;
}

.panel-heading {
  margin-bottom: 1.1rem;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.panel-heading p {
  font-size: 0.87rem;
}

.community-grid,
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.community-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: 110px minmax(0, 1fr);
  border: 1px solid #303232;
  border-radius: 12px;
  background: #1d2020;
}

.community-card img {
  width: 110px;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  background: #292b2b;
}

.community-card-copy {
  position: relative;
  min-width: 0;
  padding: 0.75rem;
}

.community-card-copy h3,
.community-card-copy h4 {
  padding-right: 2rem;
}

.card-menu-row,
.detail-menu-row {
  display: flex;
  justify-content: flex-end;
}

.card-menu-row {
  padding: 0.3rem 0.4rem 0;
}

.card-menu-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.card-menu-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-menu-button:hover,
.card-menu-button:focus-visible,
.card-menu-button[aria-expanded="true"] {
  background: #2a2c2c;
  color: #f0f0ee;
}

.community-card-copy > .card-menu-button {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
}

@media (pointer: coarse) {
  .card-menu-button {
    width: 44px;
    height: 44px;
  }

  .community-card-copy h3,
  .community-card-copy h4 {
    padding-right: 2.8rem;
  }
}

.report-popover {
  position: fixed;
  z-index: 1000;
  min-width: 150px;
  padding: 0.3rem;
  border: 1px solid #414545;
  border-radius: 10px;
  background: #1c1d1d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.report-popover[hidden] {
  display: none;
}

.report-popover-item {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f0f0ee;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.report-popover-item:hover,
.report-popover-item:focus-visible {
  background: #2a2c2c;
}

.report-dialog {
  width: min(460px, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid #414545;
  border-radius: 14px;
  background: #151717;
  color: #f0f0ee;
}

.report-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.report-form h2 {
  margin: 0;
}

.report-target,
.report-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.community-card-copy h4 {
  overflow: hidden;
  margin: 0;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0;
  color: #aeb2ae;
  font-size: 0.8rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-card-copy .fulfillment-details {
  margin-top: 0.1rem;
  color: #9ca29e;
  font-size: 0.73rem;
  -webkit-line-clamp: 2;
}

.community-card-meta {
  color: #c9ccc9;
  font-size: 0.76rem;
}

.community-card-meta strong {
  color: var(--green);
}

.community-empty {
  margin: 0;
  padding: 1.4rem 0;
  text-align: left;
}

.community-empty[hidden] {
  display: none;
}

.listing-form {
  display: grid;
  max-width: 820px;
  gap: 1rem;
}

.field-label {
  display: grid;
  gap: 0.45rem;
  color: #e2e4e1;
  font-size: 0.85rem;
  font-weight: 600;
}

.field-label input,
.field-label textarea,
.field-label select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #414545;
  border-radius: 9px;
  outline: none;
  background: #101212;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-label textarea {
  min-height: 100px;
  resize: vertical;
}

.field-label input:focus,
.field-label textarea:focus,
.field-label select:focus {
  border-color: #8b65d9;
  box-shadow: 0 0 0 3px rgba(49, 185, 255, 0.1);
}

.field-label input::placeholder,
.field-label textarea::placeholder {
  color: #777d79;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.listing-price-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fulfillment-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.fulfillment-fieldset legend {
  margin-bottom: 0.55rem;
  color: #e2e4e1;
  font-size: 0.85rem;
  font-weight: 600;
}

.radio-card {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #414545;
  border-radius: 9px;
  color: #d6d8d5;
  cursor: pointer;
  font-size: 0.82rem;
}

.radio-card:has(input:checked) {
  border-color: #a36bd8;
  background: rgba(137, 90, 200, 0.12);
}

.radio-card input {
  accent-color: #bd62d2;
}

.field-hint {
  color: #929894;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.5;
}

.upload-field input[type="file"] {
  padding: 0.45rem;
}

.upload-field input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #51445c;
  border-radius: 7px;
  background: #242027;
  color: var(--white);
  cursor: pointer;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid #343738;
  border-radius: 10px;
  color: #bfc3bf;
  font-size: 0.8rem;
}

.image-preview[hidden] {
  display: none;
}

.image-preview img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}

.image-preview-grid {
  flex: 1 1 100%;
}

.text-button {
  margin-left: auto;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: transparent;
  color: #f08abd;
  font-size: 0.78rem;
}

.text-button:hover {
  color: #fff;
}

.exchange-note,
.api-notice {
  margin: 0;
  color: #939995;
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-message {
  margin: 0;
  color: #a8d9c4;
  font-size: 0.83rem;
}

.form-message.error {
  color: #ff9c9c;
}

.provider-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #343737;
  border-radius: 12px;
  background: #1d2020;
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.provider-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: #19435a;
  color: #8ce3ff;
  font-size: 1.2rem;
  font-weight: 800;
}

.gelato-logo {
  background: #402451;
  color: #ed9deb;
}

.provider-header h4 {
  margin: 0;
  font-size: 1rem;
}

.provider-header p {
  margin: 0.2rem 0 0;
  color: #939995;
  font-size: 0.77rem;
}

.provider-status {
  min-height: 2.4em;
  margin: 0;
  color: #a8aaa8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.provider-status.connected {
  color: #76d9ad;
}

.provider-status.error {
  color: #ff9c9c;
}

.provider-test {
  justify-self: start;
}

.api-notice {
  margin-top: 0.85rem;
}

.studio-panel code {
  color: #e7b7ee;
}

.loading-screen {
  background: #090a0a;
}

.mobile-bottom-nav,
.fullscreen-toggle,
.fullscreen-message {
  display: none;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 1.2rem 1rem;
  border-top: 1px solid #292b2b;
  color: #929693;
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: #c5c8c5;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: #ff77bd;
}

.site-footer span {
  white-space: nowrap;
}

.legal-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid #252727;
  background: var(--header);
}

.legal-header img {
  width: 38px;
  height: 38px;
}

.legal-header .market-return {
  margin-left: auto;
  color: #c5c8c5;
  font-size: 0.85rem;
}

.legal-page {
  width: min(880px, 100%);
  min-height: calc(100vh - 144px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 3rem);
  color: var(--white);
  line-height: 1.7;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.legal-page h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: #c2c6c2;
}

.legal-page ul {
  padding-left: 1.4rem;
}

.legal-page .eyebrow {
  color: #b6a2bf;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-page .draft-notice {
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid #604665;
  border-radius: 10px;
  background: rgba(132, 64, 142, 0.1);
  color: #e0c9e6;
}

@keyframes rainbow-hover {
  to {
    background-position: 180% 0;
  }
}

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

@media (max-width: 1050px) {
  .market-layout {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .sidebar {
    min-height: calc(100vh - 72px);
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
    padding: 0 1.15rem;
  }

  .topbar-actions {
    gap: 0.85rem;
  }

  .market-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    flex-direction: column;
  }

  .sidebar {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding: 1.25rem 1rem 0.85rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #292b2b;
    box-shadow: none;
    transition: none;
  }

  .sidebar:hover,
  .sidebar:focus-within {
    width: 100%;
    padding: 1.25rem 1rem 0.85rem;
  }

  .sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
  }

  .sidebar-heading h1 {
    font-size: 2.1rem;
  }

  .sidebar-heading .my-shop {
    min-height: 40px;
    margin: 0;
    padding: 0.45rem;
    font-size: 0.9rem;
  }

  .sidebar-heading .my-shop svg {
    width: 21px;
    height: 21px;
  }

  .sidebar:not(:hover):not(:focus-within) .sidebar-heading h1,
  .sidebar:not(:hover):not(:focus-within) .sidebar span,
  .sidebar:not(:hover):not(:focus-within) .sidebar-section-label,
  .sidebar:not(:hover):not(:focus-within) .sort-label,
  .sidebar:not(:hover):not(:focus-within) .sort-select,
  .sidebar:not(:hover):not(:focus-within) .sidebar-note {
    display: revert;
  }

  .sidebar:not(:hover):not(:focus-within) .site-pages summary {
    width: auto;
    height: auto;
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
  }

  .sidebar:not(:hover):not(:focus-within) .site-pages summary::before {
    display: none;
  }

  .sidebar:not(:hover):not(:focus-within) .my-shop,
  .sidebar:not(:hover):not(:focus-within) .nav-option,
  .sidebar:not(:hover):not(:focus-within) .site-link {
    width: auto;
    min-width: 0;
    justify-content: initial;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
  }

  .sidebar:not(:hover):not(:focus-within) .search-box {
    width: auto;
    justify-content: flex-start;
    padding: 0 0.75rem;
  }

  .sidebar:not(:hover):not(:focus-within) .search-box input {
    display: block;
  }

  .sidebar:not(:hover):not(:focus-within) .site-pages,
  .sidebar:not(:hover):not(:focus-within) .market-nav,
  .sidebar:not(:hover):not(:focus-within) .creator-nav {
    margin-right: initial;
    margin-left: initial;
  }

  .mobile-top-nav,
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #101111;
  }

  .mobile-top-nav {
    min-height: 48px;
    border-bottom: 1px solid #292b2b;
  }

  .mobile-top-nav a,
  .mobile-bottom-nav a {
    display: grid;
    min-width: 54px;
    justify-items: center;
    gap: 0.1rem;
    color: #bfc2bf;
    font-size: 0.65rem;
  }

  .mobile-top-nav a:hover,
  .mobile-bottom-nav a:hover {
    color: #aeb4b5;
    text-shadow: none;
  }

  .mobile-top-nav a svg,
  .mobile-bottom-nav a svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 8;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    border-top: 1px solid #303333;
    background: rgba(9, 10, 10, 0.97);
    backdrop-filter: blur(14px);
  }

  .fullscreen-toggle {
    position: fixed;
    z-index: 9;
    right: 0.65rem;
    bottom: calc(68px + env(safe-area-inset-bottom));
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #6e5570;
    border-radius: 50%;
    background: #18191a;
    color: #fff;
    box-shadow: 0 0 14px rgba(237, 85, 196, 0.2);
    cursor: pointer;
  }

  body.is-fullscreen .fullscreen-toggle {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.is-fullscreen.fullscreen-controls-visible .fullscreen-toggle,
  body.is-fullscreen .fullscreen-toggle:focus-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .fullscreen-toggle:hover {
    border-color: transparent;
    background-image: linear-gradient(#18191a, #18191a), var(--rainbow);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 220% 100%;
    animation: rainbow-hover 1.8s linear infinite;
  }

  .fullscreen-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fullscreen-message:not(:empty) {
    position: fixed;
    z-index: 10;
    right: 0.75rem;
    bottom: calc(118px + env(safe-area-inset-bottom));
    display: block;
    max-width: min(80vw, 300px);
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid #4a4c4c;
    border-radius: 9px;
    background: #181a1a;
    color: var(--white);
    font-size: 0.78rem;
  }

  .market-nav {
    order: 3;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
  }

  .site-pages {
    order: 1;
    margin: 0 0 0.65rem;
  }

  .site-pages summary {
    min-height: 38px;
    padding: 0.55rem 0.65rem;
    border: 1px solid #303333;
    border-radius: 9px;
    background: #171919;
  }

  .site-page-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.35rem 0;
  }

  .site-link {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .sidebar-section-label {
    order: 2;
    margin: 0.25rem 0;
    padding-left: 0.15rem;
  }

  .creator-tools-label {
    order: 4;
    margin-top: 0.45rem;
  }

  .creator-nav {
    order: 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 0.6rem;
  }

  .creator-nav .site-link {
    min-height: 42px;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border: 1px solid #303333;
    background: #171919;
    font-size: 0.7rem;
  }

  .creator-nav .site-link svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .nav-option {
    min-height: 42px;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #303333;
    border-radius: 9px;
    background: #171919;
  }

  .nav-option.active {
    border-color: rgba(20, 201, 149, 0.45);
    background: var(--green-soft);
  }

  .nav-option svg {
    width: 19px;
    height: 19px;
  }

  .nav-option span {
    font-size: 0.9rem;
  }

  .search-box {
    min-height: 44px;
  }

  .sort-label,
  .sidebar-note {
    display: none;
  }

  .sort-select {
    order: 2;
    min-height: 42px;
    margin-top: 0.55rem;
    border-color: #303333;
    background-color: #171919;
  }

  .market-search {
    order: 6;
    margin: 0;
  }

  .sort-select {
    order: 7;
  }

  .sidebar-note {
    display: none;
  }

  .market-main {
    padding: 1.15rem 1rem 5rem;
  }

  .studio-section {
    gap: 0.85rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
  }

  .studio-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-heading .outline-button {
    align-self: flex-start;
  }

  .community-grid,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .shop-overview,
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .shop-switcher {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.8rem;
  }

  .shop-switcher > .outline-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }

  .shop-item-filters {
    width: 100%;
  }

  .shop-item-filter {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 0.45rem;
    font-size: 0.78rem;
  }

  .shop-create-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-create-form .form-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .shop-banner-preview img {
    aspect-ratio: 2 / 1;
  }

  .shop-overview .shop-feature-card {
    min-height: 0;
    padding: 0.8rem;
    border-radius: 12px;
  }

  .shop-feature-card h2 {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .shop-feature-card > p:not(.eyebrow) {
    min-height: 0;
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .shop-overview .shop-feature-card .eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.63rem;
  }

  .market-shop-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #454148;
    border-radius: 999px;
    background: #191a1a;
    color: #f4eef5;
    font-size: 0.82rem;
    font-weight: 650;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
  }

  .market-shop-link:hover,
  .market-shop-link:focus-visible {
    border-color: #d94bcf;
    box-shadow: 0 0 0 2px rgba(36, 217, 210, 0.45);
    color: #fff;
    outline: none;
  }

  .market-shop-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  .view-shop-button {
    margin-top: 0.65rem;
  }

  .shop-gallery .community-card-gallery {
    aspect-ratio: 1;
  }

  .shop-products-grid .community-card-copy {
    padding: 0.65rem;
  }

  .shop-products-grid .community-card-copy h3 {
    font-size: 0.9rem;
  }

  .shop-products-grid .community-card-copy p {
    font-size: 0.75rem;
  }

  .shop-gallery-button {
    width: 1.8rem;
    height: 1.8rem;
  }

  .community-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .community-card img {
    width: 96px;
  }

  .shop-product-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .shop-product-image {
    width: 80px;
  }

  .shop-product-toggle {
    grid-column: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .fulfillment-fieldset {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-bar {
    min-height: 24px;
    margin-bottom: 0.65rem;
  }

  .results-bar p {
    font-size: 0.78rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .product-art {
    margin: 0.45rem;
  }

  .art-figure {
    font-size: clamp(3rem, 15vw, 5.6rem);
  }

  .product-price {
    right: 0.4rem;
    bottom: 0.4rem;
    padding: 0.28rem 0.42rem;
    font-size: 0.68rem;
  }

  .product-info {
    padding: 0.35rem 0.65rem 0.7rem;
  }

  .product-info h2 {
    font-size: 0.95rem;
  }

  .product-description {
    min-height: 2.8em;
    margin: 0.35rem 0 0.65rem;
    font-size: 0.78rem;
  }

  .product-info .fulfillment-details {
    margin-top: -0.3rem;
    font-size: 0.7rem;
  }

  .product-byline {
    gap: 0.35rem;
    font-size: 0.7rem;
  }

  .product-byline a {
    min-width: 0;
    flex: 1;
  }

  .add-button,
  .options-button {
    padding: 0.35rem 0.45rem;
    font-size: 0.66rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem 1rem calc(5.5rem + env(safe-area-inset-bottom));
    text-align: center;
  }
}

.shop-admin-heading .eyebrow,
.market-heading .market-tagline,
.home-hero .eyebrow {
  max-width: 100%;
  font-size: clamp(0.5rem, 2.6vw, 0.78rem);
  letter-spacing: clamp(0.01em, 0.28vw, 0.12em);
  white-space: nowrap;
}

.product-detail-main {
  width: min(100%, 1260px);
}

.not-found-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 73% 39%, rgba(105, 63, 126, 0.12), transparent 34rem),
    #101111;
}

.not-found-main {
  display: grid;
  min-height: min(78vh, 900px);
  place-items: center;
}

.not-found-card {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.2rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid #2d3030;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(28, 30, 30, 0.97), rgba(16, 17, 17, 0.97));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.not-found-art {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  isolation: isolate;
}

.not-found-art::before {
  position: absolute;
  z-index: -1;
  width: min(76%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rainbow);
  content: "";
  filter: blur(68px);
  opacity: 0.14;
}

.not-found-code {
  position: relative;
  color: transparent;
  background: linear-gradient(135deg, #81f7d8 8%, #8c9bff 42%, #e678e5 72%, #ffc67d);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(10rem, 25vw, 17rem);
  font-weight: 900;
  letter-spacing: -0.14em;
  line-height: 0.82;
  padding-right: 0.14em;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 28px rgba(147, 105, 218, 0.2));
}

.not-found-code::before,
.not-found-code::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: attr(data-text);
  color: transparent;
  background: none;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.not-found-code::before {
  transform: translate(0.075em, 0.045em);
  -webkit-text-stroke: 2px rgba(255, 111, 190, 0.72);
}

.not-found-code::after {
  transform: translate(-0.055em, -0.035em);
  -webkit-text-stroke: 2px rgba(96, 224, 236, 0.62);
}

.not-found-code-wide {
  font-size: clamp(7rem, 18vw, 12rem);
  letter-spacing: -0.03em;
}

.not-found-copy {
  min-width: 0;
  max-width: 500px;
}

.not-found-copy .eyebrow {
  color: #d39be0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.not-found-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin: 1rem 0 0;
  color: #b5b8b6;
  font-size: 1.05rem;
  line-height: 1.7;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.not-found-actions .primary-button,
.not-found-actions .outline-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.not-found-actions button {
  color: #f8f8f6;
  cursor: pointer;
  font: inherit;
}

.not-found-help {
  display: inline-block;
  margin-top: 1.2rem;
  color: #aaaead;
  font-size: 0.88rem;
}

.not-found-help:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .not-found-main {
    min-height: auto;
    padding-top: 2rem;
  }

  .not-found-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 1.3rem;
    border-radius: 20px;
  }

  .not-found-art {
    min-height: 230px;
  }

  .not-found-copy {
    padding: 0.2rem 0.25rem 0.7rem;
  }
}

.shop-notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.shop-notification-settings > * {
  min-width: 0;
}

.shop-notification-settings h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.shop-notification-settings .form-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
}

.shop-notification-settings .form-message {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.shop-profile-view-link {
  flex: 0 0 100%;
  width: fit-content;
}

.shop-orders-list {
  display: grid;
  gap: 1rem;
}

.shop-order-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #343737;
  border-radius: 12px;
  background: #141616;
}

.shop-order-heading,
.shop-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.shop-order-heading h3,
.shop-order-card p {
  margin: 0;
}

.shop-order-status {
  padding: 0.3rem 0.6rem;
  border: 1px solid #555052;
  border-radius: 999px;
  color: #eee;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.shop-order-note {
  padding: 0.7rem;
  border-left: 2px solid #746b78;
  color: #dedbdd;
  white-space: pre-wrap;
}

.shop-order-message-form {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid #303333;
}

.product-order-request {
  margin-top: 1.5rem;
  padding: 1.55rem 1.25rem 1.25rem;
  border: 1px solid #373a39;
  border-radius: 14px;
  background: #131515;
}

.product-order-request h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.product-order-request > p {
  margin: 0 0 1rem;
  color: #c1c3c2;
  line-height: 1.5;
}

.product-inquiry-form {
  margin-top: 1rem;
}

.order-chat-main {
  width: min(100%, 900px);
}

.order-chat-panel {
  display: grid;
  gap: 1rem;
}

.order-chat-messages {
  display: grid;
  gap: 0.7rem;
  max-height: 55vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-chat-message {
  max-width: 85%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #343737;
  border-radius: 12px;
  background: #1a1c1c;
  overflow-wrap: anywhere;
}

.order-chat-message-buyer {
  justify-self: end;
  border-color: #315247;
  background: #14231e;
}

.order-chat-message-system {
  justify-self: center;
  max-width: 100%;
  color: #c8c8c8;
  text-align: center;
}

.order-chat-message p {
  margin: 0.35rem 0;
  white-space: pre-wrap;
}

.order-chat-message time {
  color: #a9acab;
  font-size: 0.75rem;
}

@media (max-width: 680px) {
  .shop-notification-settings {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .shop-notification-settings .form-actions {
    flex-wrap: wrap;
  }

  .shop-order-card {
    padding: 0.8rem;
  }

  .shop-order-menu-toggle {
    opacity: 1;
  }
}

.cart-main {
  width: min(100%, 1080px);
}

.cart-heading {
  margin-bottom: 1.5rem;
}

.cart-heading .page-title {
  margin: 0;
}

.cart-heading > p:last-child {
  max-width: 650px;
  color: #b7b9b8;
  line-height: 1.6;
}

.cart-preview-notice,
.cart-error {
  margin: 1rem 0;
}

.cart-error {
  border-color: #8b4545;
  color: #ffc1c1;
}

.cart-empty {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #303232;
  border-radius: 16px;
  background: #191a1a;
}

.cart-empty[hidden],
.cart-content[hidden],
.cart-order-form[hidden],
.cart-order-results[hidden] {
  display: none;
}

.cart-empty h2,
.cart-empty p {
  margin: 0;
}

.cart-empty p {
  color: #b7b9b8;
}

.cart-empty .primary-button {
  margin-top: 0.75rem;
}

.cart-content {
  display: grid;
  gap: 1rem;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(90px, 130px);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #303232;
  border-radius: 14px;
  background: #191a1a;
}

.cart-item-image {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: #242727;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-art {
  font-size: 2.6rem;
}

.cart-item-copy,
.cart-item-controls {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.cart-item-copy h2,
.cart-item-copy p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.cart-item-copy h2 {
  font-size: 1.1rem;
}

.cart-item-copy > p:not(.eyebrow) {
  color: #b7b9b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cart-item-copy .eyebrow {
  margin: 0;
}

.cart-item-price {
  color: #f5f5f2;
}

.cart-fulfillment {
  margin-top: 0.45rem;
}

.cart-fulfillment select,
.cart-item-controls input {
  width: 100%;
  min-width: 0;
}

.cart-item-controls {
  justify-items: end;
}

.cart-item-controls .field-label {
  width: 100%;
}

.cart-item-total {
  margin-top: 0.15rem;
}

.cart-remove {
  justify-self: end;
}

.cart-item-unavailable {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-item-unavailable .cart-item-copy p {
  color: #b7b9b8;
}

.cart-order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.cart-summary,
.cart-note-field,
.cart-privacy-note,
.cart-shipping-address,
.cart-responsibility,
.cart-order-form > button,
.cart-order-form > .form-message {
  grid-column: 1 / -1;
}

.cart-responsibility {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
  color: #c4c7c4;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cart-shipping-address {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.cart-shipping-address h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #f2f3f0;
  font-size: 1rem;
}

.cart-shipping-address > * {
  min-width: 0;
}

.cart-responsibility input {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin: 0.18rem 0 0;
  accent-color: #c05bcc;
}

.cart-responsibility span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-responsibility a {
  color: #a8e5d0;
}

.cart-summary h2,
.cart-summary p {
  margin: 0;
}

.cart-summary > p:not(.cart-subtotal) {
  margin-top: 0.35rem;
  color: #b7b9b8;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem !important;
  padding-top: 0.8rem;
  border-top: 1px solid #343636;
  font-size: 1.05rem;
}

.cart-subtotal strong {
  white-space: nowrap;
}

.cart-order-form > button {
  justify-self: start;
}

.cart-order-results {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #343636;
  border-radius: 12px;
  background: #191a1a;
}

.cart-order-results h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.cart-order-results ul {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.25rem;
}

.cart-order-results li {
  overflow-wrap: anywhere;
}

.cart-order-results p {
  margin: 0.35rem 0;
  color: #b7b9b8;
}

.cart-order-results a {
  color: #a8e5d0;
}

.product-add-to-cart {
  margin-top: 0.6rem;
}

.product-commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-commerce-actions + .form-message a {
  color: #a8e5d0;
}

.product-commerce-actions [hidden],
.product-inquiry-form[hidden],
.listing-form[hidden],
.listing-form button[hidden],
.listing-form a[hidden] {
  display: none;
}

.store-edit-shop {
  width: fit-content;
  margin-top: 0.8rem;
}

.market-type-filter button:focus-visible,
.product-add-to-cart:focus-visible {
  outline: 2px solid #e678e5;
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .market-type-filter {
    width: 100%;
  }

  .market-type-filter button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .cart-item-image {
    width: 74px;
  }

  .cart-item-art {
    font-size: 2rem;
  }

  .cart-item-copy {
    grid-column: 2;
  }

  .cart-item-controls {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    justify-items: stretch;
  }

  .cart-item-controls .field-label {
    max-width: 110px;
  }

  .cart-item-total {
    justify-self: center;
  }

  .cart-remove {
    align-self: center;
  }

  .cart-item-unavailable {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-item-unavailable .cart-item-copy {
    grid-column: 1;
  }

  .cart-item-unavailable .cart-remove {
    grid-column: 2;
  }

  .cart-order-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .cart-summary,
  .cart-note-field,
  .cart-privacy-note,
  .cart-shipping-address,
  .cart-responsibility,
  .cart-order-form > button,
  .cart-order-form > .form-message {
    grid-column: auto;
  }

  .cart-shipping-address {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-shipping-address h3 {
    grid-column: auto;
  }
}

@media (min-width: 681px) {
  .shop-order-menu-toggle {
    opacity: 0;
  }

  .shop-order-card:hover .shop-order-menu-toggle,
  .shop-order-card:focus-within .shop-order-menu-toggle {
    opacity: 1;
  }
}

.product-back-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: #c8c9c8;
  text-decoration: none;
}

.product-back-link:hover {
  color: #fff;
}

.product-detail[hidden] {
  display: none;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.product-detail-gallery {
  min-width: 0;
}

.product-image-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 780px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #272929;
  border-radius: 14px;
  background: #111313;
}

.product-image-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-image-track::-webkit-scrollbar {
  display: none;
}

.product-image-track > img,
.product-detail-art {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  scroll-snap-align: center;
  object-fit: contain;
}

.product-detail-art {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--art-a), var(--art-b) 54%, var(--art-c));
}

.product-zoom-lens {
  position: absolute;
  z-index: 2;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: 250% 250%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.product-image-fullscreen,
.product-image-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(8, 9, 9, 0.82);
  color: #fff;
  cursor: pointer;
}

.product-image-fullscreen {
  top: 1rem;
  right: 1rem;
}

.product-image-fullscreen svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-image-nav {
  top: 50%;
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.product-image-prev {
  left: 0.75rem;
}

.product-image-next {
  right: 0.75rem;
}

.product-image-fullscreen:hover,
.product-image-nav:hover,
.product-overlay-close:hover {
  border-color: transparent;
  background-image: linear-gradient(#111313, #111313), var(--rainbow);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 220% 100%;
  animation: rainbow-hover 1.8s linear infinite;
}

.product-image-thumbnails {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.product-image-thumbnails button {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #383a3a;
  border-radius: 8px;
  background: #111313;
  cursor: pointer;
}

.product-image-thumbnails button[aria-current="true"] {
  border-color: #e2e2df;
}

.product-image-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-copy {
  padding-top: 0.5rem;
}

.product-detail-price {
  margin: 1rem 0;
  color: #f0f0ee;
  font-size: 1.35rem;
  font-weight: 700;
}

.product-detail-description,
.product-detail-meta,
.product-purchase-note,
.product-reviews-notice {
  color: #b8bcba;
  line-height: 1.7;
}

.product-purchase-note,
.product-reviews-notice {
  padding: 0.9rem 1rem;
  border: 1px solid #2c2e2e;
  border-radius: 10px;
  background: #141616;
}

.product-reviews {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #292b2b;
}

.product-reviews h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-stars {
  color: #f2c95d;
  letter-spacing: 0.08em;
}

.product-review-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.product-review {
  padding: 1rem;
  border: 1px solid #292b2b;
  border-radius: 10px;
  background: #121414;
}

.product-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-review-heading time,
.rating-only-review,
.product-no-reviews {
  color: #aeb2af;
}

.product-review > p {
  margin-bottom: 0;
  line-height: 1.6;
}

.product-image-overlay[hidden],
.product-image-fullscreen[hidden],
.product-image-nav[hidden],
.product-zoom-lens[hidden] {
  display: none;
}

.product-image-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.92);
}

.product-image-overlay img {
  width: min(92vw, 1100px);
  height: min(84vh, 900px);
  object-fit: contain;
}

.product-overlay-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #454747;
  border-radius: 50%;
  background: #111313;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-image-stage {
    height: min(68vh, 620px);
    min-height: min(68vw, 340px);
  }

  .product-detail-copy {
    padding-top: 0.25rem;
  }

  .product-reviews {
    margin-top: 2rem;
  }
}

@media (hover: none) {
  .product-zoom-lens {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.mobile-top-nav {
  display: none;
}

.market-layout {
  width: 100%;
  min-height: 100vh;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0;
}

.sidebar {
  position: sticky;
  z-index: 10;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  left: 0;
  width: 72px;
  height: 100vh;
  min-height: 0;
  padding: 0.75rem 0.65rem;
  overflow: visible;
  border-right: 1px solid #252727;
  background: #050606;
  transition: width 340ms cubic-bezier(0.34, 1.48, 0.64, 1), box-shadow 180ms ease, padding 180ms ease;
}

.sidebar:hover,
.sidebar:focus-within {
  width: 252px;
  padding-right: 1rem;
  padding-left: 1rem;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.4);
}

.sidebar-brand {
  display: grid;
  width: 48px;
  height: 52px;
  place-items: center;
  margin: 0 0 0.5rem;
}

.sidebar-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.sidebar-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-group {
  display: grid;
  gap: 0.15rem;
}

.sidebar-group + .sidebar-group {
  padding-top: 0.75rem;
}

.legal-page-body .legal-page {
  width: min(880px, calc(100% - 72px));
  min-height: calc(100vh - 72px);
  margin: 0 0 0 calc(72px + max(0px, (100vw - 72px - 880px) / 2));
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.donate-amounts span {
  min-width: 52px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #454747;
  border-radius: 8px;
  background: #171919;
  color: #e2e3e1;
  text-align: center;
}

.sidebar .site-link {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 42px;
  min-height: 42px;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0 0.75rem;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #e4e5e3;
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  transition: width 200ms ease, color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.sidebar .site-link[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #e4e5e3;
}

.sidebar .site-link:hover,
.sidebar .site-link:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #aeb4b5;
}

.sidebar .site-link svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar .site-link span {
  display: none;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
}

.sidebar:hover .site-link,
.sidebar:focus-within .site-link {
  width: 220px;
}

.sidebar:hover .site-link span,
.sidebar:focus-within .site-link span {
  display: inline;
  width: auto;
  opacity: 1;
  visibility: visible;
}

.sidebar:hover .site-link .nav-unread-badge:not([hidden]),
.sidebar:focus-within .site-link .nav-unread-badge:not([hidden]) {
  display: inline-flex;
}


.market-main {
  min-width: 0;
  padding: 2rem clamp(1rem, 4vw, 3.5rem) 4rem;
}

.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin: -1.25rem 0 1rem;
}

.market-heading .page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.market-tagline {
  margin: 0 0 0.35rem;
  color: #bca8c4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-heading .cart-link {
  position: relative;
  border-radius: 50%;
  background: #101111;
}

.market-quick-links {
  position: fixed;
  z-index: 12;
  top: 18px;
  right: 24px;
  display: grid;
  gap: 0.45rem;
}

.market-heading .cart-link:hover {
  color: #ff8bd1;
}

.market-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.market-controls .market-search {
  min-width: 0;
  margin: 0;
}

.market-type-filter {
  display: flex;
  min-width: 0;
  gap: 0.35rem;
}

.market-type-filter button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #343636;
  border-radius: 8px;
  background: #151717;
  color: #c5c8c5;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.market-type-filter button.active {
  border-color: #6b596d;
  background: #211d22;
  color: #fff;
}

.market-type-filter button:hover {
  border-color: transparent;
}

.market-controls .sort-select {
  width: auto;
  min-height: 42px;
  margin: 0;
  border-color: #343636;
  border-radius: 8px;
  background: #151717;
  color: #c5c8c5;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
}

.market-sort-controls {
  display: contents;
}

.market-controls .sort-select {
  grid-row: 1;
  grid-column: 3;
}

.market-location-controls {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-family: inherit;
}

.market-location-primary {
  display: flex;
  flex: 1 1 320px;
  min-width: 0;
  align-items: flex-end;
  gap: 0.5rem;
}

.market-location-search-label {
  position: relative;
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  color: #b9a3c9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-location-search-label input {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  width: 100%;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid #3a3c3c;
  border-radius: 10px;
  outline: 0;
  background: #101111;
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
}

.market-location-search-label input::placeholder,
.market-location-distance input::placeholder {
  color: #777d79;
}

.market-location-search-label input:focus-visible,
.market-location-distance input:focus-visible {
  border-color: var(--green);
}

.market-location-primary .outline-button {
  min-height: 42px;
  flex: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid #343636;
  border-radius: 8px;
  background: #151717;
  color: #c5c8c5;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.market-location-primary .outline-button:hover {
  border-color: #4a4d4d;
  background: #1b1d1d;
  box-shadow: none;
  transform: none;
}

.market-location-distance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #c5c8c5;
  font-size: 0.86rem;
  font-weight: 650;
}

.market-location-distance input {
  width: 5.5rem;
  min-height: 42px;
  padding: 0 0.6rem;
  border: 1px solid #3a3c3c;
  border-radius: 10px;
  outline: 0;
  background: #101111;
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
}

.market-location-distance input:disabled,
.market-location-distance .text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.market-location-distance .text-button {
  margin-left: 0;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.market-location-status {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.market-location-suggestions {
  position: absolute;
  z-index: 20;
  top: 46px;
  left: 0;
  width: min(420px, 100%);
  max-height: 260px;
  overflow-y: auto;
  padding: 0.3rem;
  border: 1px solid #414545;
  border-radius: 10px;
  background: #1c1d1d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.market-location-suggestions[hidden] {
  display: none;
}

.market-location-suggestion {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f0f0ee;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
}

.market-location-suggestion:hover,
.market-location-suggestion:focus-visible {
  background: #2a2c2c;
}

.market-map-dialog {
  width: min(760px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid #414545;
  border-radius: 14px;
  background: #151717;
  color: #f0f0ee;
  font-family: inherit;
}

.market-map-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.market-map-dialog-content {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
}

.market-map-dialog-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.market-map-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.market-map-dialog-heading h2 {
  margin: 0;
}

.market-location-map {
  width: 100%;
  height: min(50vh, 380px);
  overflow: hidden;
  border: 1px solid #343636;
  border-radius: 10px;
  background: #101111;
}

.market-map-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.home-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 8vw, 7rem) 5rem;
}

.profile-preview .home-main {
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
}

.home-hero,
.home-how-it-works {
  width: min(100%, 900px);
  margin: 0 auto;
}

.home-hero .eyebrow {
  color: #bca8c4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 780;
  letter-spacing: -0.06em;
}

.home-hero p {
  max-width: 760px;
  color: #c6c8c6;
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.7;
}

.home-signup {
  display: inline-flex;
  margin-top: 1rem;
}

.prototype-notice {
  width: min(100%, 900px);
  margin: 2.5rem auto;
  padding: 1rem 1.15rem;
  border: 1px solid #615064;
  border-radius: 10px;
  background: rgba(132, 64, 142, 0.1);
  color: #e4d9e8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.home-features,
.home-steps {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.home-features article,
.home-steps article {
  padding: 1.4rem;
  border: 1px solid #303333;
  border-radius: 12px;
  background: #171919;
}

.home-features h2,
.home-steps h3 {
  margin-top: 0;
}

.home-features p,
.home-steps p {
  color: #b5b8b5;
  line-height: 1.65;
}

.home-how-it-works {
  margin-top: 4rem;
}

.home-how-it-works > h2 {
  margin-bottom: 1.5rem;
}

.home-how-it-works > .outline-button {
  display: inline-flex;
  margin-top: 1.25rem;
}

@media (max-width: 680px) {
  .market-layout {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    display: none;
  }

  .mobile-top-nav {
    position: fixed;
    z-index: 11;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: calc(60px + env(safe-area-inset-top));
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    padding: env(safe-area-inset-top) 0 0;
    overflow: hidden;
    border-bottom: 1px solid #090a0a;
    background: #090a0a;
  }

  .mobile-top-nav a,
  .mobile-bottom-nav a {
    position: relative;
    display: flex;
    width: 20%;
    min-width: 0;
    height: 60px;
    flex: 1 1 20%;
    align-items: center;
    justify-content: center;
    color: #d4d5d3;
  }

  .mobile-top-nav a:hover,
  .mobile-bottom-nav a:hover {
    color: #aeb4b5;
    filter: none;
  }

  .mobile-top-nav a svg,
  .mobile-bottom-nav a svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-top-nav .icon-market {
    stroke-width: 2.5;
  }

  .mobile-top-nav .mobile-brand-mark {
    width: 46px;
    height: 46px;
  }

  .mobile-bottom-nav a .icon-messages {
    overflow: visible;
    transform: none;
  }

  .market-main {
    padding: 4rem 1rem 6rem;
  }

  .shop-admin-main {
    padding-top: 5.25rem;
  }

  .market-heading,
  .shop-admin-heading {
    margin-top: 0;
  }

  .home-main {
    padding: 4rem 1rem 6rem;
  }

  .legal-page-body .legal-page {
    width: 100%;
    min-height: calc(100vh - 52px);
    margin: 0;
    padding: 2rem 1rem 4rem;
  }

  .home-features,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .market-heading {
    position: relative;
    min-height: 46px;
    margin-bottom: 0.75rem;
  }

  .market-heading .cart-link {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-self: auto;
    margin: 0;
  }

  .market-quick-links {
    position: absolute;
    top: 1.05rem;
    right: 0.5rem;
    gap: 0.38rem;
  }

  .market-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .market-controls .market-search {
    grid-column: 1 / -1;
  }

  .market-type-filter {
    grid-column: 1 / -1;
  }

  .market-controls .sort-select {
    grid-row: auto;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    font-size: 0.78rem;
  }

  .market-location-controls {
    grid-row: auto;
    order: 1;
  }

  .market-controls .sort-select {
    order: 2;
  }

  .market-location-primary {
    flex-basis: 100%;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 11;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    height: calc(60px + env(safe-area-inset-bottom));
    min-height: calc(60px + env(safe-area-inset-bottom));
    align-items: flex-start;
    gap: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid #090a0a;
    background: #090a0a;
  }
}

.share-button {
  margin: 0.4rem 0.6rem 0.4rem 0;
}

.share-dialog .share-lead {
  margin: 0;
  color: #d6d8d6;
  line-height: 1.5;
}

.share-dialog .share-link {
  width: 100%;
}

.share-actions {
  flex-wrap: wrap;
}

.share-actions a.outline-button {
  display: inline-block;
  text-decoration: none;
}

.share-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-style: normal;
}

.sidebar .site-link .nav-icon-wrap .nav-unread-badge {
  top: -5px;
  right: -7px;
}

.not-found-card.adult-only-card {
  grid-template-columns: minmax(0, 1fr);
}

.past-orders {
  margin-top: 2.5rem;
}

.past-orders h2 {
  margin: 0 0 0.3rem;
}

.past-order {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.7rem;
  border: 1px solid #343737;
  border-radius: 12px;
  background: #121414;
}

.past-order p {
  margin: 0.15rem 0 0;
  color: #b7b9b8;
  font-size: 0.9rem;
}

.past-order-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 681px) {
  .sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .market-layout > :not(.sidebar) {
    grid-column: 2;
  }

  .site-footer {
    position: relative;
    z-index: 1;
    padding-left: 88px;
  }

  .market-heading,
  .shop-admin-heading {
    margin-top: calc(clamp(2rem, 6vw, 5rem) - 2rem + 12px);
    margin-bottom: 1.5rem;
  }

  .market-heading .page-title,
  .shop-admin-heading h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 780;
    letter-spacing: -0.06em;
    line-height: 1.15;
  }

  .market-heading .market-tagline,
  .shop-admin-heading .eyebrow {
    margin: 0 0 1.2rem;
  }
}

.chat-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  color: inherit;
}

.chat-back-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messages-main {
  width: min(100%, 1180px);
}

.shop-order-shop {
  font-size: 0.85rem;
  opacity: 0.7;
}

.shop-order-card.is-selected {
  border-color: currentColor;
  background: rgba(127, 127, 127, 0.1);
}

.messages-chat-pane .order-chat-messages {
  max-height: 50vh;
  overflow-y: auto;
}

@media (min-width: 681px) {
  .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .messages-list-pane {
    max-height: 75vh;
    overflow-y: auto;
  }

  .messages-chat-pane {
    min-height: 60vh;
  }
}

@media (max-width: 680px) {
  .messages-chat-pane {
    display: none;
  }
}

html {
  font-size: 106.25%;
}

@media (min-width: 681px) {
  html {
    font-size: 118.75%;
  }

  .site-link svg {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .site-link {
    min-height: 46px;
  }
}

.market-location-controls {
  align-items: flex-end;
}

.market-location-distance {
  align-items: center;
  min-height: 42px;
}

@media (min-width: 681px) {
  .home-main {
    padding-left: clamp(1rem, 4vw, 3.5rem);
  }
}

.home-main .home-hero,
.home-main .home-how-it-works {
  margin-left: 0;
}

.site-footer,
.site-footer a,
.site-footer span {
  font-size: 1rem;
}

.home-main .home-features,
.home-main .home-how-it-works {
  width: min(100%, 1080px);
  margin-left: 0;
}

.home-main .home-how-it-works .home-steps {
  width: 100%;
  margin: 0;
}

.home-features article,
.home-steps article {
  min-height: 11rem;
  box-sizing: border-box;
}

.home-features h2,
.home-steps h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.home-features article,
.home-steps article {
  min-height: 17.5rem;
}

.home-how-it-works > .primary-button {
  display: inline-flex;
  margin-top: 1.5rem;
}

/* Hover-expanding unread badges */
@media (min-width: 681px) {
  .sidebar:hover .nav-unread-badge:not([hidden]),
  .sidebar:focus-within .nav-unread-badge:not([hidden]),
  .market-heading .cart-link:hover .nav-unread-badge:not([hidden]),
  .market-heading .cart-link:focus-visible .nav-unread-badge:not([hidden]),
  .market-heading .market-message-link .nav-unread-badge:not([hidden]) {
    min-width: 1.35rem;
    height: 1.1rem;
    padding: 0 0.32rem;
    font-size: 0.66rem;
  }

  .sidebar:hover .nav-unread-badge .nav-unread-count,
  .sidebar:focus-within .nav-unread-badge .nav-unread-count,
  .market-heading .cart-link:hover .nav-unread-count,
  .market-heading .cart-link:focus-visible .nav-unread-count,
  .market-heading .market-message-link .nav-unread-count {
    display: inline;
    width: auto;
    opacity: 1;
    visibility: visible;
  }

  .sidebar:hover .nav-unread-badge .nav-unread-dot,
  .sidebar:focus-within .nav-unread-badge .nav-unread-dot,
  .market-heading .cart-link:hover .nav-unread-dot,
  .market-heading .cart-link:focus-visible .nav-unread-dot {
    display: none;
  }

  .sidebar-navigation {
    padding-bottom: 45vh;
  }
}

/* Messages page */
.messages-main .panel-heading h2 {
  margin: 0;
  white-space: nowrap;
}

.messages-main .messages-list-pane {
  padding-top: 1rem;
}

.messages-main .panel-heading {
  align-items: center;
  margin-bottom: 0.6rem;
}

#market-messages-mark-all {
  background: #101111;
  border: 1px solid #3a3c3c;
  color: #f4f4f4;
}

#market-messages-mark-all:hover:not(:disabled) {
  border-color: var(--green, #4cd18a);
}

.chat-composer {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.chat-composer .chat-file {
  display: none;
}

.chat-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #3a3c3c;
  border-radius: 14px;
  background: #101111;
}

.chat-composer-row:focus-within {
  border-color: var(--green, #4cd18a);
}

.chat-composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 8rem;
  padding: 0.5rem 0.3rem;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: inherit;
  font: inherit;
}

.chat-attach,
.chat-send {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d8d8d8;
  cursor: pointer;
}

.chat-send {
  background: var(--green, #4cd18a);
  color: #08110c;
}

.chat-attach:hover {
  background: #262828;
}

.chat-send:disabled {
  opacity: 0.45;
  cursor: default;
}

.chat-attach svg,
.chat-send svg {
  width: 1.3rem;
  height: 1.3rem;
}

.chat-preview {
  position: relative;
  width: fit-content;
}

.chat-preview[hidden] {
  display: none;
}

.chat-preview img {
  display: block;
  max-width: 9rem;
  max-height: 9rem;
  border-radius: 10px;
}

.chat-preview button {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: #f04444;
  color: #fff;
  cursor: pointer;
}

.chat-photo {
  display: block;
  max-width: min(100%, 18rem);
  margin-top: 0.4rem;
  border-radius: 10px;
}

#market-messages-mark-all {
  background: #101111;
  border: 1px solid #3a3c3c;
  box-shadow: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.messages-main .messages-list-pane .panel-heading {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

@media (min-width: 681px) {
  .messages-layout {
    grid-template-columns: minmax(320px, 400px) 1fr;
  }
}

/* Uniform form fields */
.field-label input,
.field-label textarea,
.field-label select {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field-label textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field-label input[type="file"] {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.field-label input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #414545;
  border-radius: 7px;
  background: #1b1d1d;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.form-row > [hidden],
.form-row[hidden],
.field-label[hidden] {
  display: none;
}

.image-preview-grid .image-tile {
  position: relative;
  cursor: grab;
}

.image-tile.is-dragging {
  opacity: 0.4;
}

.image-tile.drop-target {
  outline: 2px solid var(--green, #4cd18a);
  outline-offset: 2px;
  border-radius: 8px;
}

.image-tile-order {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.image-tile-controls {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  display: flex;
  gap: 0.2rem;
}

.image-tile-controls button {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  cursor: pointer;
}

.image-tile-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.has-listing-preview {
  overflow: hidden;
}

.listing-preview-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow-y: auto;
  background: #0b0c0c;
}

.listing-preview-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid #2a2c2c;
  background: #0b0c0c;
}

.listing-preview-label {
  color: #bfc3bf;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.listing-preview-gallery {
  display: grid;
  gap: 0.8rem;
}

.listing-preview-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.listing-preview-handoff {
  padding-left: 1.2rem;
}

@media (max-width: 680px) {
  .listing-preview-body {
    grid-template-columns: 1fr;
  }
}

.chat-send {
  border: 1px solid #315247;
  background: #14231e;
  color: #7be0a8;
}

.chat-send:hover:not(:disabled) {
  background: #1b3229;
}

.chat-attach svg,
.chat-send svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-attach {
  width: 3rem;
}

.chat-attach svg {
  width: 1.9rem;
}

/* Conversation list rows */
.shop-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.thread-tag {
  padding: 0.05rem 0.5rem;
  border: 1px solid #3a3c3c;
  border-radius: 999px;
  color: #cfd2cf;
  font-size: 0.78rem;
  line-height: 1.4;
}

.thread-tag-selling {
  border-color: #315247;
  background: #14231e;
  color: #7be0a8;
}

.shop-order-preview {
  overflow: hidden;
  color: #a9aeaa;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-order-menu-items [data-thread-report] {
  color: #f08a8a;
}

.shop-order-meta {
  flex-wrap: nowrap;
}

.shop-order-meta .shop-order-shop {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-order-meta .thread-tag {
  flex: 0 0 auto;
}

.listing-preview-bar .outline-button,
.listing-preview-bar .primary-button {
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

/* Buy box: options, add to cart, quantity */
.buy-box {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
  justify-items: start;
}

.buy-options {
  display: grid;
  width: 100%;
  gap: 0.6rem;
}

.buy-options-title {
  margin: 0;
  font-size: 1.1rem;
}

.buy-options .field-label select {
  width: 100%;
}

.buy-add[disabled] {
  border-color: #3a3f3d;
  background: #1c1f1e;
  color: #77807c;
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.7;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #3f4745;
  border-radius: 8px;
}

.qty-stepper button {
  width: 2.6rem;
  border: 0;
  background: #1c1f1e;
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.qty-stepper button:hover,
.qty-stepper button:focus-visible {
  background: #2a302e;
}

.qty-stepper input {
  width: 3.4rem;
  min-height: 2.4rem;
  padding: 0;
  border: 0;
  border-inline: 1px solid #3f4745;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cart-item-options {
  margin: 0;
}

/* Photo carousels */
.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(8, 9, 9, 0.82);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: #d94bcf;
  outline: none;
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 0.55rem;
  left: 50%;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.carousel-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.carousel-dots span.active {
  background: #fff;
}

.community-product-gallery,
.community-card-gallery {
  scrollbar-width: none;
}

.community-product-gallery::-webkit-scrollbar,
.community-card-gallery::-webkit-scrollbar {
  display: none;
}

/* Shop page: info, actions, search and sort */
.store-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-actions > .outline-button,
.store-actions > .store-edit-shop {
  width: auto;
  margin: 0;
}

.store-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.store-controls .store-search {
  flex: 1 1 260px;
  min-width: 0;
}

.store-art {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: linear-gradient(135deg, var(--art-a), var(--art-b) 60%, var(--art-c));
  font-size: 4rem;
}

/* My Shop: orders dot and compact notification row */
.orders-unread-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #f04444;
  box-shadow: 0 0 0 3px rgba(240, 68, 68, 0.25);
  vertical-align: middle;
}

.orders-unread-dot[hidden] {
  display: none;
}

.shop-notification-settings {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.shop-notification-settings h2 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.shop-notification-settings .field-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.shop-notification-settings .field-label input {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-notification-settings .form-actions {
  flex-wrap: wrap;
}

.shop-notification-settings .form-actions .outline-button {
  min-height: 2.5rem;
  padding-block: 0;
}

@media (max-width: 680px) {
  .shop-notification-settings {
    grid-template-columns: 1fr;
  }

  .shop-notification-settings .field-label {
    flex-wrap: wrap;
  }
}

/* Whole thumbnail links to the product page */
.product-art-detail-anchor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-item-image > a {
  display: block;
  height: 100%;
}

.store-actions [hidden] {
  display: none;
}

.shop-notification-settings .field-label {
  white-space: nowrap;
}

.market-heading .cart-link .nav-unread-badge {
  top: 4px;
  right: 2px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  align-items: start;
  max-width: 56rem;
}

.account-form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.account-form h2 {
  margin: 0;
}

.account-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.toast-region {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: grid;
  gap: 0.5rem;
  width: min(92vw, 26rem);
  pointer-events: none;
}

.toast {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #14382b;
  border: 1px solid #a8d9c4;
  color: #d9f5e9;
  font-weight: 600;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.45);
}

.toast.error {
  background: #3d1717;
  border-color: #ff9c9c;
  color: #ffd6d6;
}

/* A hidden badge must stay hidden, even inside hovered or focused nav links. */
.nav-unread-badge[hidden] {
  display: none !important;
}

#product-description {
  white-space: pre-line;
}

.danger-button {
  margin: 0.25rem 0 1rem;
  border-color: #c0392b;
  color: #c0392b;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #c0392b;
  color: #fff;
}

.provider-update {
  margin-top: 0.5rem;
}

.photo-editor {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.25rem;
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 1rem;
  background: var(--surface, #fff);
  color: inherit;
  overflow: auto;
}

.photo-editor::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.photo-editor-close-form {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.photo-editor-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.photo-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.photo-editor-item {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.photo-editor-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0.6rem;
  background: rgba(128, 128, 128, 0.15);
}

.photo-editor-item figcaption {
  font-size: 0.8rem;
  opacity: 0.75;
}

.photo-editor-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.photo-editor-item-actions button {
  flex: 1 1 auto;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(128, 128, 128, 0.5);
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.photo-editor-item-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.photo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.photo-editor-add {
  display: inline-block;
  cursor: pointer;
}

.photo-crop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.photo-crop-controls .field-label {
  flex: 1 1 10rem;
  min-width: 0;
}

.photo-crop-frame {
  position: relative;
  margin: 0.75rem auto;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  border: 2px dashed rgba(128, 128, 128, 0.7);
  background: repeating-conic-gradient(rgba(128, 128, 128, 0.18) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

.photo-crop-frame img {
  position: absolute;
  max-width: none;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

.edit-photos-button {
  margin-bottom: 0.5rem;
}

.buy-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.buy-total {
  font-size: 1.05rem;
}

.item-editor{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:24px;align-items:start}
.item-main-photo img{width:100%;border-radius:12px;display:block;aspect-ratio:1;object-fit:cover}
.item-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin:10px 0}
.item-thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.item-form{display:grid;gap:14px}
.item-form textarea{width:100%}
.shop-item-link{color:inherit;text-decoration:none}
.shop-item-link:hover{text-decoration:underline}
.link-button{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
@media (max-width:720px){.item-editor{grid-template-columns:1fr}}
