/**/
/* THIS FILE AUTOGENERATED FROM CSS in ./web/css/ */ 
/**/
/* Page shell under #saito-header */

.saito-container.store-container {
  display: block;
  position: absolute;
  top: var(--saito-header-height);
  width: 100%;
  height: calc(100% - var(--saito-header-height));
  max-width: none;
  margin: 0;
  padding: 0.5rem max(var(--saito-space-lg), calc((100vw - var(--saito-width)) / 2))
    var(--saito-space-xl);
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: unset;
  column-gap: unset;
  -webkit-overflow-scrolling: touch;
}

/*
 * User-store page inset — owned here (shell), not on .saito-profile children.
 * Top padding uses --saito-space-xl. Marketplace / admin keep 0.5rem above.
 */
.saito-container.store-container:has(.store.user-store) {
  padding-top: var(--saito-space-xl);
}

/* Listing detail — wide product sheet (NFT picker sizes itself in store-nft-picker.css) */
.saito-overlay:has(> .listing-detail) {
  width: min(92vw, 96rem);
  max-width: calc(100vw - 2 * var(--saito-space-md));
}

@media (max-width: 900px) {
  .saito-container.store-container {
    padding: 0.5rem var(--saito-space-lg) var(--saito-space-lg);
  }

  .saito-container.store-container:has(.store.user-store) {
    padding-top: var(--saito-space-xl);
  }

  .saito-overlay:has(> .listing-detail) {
    width: min(96vw, 96rem);
    max-width: calc(100vw - 2 * var(--saito-space-sm));
  }
}

@media (max-width: 600px) {
  .saito-container.store-container {
    padding: 0.5rem max(var(--saito-space-md), env(safe-area-inset-right, 0px))
      calc(var(--saito-space-xl) + env(safe-area-inset-bottom, 0px))
      max(var(--saito-space-md), env(safe-area-inset-left, 0px));
  }

  .saito-container.store-container:has(.store.user-store) {
    padding-top: var(--saito-space-lg);
  }

  .saito-overlay:has(> .listing-detail) {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
  }
}
/* Namespace: .store — page composition (layout only; menu hover from .saito-menu-select-subtle) */

:root {
  --saito-empty-state-title-foreground: var(--saito-foreground);
  --saito-empty-state-text-foreground: var(--saito-muted-foreground);
}

.store {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--saito-space-xxl);
  align-items: start;
  width: 100%;
  min-width: 0;
}

/*
 * User-store page composition — not the marketplace category rail.
 *
 * Two regions:
 *   .user-store-context  → identity (SaitoProfile) + Store-owned nav + attribution
 *   .main-column         → shared StorefrontView / listings
 *
 * Spacing model:
 *   - Page top inset: `.saito-container.store-container:has(.store.user-store)`
 *     padding-top → --saito-space-xl (see store-base.css)
 *   - Inter-column / stacked separation: this grid `gap` → --store-user-rhythm
 *   - Below profile card: context column `gap` → --saito-space-md (attribution)
 *
 * Profile and listings are grid siblings with align-items: start — same top edge.
 * Do not pad .saito-profile to fake page rhythm.
 */
.store.user-store {
  --store-user-rhythm: var(--saito-space-xxl);
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--store-user-rhythm);
}

/* —— Menu rail (marketplace / admin only) —— */

.store > .menu {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  padding-block: var(--saito-space-xs);
  min-width: 0;
}

.store.user-store > .menu {
  display: none;
}

/* —— User-store profile context (never `.menu`) —— */

.store > .user-store-context {
  display: none;
  box-sizing: border-box;
  min-width: 0;
}

.store.user-store > .user-store-context {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
}

.store.user-store .user-store-profile {
  min-width: 0;
}

/* Store-owned attribution — outside SaitoProfile, under the card */
.store.user-store .user-store-attribution {
  margin: 0;
  padding: 0 var(--saito-space-xs);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--saito-muted-foreground);
  opacity: 0.85;
}

.store.user-store .user-store-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

.store.user-store .user-store-attribution a:hover,
.store.user-store .user-store-attribution a:focus-visible {
  color: var(--saito-foreground);
  opacity: 1;
  outline: none;
}

/* Listings share the grid top edge — no extra top inset in the main column */
.store.user-store > .main-column,
.store.user-store > .main-column > .manager,
.store.user-store .storefront-catalog {
  margin-top: 0;
  padding-top: 0;
}

/*
 * Store-owned nav in the shared profile footer slot — visually inside the card.
 * Labels/icons/routing stay Store-specific; SaitoProfile only provides the slot.
 */
.store.user-store .saito-profile-footer:not(:empty) {
  display: block;
  border-top: 1px solid var(--saito-border);
}

.store.user-store .user-store-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: var(--saito-space-xs) 0;
}

.store.user-store .user-store-nav .item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--saito-space-sm);
  min-height: 2.6rem;
  margin: 0 var(--saito-space-xs);
  padding: 0.55rem 0.75rem;
  border-radius: var(--saito-radius);
  font-size: var(--font-size-medium);
  line-height: 1.25;
  color: var(--saito-muted-foreground);
  cursor: pointer;
}

.store.user-store .user-store-nav .item:focus-visible {
  outline: none;
  box-shadow: var(--saito-focus-ring);
}

.store.user-store .user-store-nav .item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
}

.store.user-store .user-store-nav .item .icon i {
  font-size: 1.5rem;
  line-height: 1;
}

.store.user-store .user-store-nav .item .label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store > .menu .list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  margin: 0;
  padding: 0;
}

/* All category / admin rows share identical base typography */
.store > .menu .item {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--saito-radius-full);
  font-size: var(--font-size-medium);
  line-height: 1.3;
  color: var(--saito-muted-foreground);
}

.store > .menu .item.moderation-item {
  position: relative;
  justify-content: flex-start;
}

.store > .menu .item.moderation-item[hidden] {
  display: none;
}

.store > .menu .item.moderation-item .saito-notification-dot {
  position: absolute;
  top: 0.1rem;
  right: 0.35rem;
  left: auto;
  bottom: auto;
  width: max-content;
  min-width: 1.6rem;
  z-index: 1;
}

.store > .menu .item:focus-visible {
  outline: none;
  box-shadow: var(--saito-focus-ring);
}

/* Selected = bold only; hover still from .saito-menu-select-subtle */
.store > .menu .item.active {
  font-family: var(--saito-font-heavy);
}

/* Admin dashboard: indented children under Admin Home */
.store > .menu.dashboard .item.child {
  padding-left: 2.2rem;
  gap: 0.55rem;
}

.store > .menu.dashboard .item.child .caret {
  flex: 0 0 auto;
  color: var(--saito-muted-foreground);
  font-family: var(--saito-font-medium);
  line-height: 1;
}

.store > .menu.dashboard .item .label {
  min-width: 0;
}

.store > .menu .divider {
  height: 1px;
  margin: var(--saito-space-md) var(--saito-space-sm);
  background: var(--saito-border);
}

/* —— Main column —— */

.store > .main-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.store > .main-column > .manager {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  min-width: 0;
}

.store > .main-column > .manager > [data-panel] {
  display: none;
}

.store > .main-column > .manager > [data-panel].is-active {
  display: block;
}

/* Panels participate in .manager flex gap */
.store > .main-column > .manager > [data-panel='browse'].is-active,
.store > .main-column > .manager > [data-panel='my-listings'].is-active,
.store > .main-column > .manager > [data-panel='sales'].is-active,
.store > .main-column > .manager > [data-panel='moderate'].is-active {
  display: contents;
}

/* Storefront share URL */
.store .storefront-url {
  margin: 0;
  max-width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, #ffffff 8%, transparent);
  color: color-mix(in srgb, #ffffff 94%, var(--saito-muted-foreground));
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: var(--font-size-small);
  line-height: 1.4;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
  min-width: 0;
}

.store .storefront-url:hover,
.store .storefront-url:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.store .storefront-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: var(--saito-space-sm);
  width: min(100%, 48rem);
  max-width: 100%;
  min-width: 0;
  margin: var(--saito-space-sm) 0;
}

.store .storefront-url-row .saito-icon-button {
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  width: auto;
  min-width: unset;
  min-height: unset;
  aspect-ratio: 1;
}

.store .storefront-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--saito-space-md);
  padding: var(--saito-space-xl) 0;
  min-height: 12rem;
}

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

.store .storefront-status .saito-spinner {
  width: 3.5rem;
  min-width: 3.5rem;
}

.store .storefront-status p {
  margin: 0;
  font-size: var(--font-size-medium);
  color: var(--saito-muted-foreground);
}

/* Post-listing success — neon green, not primary orange */
.store .listing-success {
  position: relative;
  margin: 0 0 var(--saito-space-lg);
  padding: var(--saito-space-lg) 3.5rem var(--saito-space-lg) var(--saito-space-lg);
  border: 1px solid var(--saito-green);
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, var(--saito-green) 14%, transparent);
}

.store .listing-success .close {
  position: absolute;
  top: var(--saito-space-sm);
  right: var(--saito-space-sm);
  color: var(--saito-green);
  border-color: var(--saito-green);
}

.store .listing-success .title {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-heavy);
  line-height: 1.3;
  color: var(--saito-foreground);
}

.store .listing-success .body {
  margin: var(--saito-space-sm) 0 0;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: color-mix(in srgb, #ffffff 88%, var(--saito-muted-foreground));
}

/* Seller admin shell — top padding aligns with first sidebar nav item */
.store .storefront-admin {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: var(--saito-space-xs);
  min-width: 0;
}

.store .admin-denied {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  padding: var(--saito-space-xxl) var(--saito-space-lg);
  text-align: center;
}

.store .admin-denied .body {
  margin: 0;
  max-width: 28rem;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-foreground);
}

/* Seller dashboard welcome (main column only — not .menu.dashboard) */
.store .seller-home {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
  padding: 0 0 var(--saito-space-xxl);
  margin: 0;
  border-bottom: 1px solid var(--saito-border);
}

.store .seller-home .title {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-heavy);
  line-height: 1.25;
  color: var(--saito-foreground);
}

.store .seller-home .body {
  margin: 0;
  max-width: 48rem;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-muted-foreground);
}

.store .seller-home .actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--saito-space-md);
}

.store .seller-home .actions .saito-button-primary {
  margin: 0;
  min-width: 0;
}

/* Public storefront header */
.store .hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 var(--saito-space-sm);
  border-bottom: 1px solid var(--saito-border);
}

.store .hero .toolbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--saito-space-md);
  width: 100%;
  min-width: 0;
}

.store .hero .title {
  margin: 0;
  min-width: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-medium);
  font-weight: normal;
  line-height: 1.25;
  color: var(--saito-foreground);
}

.store .hero .description {
  margin: 0.45rem 0 0;
  max-width: 72rem;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.4;
  color: var(--saito-muted-foreground);
}

.store .sales-panel {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  min-width: 0;
}

.store .sales-panel > .title {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-heavy);
  line-height: 1.25;
  color: var(--saito-foreground);
}

.store .sales-panel .sales-content {
  min-width: 0;
}

.store .sales-panel .body {
  margin: 0;
  max-width: 40rem;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-muted-foreground);
}

.store .catalog {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
  min-width: 0;
}

.store .catalog-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--saito-space-md);
  padding: var(--saito-space-xl) 0;
  min-height: 10rem;
}

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

.store .catalog-status .saito-spinner {
  width: 3.5rem;
  min-width: 3.5rem;
}

.store .catalog-status p {
  margin: 0;
  font-size: var(--font-size-medium);
  color: var(--saito-muted-foreground);
}

.store .catalog-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--saito-space-sm);
  padding-top: var(--saito-space-sm);
}

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

.store .catalog-info {
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.4;
  color: var(--saito-muted-foreground);
  opacity: 0.85;
}

.store .catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--saito-space-sm);
  width: 100%;
}

.store .catalog-pagination .pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.store .catalog-pagination .nav-btn,
.store .catalog-pagination .page-btn {
  appearance: none;
  border: 1px solid var(--saito-border);
  background: transparent;
  color: var(--saito-muted-foreground);
  font: inherit;
  font-size: var(--font-size-small);
  line-height: 1;
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--saito-radius);
  cursor: pointer;
}

.store .catalog-pagination .page-btn.is-active {
  border-color: var(--saito-primary);
  color: var(--saito-foreground);
  font-family: var(--saito-font-medium);
}

.store .catalog-pagination .nav-btn:disabled,
.store .catalog-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.store .catalog-pagination .nav-btn:focus-visible,
.store .catalog-pagination .page-btn:focus-visible {
  outline: none;
  box-shadow: var(--saito-focus-ring);
}

.store .listings-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.store .listings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.store .listings-table caption {
  caption-side: top;
  text-align: left;
  margin: 0 0 var(--saito-space-md);
  font-size: var(--font-size-large);
  font-family: var(--saito-font-heavy);
  line-height: 1.25;
  color: var(--saito-foreground);
}

.store .listings-table th,
.store .listings-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--saito-border);
  font-size: var(--font-size-medium);
  line-height: 1.4;
  color: var(--saito-foreground);
}

.store .listings-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--font-size-small);
  font-family: var(--saito-font-medium);
  color: var(--saito-muted-foreground);
  white-space: nowrap;
}

.store .listings-table td:nth-child(3),
.store .listings-table td:nth-child(4),
.store .listings-table td:nth-child(5),
.store .listings-table td:nth-child(6) {
  white-space: nowrap;
}

.store .listings-table .listing-approval {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  white-space: normal;
}

.store .listings-table .listing-approval-status {
  font-size: var(--font-size-small);
  line-height: 1.3;
  color: var(--saito-muted-foreground);
}

.store .listings-table .listing-submit-main {
  padding: 0.25rem 0.65rem;
  font-size: var(--font-size-small);
  line-height: 1.2;
  cursor: pointer;
}

.store .moderation-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--saito-space-sm);
  margin: 0 0 var(--saito-space-md);
}

.store .moderation-table th.select-cell,
.store .moderation-table td.select-cell {
  width: 2.5rem;
  white-space: nowrap;
}

.store .moderation-table th.is-sortable {
  cursor: pointer;
  user-select: none;
}

.store .moderation-table th.is-sorted {
  color: var(--saito-foreground);
  font-family: var(--saito-font-heavy);
}

.store .moderation-table th[aria-sort='ascending']::after,
.store .moderation-table th[aria-sort='descending']::after {
  font-size: 0.85em;
}

.store .moderation-table th[aria-sort='ascending']::after {
  content: ' ▲';
}

.store .moderation-table th[aria-sort='descending']::after {
  content: ' ▼';
}

.store .moderation-table .user-key,
.store .moderation-table .view-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--saito-primary);
  cursor: pointer;
  text-align: left;
}

.store .moderation-table td:nth-child(3) {
  white-space: normal;
}

.store .moderation-table .listed-cell,
.store .moderation-table .view-cell {
  white-space: nowrap;
}

.store .moderation-table .view-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store .moderation-table .view-link {
  text-decoration: underline;
}

.store .moderation-table .risk-cell {
  white-space: nowrap;
}

.store .moderation-table .risk-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: var(--font-size-small);
  font-family: var(--saito-font-medium);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.store .moderation-table .risk-badge[data-risk='Low'] {
  color: #0f7a3a;
  background: rgba(15, 122, 58, 0.12);
}

.store .moderation-table .risk-badge[data-risk='Medium'] {
  color: #8a6a00;
  background: rgba(201, 162, 0, 0.16);
}

.store .moderation-table .risk-badge[data-risk='High'] {
  color: #b34700;
  background: rgba(179, 71, 0, 0.16);
}

.store .moderation-table .risk-badge[data-risk='Dangerous'] {
  color: #b00020;
  background: rgba(176, 0, 32, 0.16);
  font-family: var(--saito-font-heavy);
}

.store .moderation-table .risk-badge[data-risk='Unclassified'] {
  color: var(--saito-muted-foreground);
  background: rgba(127, 127, 127, 0.12);
}

.store .sales-table td:nth-child(2),
.store .sales-table td:nth-child(3),
.store .sales-table td:nth-child(5) {
  white-space: nowrap;
}

.store .sales-table .sales-title {
  max-width: 18rem;
  word-break: break-word;
}

.store .sales-table .sales-buyer-cell {
  min-width: 10rem;
  max-width: 22rem;
}

.store .sales-table .sales-buyer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.store .sales-table .sales-buyer-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.store .sales-table .sales-buyer-address {
  font-family: var(--saito-font-monospace, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: var(--font-size-small);
  color: var(--saito-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store .sales-table .sales-buyer-copy {
  flex-shrink: 0;
}

.store .listings-table tbody tr:last-child td {
  border-bottom: 0;
}

.store .listings-table tbody tr.is-clickable {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.store .listings-table tbody tr.is-clickable:hover td {
  background-color: color-mix(in srgb, var(--saito-border) 35%, transparent);
}

.store .sales-seller-note {
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
  white-space: pre-wrap;
  word-break: break-word;
}

.store .catalog-empty {
  min-height: 14rem;
}

/* Empty panels — Saito empty-state tokens */
.store .empty,
.nft-picker .empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 22rem;
  padding: var(--saito-space-xxl) 0;
  max-width: 28rem;
}

.store .empty h2,
.store .empty h3,
.nft-picker .empty h2,
.nft-picker .empty h3 {
  margin: 0 0 var(--saito-space-sm);
  font-size: var(--font-size-large);
  font-family: var(--saito-font-medium);
  color: var(--saito-empty-state-title-foreground);
}

.store .empty p,
.nft-picker .empty p {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-empty-state-text-foreground);
}

.store .empty .saito-button-primary {
  margin-top: var(--saito-space-lg);
  min-height: 2.75rem;
}

@media (max-width: 900px) {
  .store {
    grid-template-columns: 1fr;
    gap: var(--saito-space-xl);
  }

  /*
   * Stack user-store regions. Profile context stays card-sized (≤300px) and
   * start-aligned — do not stretch SaitoProfile into a full-width banner.
   * Keep --store-user-rhythm so stacked separation matches page top inset.
   */
  .store.user-store {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--store-user-rhythm);
  }

  .store.user-store > .user-store-context {
    position: static;
    width: 300px;
    max-width: 100%;
    justify-self: start;
  }

  .store > .menu {
    position: static;
  }

  .store > .menu .list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--saito-space-xs);
  }

  .store > .menu .divider {
    flex: 1 0 100%;
    margin: var(--saito-space-sm) 0;
  }

  .store > .main-column > .manager {
    gap: var(--saito-space-md);
  }

  .store .hero .toolbar-row {
    flex-wrap: wrap;
  }

  .store .seller-home .actions .saito-button-primary {
    flex: 1 1 auto;
  }

  .store .storefront-url {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: unset;
  }

  .store .empty,
  .nft-picker .empty {
    min-height: 16rem;
    padding: var(--saito-space-xl) 0;
  }
}

@media (max-width: 600px) {
  .store {
    gap: var(--saito-space-lg);
  }

  .store.user-store {
    --store-user-rhythm: var(--saito-space-lg);
    gap: var(--store-user-rhythm);
  }

  .store > .main-column > .manager {
    gap: var(--saito-space-sm);
  }

  .store .catalog {
    gap: var(--saito-space-md);
  }

  .store .empty,
  .nft-picker .empty {
    min-height: 12rem;
    padding: var(--saito-space-lg) 0;
    max-width: none;
  }
}

.saito-overlay.listing-inspect-shell,
.saito-overlay:has(> .listing-inspect) {
  width: min(96vw, 120rem);
  height: min(92dvh, 92vh);
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
}

.listing-inspect {
  display: flex;
  flex-direction: column;
  width: min(96vw, 120rem);
  height: min(92dvh, 92vh);
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.listing-inspect > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--saito-space-md);
  flex: 0 0 auto;
  padding: var(--saito-space-lg) 5.25rem var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.listing-inspect-title {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-heavy);
}

.listing-inspect-status {
  flex: 0 0 auto;
  margin: 0;
  padding: var(--saito-space-md) var(--saito-space-xl);
  color: var(--saito-muted-foreground);
}

.listing-inspect-status[hidden] {
  display: none;
}

.listing-inspect-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--saito-space-lg) var(--saito-space-xl) var(--saito-space-xl);
  text-align: left;
}

.listing-inspect-fields {
  margin: 0;
}

.listing-inspect-row {
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) minmax(0, 1fr);
  gap: var(--saito-space-sm) var(--saito-space-lg);
  padding: var(--saito-space-sm) 0;
  border-bottom: 1px solid var(--saito-border);
  align-items: start;
}

.listing-inspect-row.is-block {
  grid-template-columns: 1fr;
}

.listing-inspect-row dt {
  margin: 0;
  font-family: var(--saito-font-medium);
  color: var(--saito-muted-foreground);
  word-break: break-all;
}

.listing-inspect-row.is-block dt {
  font-size: var(--font-size-medium);
  color: var(--saito-foreground);
  padding-top: var(--saito-space-sm);
}

.listing-inspect-row dd {
  margin: 0;
  min-width: 0;
}

.listing-inspect-scalar {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.listing-inspect-text {
  margin: 0;
  max-height: 24rem;
  overflow: auto;
  padding: var(--saito-space-md);
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: var(--font-size-small);
  line-height: 1.45;
}

.listing-inspect-binary {
  display: inline-block;
  margin-right: var(--saito-space-sm);
  padding: 0.15rem 0.55rem;
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, var(--saito-primary) 16%, transparent);
  color: var(--saito-primary);
  font-family: var(--saito-font-heavy);
  font-size: var(--font-size-tiny);
  letter-spacing: 0.06em;
}

.listing-inspect-bytes,
.listing-inspect-empty {
  color: var(--saito-muted-foreground);
}

.listing-inspect-media {
  margin: 0;
  max-width: min(100%, 36rem);
}

.listing-inspect-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--saito-radius);
  background: var(--saito-background);
}

.listing-inspect-list {
  margin: 0;
  padding-left: 1.25rem;
}

.listing-inspect-list li {
  margin: 0.25rem 0;
}

@media (max-width: 600px) {
  .saito-overlay.listing-inspect-shell,
  .saito-overlay:has(> .listing-inspect) {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
  }

  .listing-inspect {
    width: 100%;
    height: 100%;
  }

  .listing-inspect > header {
    padding: var(--saito-space-md) 4.5rem var(--saito-space-md) var(--saito-space-md);
  }

  .listing-inspect-body {
    padding: var(--saito-space-md);
  }

  .listing-inspect-row {
    grid-template-columns: 1fr;
  }
}
/* Namespace: .nft-picker — large NFT browser workspace.
   Overlay shell owns 90vw×90vh; this panel fills it. */

.saito-overlay:has(> .nft-picker) {
  width: min(90vw, 140rem);
  height: min(90vh, 90dvh);
  max-width: 90vw;
  max-height: 90vh;
}

.nft-picker {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
}

.nft-picker > header {
  flex: 0 0 auto;
  padding: var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.nft-picker > header .heading {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  min-width: 0;
}

.nft-picker > header h2 {
  margin: 0;
  font-size: 2rem;
  font-family: var(--saito-font-medium);
  letter-spacing: -0.01em;
}

.nft-picker > header .lede {
  margin: 0;
  max-width: 44rem;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
}

.nft-picker .mode-inline {
  display: inline-flex;
  align-items: baseline;
  margin: 0 0.15em;
  vertical-align: baseline;
}

.nft-picker .mode-inline .saito-form-select {
  display: inline-block;
  width: auto;
  min-width: 0;
  padding: 0.15em 1.8em 0.15em 0.45em;
  font: inherit;
  font-family: var(--saito-font-medium);
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

/* Content receives remaining viewport — not the header */
.nft-picker > .body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--saito-space-xl);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Let the overlay body own scrolling while the grid fills the workspace */
.nft-picker .send-nft-list {
  display: grid;
  align-content: flex-start;
  align-items: start;
  justify-content: start;
  gap: var(--saito-space-lg);
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  overflow: visible;
}

.nft-picker .status:not(:empty) {
  flex: 0 0 auto;
}

/* Top-aligned empty copy — do not vertically center in the body */
.nft-picker .empty {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  max-width: none;
}

/* Same bottom instruction strip as .saito-nft-list .nft-list-instructions */
.nft-picker > .nft-list-instructions {
  flex: 0 0 auto;
  padding: var(--saito-space-lg) var(--saito-space-xl);
  border-top: 1px solid var(--saito-border);
}

.nft-picker > .nft-list-instructions[hidden] {
  display: none;
}

.nft-picker .nft-list-instructions .instructions {
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
  font-size: var(--font-size-medium);
  color: var(--saito-muted-foreground);
}

@media (max-width: 900px) {
  .nft-picker > header,
  .nft-picker > .body {
    padding: var(--saito-space-lg);
  }

  .nft-picker .send-nft-list {
    gap: var(--saito-space-md);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .saito-overlay:has(> .nft-picker) {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }

  .nft-picker > header {
    padding: var(--saito-space-md);
    padding-top: max(var(--saito-space-md), env(safe-area-inset-top, 0px));
  }

  .nft-picker > header h2 {
    font-size: var(--font-size-large);
  }

  .nft-picker > .body {
    padding: var(--saito-space-md);
    padding-bottom: calc(var(--saito-space-lg) + env(safe-area-inset-bottom, 0px));
  }

  .nft-picker > .nft-list-instructions {
    padding: var(--saito-space-md);
    padding-bottom: calc(var(--saito-space-md) + env(safe-area-inset-bottom, 0px));
  }
}
/* Namespace: .listing-detail — product / listing workspace */

.listing-detail {
  display: flex;
  flex-direction: column;
  width: min(92vw, 96rem);
  max-width: 100%;
  height: min(90vh, 64rem);
  height: min(90dvh, 64rem);
  max-height: min(90vh, 64rem);
  max-height: min(90dvh, 64rem);
  overflow: hidden;
  box-sizing: border-box;
}

.listing-detail > header {
  display: flex;
  align-items: center;
  gap: var(--saito-space-md);
  flex: 0 0 auto;
  /* Symmetric vertical rhythm; extra right inset clears Saito closebox */
  padding: var(--saito-space-lg) 5.25rem var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.listing-detail > header .saito-identicon {
  flex: 0 0 auto;
  width: 4.6rem;
  height: 4.6rem;
  min-width: 4.6rem;
  min-height: 4.6rem;
  border: none;
  border-radius: var(--saito-radius);
  object-fit: cover;
}

/* Pencil sits on the text baseline, immediately beside the value */
.listing-detail .saito-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.05rem 0.2rem;
  vertical-align: baseline;
  font-size: 1.15rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.listing-detail .saito-icon-button i {
  display: block;
  line-height: 1;
}

.listing-detail .meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Title + edit icon = one inline unit; text truncates, icon never clipped */
.listing-detail .title {
  margin: 0;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-medium);
  line-height: 1.2;
  overflow: visible;
}

.listing-detail .title .title-text,
.listing-detail .title [data-field='title'] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-detail .title .saito-icon-button {
  flex: 0 0 auto;
  margin: 0;
  /* Keep pen optically on the title baseline */
  transform: translateY(0.05em);
}

.listing-detail .amount,
.listing-detail .text,
.listing-detail .facts dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.45rem;
  row-gap: 0;
}

.listing-detail .amount [data-field],
.listing-detail .text [data-field],
.listing-detail .facts dd [data-field] {
  min-width: 0;
}

.listing-detail .amount .saito-icon-button,
.listing-detail .text .saito-icon-button,
.listing-detail .facts dd .saito-icon-button {
  flex: 0 0 auto;
}

.listing-detail .creator {
  margin: 0;
  max-width: 100%;
  font-family: var(--saito-font-mono, ui-monospace, monospace);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--saito-muted-foreground);
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Buy overlay header — identicon matches title + NFT ID + seller stack */
.listing-detail.view:not(.delist) > header {
  align-items: flex-start;
  gap: var(--saito-space-md);
  padding: var(--saito-space-xl) 5.25rem var(--saito-space-xl) var(--saito-space-xl);
}

.listing-detail.view:not(.delist) > header .saito-identicon {
  --listing-header-identicon: calc(
    (var(--font-size-large) * 1.15) + 0.06rem + (2 * 1.15rem * 1.25) + (2 * 0.08rem)
  );
  width: var(--listing-header-identicon);
  height: var(--listing-header-identicon);
  min-width: var(--listing-header-identicon);
  min-height: var(--listing-header-identicon);
  margin: 0;
}

.listing-detail.view:not(.delist) .meta {
  justify-content: flex-start;
  gap: 0.08rem;
}

.listing-detail.view:not(.delist) .title {
  margin: 0 0 0.06rem;
  line-height: 1.15;
}

.listing-detail.view .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  row-gap: 0;
  margin: 0;
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.25;
}

.listing-detail.view .meta-label {
  flex: 0 0 auto;
  color: var(--saito-muted-foreground);
  font-family: var(--saito-font-medium);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.listing-detail.view .meta-value {
  min-width: 0;
  flex: 1 1 8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.listing-detail.view .nft-id .meta-value,
.listing-detail.view .seller .meta-value.is-key {
  font-family: var(--saito-font-mono, ui-monospace, monospace);
}

.listing-detail > .body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.95fr);
  gap: var(--saito-space-xl);
  flex: 1 1 auto;
  min-height: 0;
  /* Equal top/bottom + left/right — same token as header horizontal inset */
  padding: var(--saito-space-xl);
  overflow: hidden;
  align-items: stretch;
  box-sizing: border-box;
}

/* Buy + Create share the same details column rhythm */
.listing-detail.view .details,
.listing-detail.edit .details {
  gap: var(--saito-space-lg);
}

.listing-detail.view .section + .section:not(.checkout),
.listing-detail.edit .section + .section:not(.checkout) {
  padding-top: var(--saito-space-md);
}

.listing-detail .gallery {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.listing-detail .media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--saito-muted);
  border-radius: var(--saito-radius-lg);
}

.listing-detail .media .image,
.listing-detail .media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail .media-content,
.listing-detail .media-text {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: var(--saito-space-lg);
}

.listing-detail .loader {
  position: absolute;
  right: var(--saito-space-md);
  bottom: var(--saito-space-md);
  font-size: 1.1rem;
  color: var(--saito-foreground);
  opacity: 0.7;
  pointer-events: none;
}

.listing-detail .thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: var(--saito-space-sm);
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.listing-detail .thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 3.6rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--saito-radius-sm);
  background: var(--saito-muted);
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease;
}

.listing-detail .thumb:hover,
.listing-detail .thumb.active {
  opacity: 1;
}

.listing-detail .thumb:focus-visible {
  outline: none;
  box-shadow: var(--saito-focus-ring);
  opacity: 1;
}

.listing-detail .thumb.active {
  border-color: var(--saito-primary);
}

.listing-detail .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail .details {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: var(--saito-space-xs);
}

.listing-detail .section {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  min-width: 0;
}

.listing-detail .section + .section:not(.checkout) {
  padding-top: var(--saito-space-md);
  border-top: 1px solid var(--saito-border);
}

.listing-detail .label {
  margin: 0;
  font-size: var(--font-size-tiny);
  font-family: var(--saito-font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saito-muted-foreground);
}

.listing-detail .amount {
  margin: 0;
  font-size: 2.5rem;
  font-family: var(--saito-font-heavy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.listing-detail .next-bid,
.listing-detail .text {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-muted-foreground);
  overflow-wrap: anywhere;
}

.listing-detail .text {
  color: var(--saito-foreground);
}

.listing-detail .facts {
  display: grid;
  gap: var(--saito-space-sm);
  margin: 0;
}

.listing-detail .facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--saito-space-sm);
  align-items: baseline;
  min-width: 0;
}

.listing-detail .facts dt,
.listing-detail .facts dd {
  margin: 0;
  font-size: var(--font-size-tiny);
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-detail .facts dt {
  color: var(--saito-muted-foreground);
}

.listing-detail .facts dt::after {
  content: none;
}

.listing-detail .seller-key {
  font-family: var(--saito-font-mono, ui-monospace, monospace);
  font-size: 1.15rem;
  line-height: 1.4;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Rental purchase checkout — same shell as sale; no quantity control */
.listing-detail.view.rental .rental-note {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
}

/* Buy overlay — checkout is the primary action cluster */
.listing-detail.view .checkout {
  gap: var(--saito-space-lg);
  padding-top: var(--saito-space-lg);
}

.listing-detail.view .note {
  min-height: 11rem;
}

.listing-detail .checkout {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: var(--saito-space-md);
  padding-top: var(--saito-space-md);
}

.listing-detail .submit-main-store {
  display: flex;
  align-items: center;
  gap: var(--saito-space-sm);
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.4;
  color: var(--saito-muted-foreground);
  cursor: pointer;
  user-select: none;
}

.listing-detail .submit-main-store input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.listing-detail .quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--saito-space-sm);
}

.listing-detail .quantity label {
  margin: 0;
  font-size: var(--font-size-tiny);
  color: var(--saito-muted-foreground);
}

.listing-detail .quantity input {
  width: 5rem;
  min-height: 2.75rem;
}

.listing-detail .hint {
  font-size: var(--font-size-tiny);
  color: var(--saito-muted-foreground);
}

.listing-detail .note {
  width: 100%;
  min-height: 6rem;
  box-sizing: border-box;
}

.listing-detail .action {
  align-self: stretch;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
}

/* Field-edit dialog — spacing on top of saito-overlay-form */
.store-listing-field-edit.saito-overlay-form {
  gap: var(--saito-space-xxl);
  padding: var(--saito-space-xxl);
}

.store-listing-field-edit .saito-button-row {
  margin-top: var(--saito-space-sm);
}

@media (max-width: 900px) {
  .listing-detail {
    width: min(96vw, 96rem);
    height: min(92dvh, 64rem);
    max-height: min(92dvh, 64rem);
  }

  .listing-detail > header {
    padding: var(--saito-space-lg) 5rem var(--saito-space-lg) var(--saito-space-lg);
  }

  .listing-detail.view:not(.delist) > header {
    padding: var(--saito-space-lg) 5rem var(--saito-space-lg) var(--saito-space-lg);
  }

  .listing-detail > .body {
    grid-template-columns: 1fr;
    gap: var(--saito-space-lg);
    padding: var(--saito-space-lg);
    overflow: auto;
  }

  .listing-detail .gallery {
    height: auto;
    min-height: 22rem;
  }

  .listing-detail .media {
    min-height: 22rem;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
  }

  .listing-detail .details {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .listing-detail .amount {
    font-size: 2rem;
  }

  .listing-detail .facts > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .listing-detail {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .listing-detail > header {
    padding: var(--saito-space-md);
    padding-top: max(var(--saito-space-md), env(safe-area-inset-top, 0px));
    padding-right: 4.5rem;
  }

  .listing-detail.view:not(.delist) > header {
    align-items: flex-start;
    gap: var(--saito-space-md);
    padding: var(--saito-space-md) 4.5rem var(--saito-space-md) var(--saito-space-md);
    padding-top: max(var(--saito-space-md), env(safe-area-inset-top, 0px));
  }

  .listing-detail.view:not(.delist) > header .saito-identicon {
    --listing-header-identicon: calc(
      (var(--font-size-medium) * 1.15) + 0.06rem + (2 * 1.05rem * 1.2) + (2 * 0.08rem)
    );
  }

  .listing-detail.view .meta-row {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .listing-detail .title {
    font-size: var(--font-size-medium);
  }

  .listing-detail .title .title-text,
  .listing-detail .title [data-field='title'] {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }

  .listing-detail > .body {
    padding: var(--saito-space-md);
    padding-bottom: calc(var(--saito-space-md) + env(safe-area-inset-bottom, 0px));
    gap: var(--saito-space-md);
  }

  .listing-detail .media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .listing-detail .thumb {
    width: 4.25rem;
    height: 3.25rem;
  }

  .listing-detail .section + .section:not(.checkout) {
    padding-top: var(--saito-space-md);
  }

  .listing-detail .checkout {
    position: sticky;
    bottom: 0;
    margin-top: var(--saito-space-md);
    padding-top: var(--saito-space-md);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--saito-card) 28%,
      var(--saito-card) 100%
    );
  }

  .listing-detail .note {
    min-height: 9rem;
  }
}
.store-cta {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--saito-space-xxl);
	background: var(--saito-canvas-background);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.store-cta.dissolve {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-0.8rem);
}

.store-cta .card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--saito-space-xxl);
	width: min(95vw, 86rem);
	padding: var(--saito-space-xxl);
}

.store-cta .flip {
	position: relative;
	flex: 0 0 min(36vw, 31rem);
	width: min(36vw, 31rem);
	aspect-ratio: 1;
	perspective: 1000px;
}

.store-cta .front,
.store-cta .back {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	backface-visibility: hidden;
	border: 1px solid var(--saito-overlay-panel-border);
	border-radius: var(--saito-border-radius);
	box-shadow: var(--saito-overlay-panel-shadow);
	transition: transform 0.6s ease;
}

.store-cta .front {
	background: var(--dreamscape);
	transform: rotateY(0deg);
}

.store-cta .back {
	background: var(--saito-overlay-panel-background);
	transform: rotateY(180deg);
}

.store-cta .flip:hover .front,
.store-cta .flip:focus-within .front {
	transform: rotateY(-180deg);
}

.store-cta .flip:hover .back,
.store-cta .flip:focus-within .back {
	transform: rotateY(0deg);
}

.store-cta .mark {
	width: 58%;
	height: 58%;
	object-fit: contain;
	filter: drop-shadow(0 0 1.8rem rgb(0 0 0 / 22%));
}

.store-cta .copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--saito-space-md);
	max-height: 100%;
	padding: clamp(var(--saito-space-lg), 3vw, var(--saito-space-xxl));
	overflow-y: auto;
	text-align: left;
}

.store-cta .copy h2 {
	margin: 0;
	font-size: clamp(2.2rem, 2.4vw, 3rem);
	line-height: 1.05;
}

.store-cta .copy p {
	margin: 0;
}

.store-cta .copy .subhead {
	width: 100%;
	padding-bottom: var(--saito-space-lg);
	border-bottom: 1px solid var(--saito-border-color);
	color: var(--saito-font-color-secondary);
	font-size: 1.3rem;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.store-cta .copy .lede {
	font-family: var(--saito-font-medium);
	font-size: 1.8rem;
	line-height: 1.35;
}

.store-cta .copy .description {
	color: var(--saito-font-color-secondary);
	font-size: 1.5rem;
	line-height: 1.55;
}

.store-cta .copy .wiki-link {
	display: inline-flex;
	align-items: center;
	gap: var(--saito-space-sm);
	margin-top: auto;
	font-family: var(--saito-font-medium);
}

.store-cta .content {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2.4rem;
	align-self: stretch;
	min-width: 0;
	text-align: center;
}

.store-cta .logo {
	--saito-cta-logo-mask: url('/saito/icons/saito-store-icon-outline-label-horizontal.svg');
	position: relative;
	display: block;
	width: min(56rem, 84vw);
	max-width: 100%;
	aspect-ratio: 381 / 134;
	filter: drop-shadow(0 0 18px rgb(255 255 255 / 8%));
}

.store-cta:hover .logo {
	--saito-cta-logo-mask: url('/saito/icons/saito-store-icon-solid-label-horizontal.svg');
}

.store-cta .logo::after {
	content: '';
	position: absolute;
	inset: 0;
	-webkit-mask: var(--saito-cta-logo-mask) center / contain no-repeat;
	mask: var(--saito-cta-logo-mask) center / contain no-repeat;
}

.store-cta .subtitle {
	margin: 0;
	color: var(--saito-font-color-secondary);
	font-size: 1.5rem;
	letter-spacing: 0.22em;
	line-height: 1.5;
	text-align: center;
	text-transform: uppercase;
}

.store-cta .actions {
	width: 100%;
}

@media (max-width: 720px) {
	.store-cta {
		padding: 0;
	}

	.store-cta .card {
		flex-direction: column;
		gap: var(--saito-space-lg);
		padding: var(--saito-space-lg);
	}

	.store-cta .flip {
		flex-basis: auto;
		width: min(60vw, 24rem);
	}

	.store-cta .content {
		flex: 0 0 auto;
		align-self: center;
		width: 100%;
	}

}
/* Namespace: .rental-listing — informational rental setup (pre-Create NFT).
   Ready/listing state reuses .listing-detail from store-listing-detail.css. */

.rental-listing.info {
  display: flex;
  flex-direction: column;
  width: min(92vw, 42rem);
  max-width: 100%;
  max-height: min(90vh, 64rem);
  max-height: min(90dvh, 64rem);
  overflow: hidden;
  box-sizing: border-box;
}

.rental-listing.info > header {
  flex: 0 0 auto;
  padding: var(--saito-space-lg) 5.25rem var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.rental-listing.info > header .title {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-medium);
  line-height: 1.25;
}

.rental-listing.info > .body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--saito-space-xl);
  overflow: auto;
}

.rental-listing.info .details {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
}

.rental-listing.info .lede {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-muted-foreground);
}

.rental-listing.info .label {
  margin: 0 0 var(--saito-space-xs);
  font-size: var(--font-size-tiny);
  font-family: var(--saito-font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saito-muted-foreground);
}

.rental-listing.info .file-name {
  margin: 0;
  font-family: var(--saito-font-medium);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rental-listing.info .file-kind {
  margin: var(--saito-space-xs) 0 0;
  color: var(--saito-muted-foreground);
  font-size: var(--font-size-small, var(--font-size-medium));
}

.rental-listing.info .rental-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--saito-space-md);
}

.rental-listing.info .rental-field {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  min-width: 0;
}

.rental-listing.info > .checkout {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: var(--saito-space-lg) var(--saito-space-xl) var(--saito-space-xl);
}

.rental-listing.info > .checkout .saito-button-row {
  margin: 0;
  width: 100%;
}

.rental-listing.info > .checkout .saito-button-primary {
  width: auto;
  min-width: 12rem;
}

@media (max-width: 600px) {
  .rental-listing.info .rental-fields {
    grid-template-columns: 1fr;
  }

  .rental-listing.info > header,
  .rental-listing.info > .body,
  .rental-listing.info > .checkout {
    padding: var(--saito-space-lg);
  }

  .rental-listing.info > header {
    padding-right: 4.5rem;
  }
}
/* Namespace: .store-settings — Store Admin settings overlay.
   Compact dialog; size the panel (not the overlay host) so closebox stays anchored.
   Width follows the checkbox labels; 42rem was far too wide under Saito rem scaling. */

.saito-overlay > .store-settings {
  width: max-content;
  max-width: 92vw;
  max-height: min(90dvh, 40rem);
  overflow: auto;
  box-sizing: border-box;
}

.store-settings {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 92vw;
}

.store-settings > header {
  flex: 0 0 auto;
  padding: var(--saito-space-lg) 5.25rem var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.store-settings > header h2 {
  margin: 0;
  font-size: var(--font-size-large);
  font-family: var(--saito-font-medium);
  line-height: 1.25;
}

.store-settings > .body {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  padding: var(--saito-space-xl);
}

.store-settings .setting {
  display: flex;
  align-items: center;
  gap: var(--saito-space-sm);
  font-size: var(--font-size-medium);
  line-height: 1.4;
  color: var(--saito-foreground);
  cursor: pointer;
  user-select: none;
}

.store-settings .setting:has([data-action="toggle-auto-submit"]) {
  white-space: nowrap;
}

.store-settings .setting input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

@media (max-width: 600px) {
  .saito-overlay > .store-settings,
  .store-settings {
    max-width: 100vw;
  }

  .store-settings > header,
  .store-settings > .body {
    padding: var(--saito-space-lg);
  }

  .store-settings > header {
    padding-right: 4.5rem;
  }
}
/* Namespace: .purchase — purchase progress dialog
   Shell follows SaitoOverlay conventions (same closebox as other overlays). */

.saito-container.store-purchase-modal-open {
  pointer-events: none;
}

/* Panel sizing only — do not stretch the overlay host (breaks closebox anchoring). */
.saito-overlay.store-purchase-overlay-shell > .purchase {
  width: min(92vw, 36rem);
  max-width: 100%;
  max-height: min(90dvh, 40rem);
  overflow: auto;
  padding: var(--saito-space-xxl) var(--saito-space-xl);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.purchase .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--saito-space-lg);
  text-align: center;
  min-width: 0;
}

.purchase .title {
  margin: 0;
  font-size: 2rem;
  font-family: var(--saito-font-medium);
  letter-spacing: -0.01em;
}

.purchase .lead,
.purchase .subtitle {
  margin: 0;
  max-width: 28rem;
  font-size: var(--font-size-medium);
  line-height: 1.5;
  color: var(--saito-muted-foreground);
  overflow-wrap: anywhere;
}

.purchase .subtitle {
  min-height: 3em;
}

.purchase .saito-spinner {
  width: 4rem;
  min-width: 4rem;
  margin-bottom: var(--saito-space-sm);
}

.purchase .success {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--saito-space-xs);
  border-radius: 50%;
  background: color-mix(in srgb, var(--saito-status-success) 18%, transparent);
  color: var(--saito-status-success);
  font-size: var(--font-size-large);
}

.purchase .stack > .saito-button-primary {
  margin-top: var(--saito-space-lg);
  min-width: 10rem;
  min-height: 2.75rem;
}

.purchase .timer {
  width: 100%;
  max-width: 18rem;
  /* Stack gap (lg) already sits above this element. Split the remaining
     2*lg so the border is midway in the lead→label space (3*lg total). */
  margin-top: calc(var(--saito-space-lg) / 2);
  padding-top: calc(var(--saito-space-lg) * 1.5);
  border-top: 1px solid var(--saito-border);
}

.purchase .timer-label,
.purchase .timer-unit {
  display: block;
  font-size: var(--font-size-tiny);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--saito-muted-foreground);
}

.purchase .countdown {
  display: inline-block;
  margin: var(--saito-space-sm) 0;
  font-size: 2.5rem;
  font-family: var(--saito-font-heavy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Dialog surface on mobile: .retain-surface on .purchase */

@media (max-width: 600px) {
  .saito-overlay.store-purchase-overlay-shell > .purchase {
    width: min(100vw, 36rem);
    max-height: min(88dvh, 40rem);
    padding: var(--saito-space-xl) var(--saito-space-lg);
  }

  .purchase .title {
    font-size: var(--font-size-large);
  }

  .purchase .countdown {
    font-size: 2rem;
  }

  .purchase .stack > .saito-button-primary {
    width: 100%;
    min-width: 0;
  }
}
/* Pre-broadcast purchase monitor (before Transaction Monitor) */
.purchase.monitor .subtitle {
  min-height: 1.5em;
}

.purchase.monitor .title {
  transition: opacity 0.15s ease;
}
/* Namespace: .listing-detail.delist — seller reclaim overlay (reuses listing-detail layout) */

.listing-detail.delist .delist-note {
  margin: 0 0 var(--saito-space-md);
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
}

.listing-detail.delist .checkout .action {
  width: 100%;
}
/* Namespace: .prepare-store — first-time store onboarding overlay. */

.saito-overlay:has(> .prepare-store) {
  width: min(92vw, 76rem);
  height: auto;
  max-width: calc(100vw - 2 * var(--saito-space-md));
  max-height: min(92vh, 90dvh);
}

.prepare-store {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(92vh, 90dvh);
  overflow: hidden;
  box-sizing: border-box;
}

.prepare-store > header {
  flex: 0 0 auto;
  padding: var(--saito-space-lg) 5.25rem var(--saito-space-lg) var(--saito-space-xl);
  border-bottom: 1px solid var(--saito-border);
}

.prepare-store > header .heading {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  min-width: 0;
}

.prepare-store > header h2 {
  margin: 0;
  font-size: 2rem;
  font-family: var(--saito-font-medium);
  letter-spacing: -0.01em;
}

.prepare-store > header .lede {
  margin: 0;
  max-width: 44rem;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
}

.prepare-store > header .lede[hidden] {
  display: none;
}

.prepare-store > .body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--saito-space-xl);
  overflow: auto;
}

.prepare-store .preparing-panel,
.prepare-store .ready-panel {
  display: flex;
  flex-direction: column;
  transition: opacity 0.18s ease;
}

.prepare-store .preparing-panel {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: var(--saito-space-md);
  min-height: 18rem;
  text-align: center;
}

.prepare-store .preparing-panel .saito-spinner {
  width: 4rem;
  min-width: 4rem;
}

.prepare-store .preparing-panel[hidden],
.prepare-store .ready-panel[hidden] {
  display: none;
}

.prepare-store .status {
  margin: 0;
  min-height: 1.5em;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
  transition: opacity 0.12s ease;
}

.prepare-store .status.is-exit,
.prepare-store .preparing-panel.is-exit,
.prepare-store .ready-panel.is-exit {
  opacity: 0;
}

.prepare-store .ready-panel {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  gap: var(--saito-space-xl);
  width: 100%;
}

.prepare-store .steps {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--saito-space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prepare-store .steps::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 1.75rem;
  left: calc(16.66% + 1.75rem);
  right: calc(16.66% + 1.75rem);
  border-top: 2px dotted color-mix(in srgb, #a4d037 70%, var(--saito-border));
  pointer-events: none;
}

.prepare-store .step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--saito-space-md);
  min-width: 0;
  text-align: center;
  transition: opacity 0.18s ease;
}

.prepare-store .step.upcoming {
  opacity: 0.42;
}

.prepare-store .step.complete {
  opacity: 0.72;
}

.prepare-store .step.current {
  opacity: 1;
}

.prepare-store .step .index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #a4d037;
  color: var(--saito-popover);
  font-size: 1.35rem;
  font-family: var(--saito-font-heavy);
  line-height: 1;
}

.prepare-store .step .figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 14rem;
  height: 14rem;
}

.prepare-store .step .disc {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: #ead9b0;
  transform: translateX(-50%);
  pointer-events: none;
}

.prepare-store .step .figure img {
  position: relative;
  z-index: 1;
  width: 13rem;
  height: 13rem;
  object-fit: contain;
  object-position: bottom center;
}

/* Soften bright illustrations in side steps so the current step leads. */
.prepare-store .step.upcoming .figure img,
.prepare-store .step.complete .figure img {
  filter: brightness(0.88);
}

.prepare-store .step .copy {
  margin: 0;
  max-width: 18rem;
  min-height: 3em;
  font-size: var(--font-size-medium);
  line-height: 1.45;
  color: var(--saito-muted-foreground);
}

.prepare-store .step .saito-button-primary {
  margin: 0;
  min-width: 12rem;
  background: #a4d037;
  color: #111111;
  border-color: #a4d037;
}

.prepare-store .step .saito-button-primary:hover,
.prepare-store .step .saito-button-primary:focus-visible {
  background: color-mix(in srgb, #a4d037 82%, #ffffff);
  color: #111111;
}

.prepare-store .step .saito-button-primary:disabled {
  opacity: 0.55;
  cursor: default;
}

.prepare-store .store-address {
  margin-top: auto;
  padding-top: var(--saito-space-lg);
  border-top: 1px solid var(--saito-border);
  width: 100%;
}

.prepare-store .store-address .label {
  margin: 0 0 var(--saito-space-sm);
  font-size: var(--font-size-medium);
  color: var(--saito-muted-foreground);
}

.prepare-store .storefront-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: var(--saito-space-sm);
  width: 100%;
  max-width: 100%;
}

.prepare-store .storefront-url {
  margin: 0;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, #ffffff 8%, transparent);
  color: color-mix(in srgb, #ffffff 94%, var(--saito-muted-foreground));
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: var(--font-size-small);
  line-height: 1.4;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.prepare-store .storefront-url:hover,
.prepare-store .storefront-url:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.prepare-store .storefront-url-row .saito-icon-button {
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  width: auto;
  min-width: unset;
  min-height: unset;
  aspect-ratio: 1;
}

@media (max-width: 900px) {
  .prepare-store > header,
  .prepare-store > .body {
    padding: var(--saito-space-lg);
  }

  .prepare-store > header {
    padding-right: 4.5rem;
  }

  .prepare-store .steps {
    gap: var(--saito-space-md);
  }

  .prepare-store .step .figure,
  .prepare-store .step .figure img {
    width: 11rem;
    height: 11rem;
  }

  .prepare-store .step .disc {
    width: 8.5rem;
    height: 8.5rem;
  }

  .prepare-store .step .saito-button-primary {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .saito-overlay:has(> .prepare-store) {
    width: min(100vw, 76rem);
    max-width: 100vw;
  }

  .prepare-store .steps {
    grid-template-columns: 1fr;
  }

  .prepare-store .steps::before {
    display: none;
  }

  .prepare-store .step .figure {
    width: 12rem;
    height: 12rem;
  }
}

@media (max-width: 600px) {
  .saito-overlay:has(> .prepare-store) {
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .prepare-store {
    max-height: 100dvh;
  }

  .prepare-store > header {
    padding: var(--saito-space-md);
    padding-top: max(var(--saito-space-md), env(safe-area-inset-top, 0px));
    padding-right: 4.5rem;
  }

  .prepare-store > header h2 {
    font-size: var(--font-size-large);
  }

  .prepare-store > .body {
    padding: var(--saito-space-md);
    padding-bottom: calc(var(--saito-space-lg) + env(safe-area-inset-bottom, 0px));
  }
}
/* Namespace: .teaser / .teasers — listing card + grid on Saito card tokens */

.teasers {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, var(--saito-nft-image-size, 20rem)), max-content)
  );
  justify-content: start;
  align-content: start;
  align-items: start;
  gap: var(--saito-space-xl) var(--saito-space-lg);
  width: 100%;
  min-width: 0;
}

.teaser {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--saito-radius);
  background: var(--saito-card);
  border: 1px solid var(--saito-border);
  box-shadow: var(--saito-elevation-0);
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.teaser:focus-visible {
  outline: none;
  box-shadow: var(--saito-focus-ring);
}

@media (hover: hover) and (pointer: fine) {
  .teaser:hover {
    background-color: color-mix(in srgb, var(--saito-card) 86%, var(--saito-accent));
    border-color: var(--saito-border);
    box-shadow: var(--saito-elevation-0);
  }
}

.teaser .media {
  position: relative;
  box-sizing: border-box;
  width: var(--saito-nft-image-size, 20rem);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 0 0 auto;
  background-color: var(--saito-muted);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.teaser .media-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--saito-space-md);
}

.teaser .badge {
  position: absolute;
  top: calc(3.4rem + var(--saito-space-sm));
  left: var(--saito-space-sm);
  z-index: 3;
  max-width: calc(100% - 4rem);
  padding: var(--saito-space-xs) var(--saito-space-sm);
  border-radius: var(--saito-radius-full);
  background: color-mix(in srgb, var(--saito-background) 85%, transparent);
  backdrop-filter: blur(8px);
  color: var(--saito-foreground);
  font-size: var(--font-size-tiny);
  font-family: var(--saito-font-medium);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaser .saito-identicon {
  position: absolute;
  right: var(--saito-space-sm);
  bottom: calc(3.4rem + var(--saito-space-sm));
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--saito-background) 55%, transparent);
  object-fit: cover;
}

.teaser .loader {
  position: absolute;
  right: var(--saito-space-sm);
  top: calc(3.4rem + var(--saito-space-sm));
  font-size: var(--font-size-tiny);
  color: var(--saito-foreground);
  opacity: 0;
  pointer-events: none;
}

.teaser .media.loading .loader {
  opacity: 0.75;
}

.teaser .title {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  line-height: 3.4rem;
  font-size: var(--font-size-medium);
  font-family: var(--saito-font-medium);
  color: var(--saito-foreground);
  background-color: color-mix(in srgb, var(--saito-black) 70%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaser .price {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  line-height: 3.4rem;
  font-size: var(--font-size-medium);
  font-family: var(--saito-font-medium);
  color: var(--saito-foreground);
  background-color: color-mix(in srgb, var(--saito-black) 70%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaser .info {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  padding: var(--saito-space-md) var(--saito-space-md) var(--saito-space-lg);
  min-width: 0;
}

.teaser .info:empty {
  display: none;
}

.teaser .seller {
  margin: 0;
  font-size: var(--font-size-tiny);
  color: var(--saito-muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .teasers {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--saito-nft-image-size, 20rem)), max-content));
    gap: var(--saito-space-lg);
  }
}

@media (max-width: 600px) {
  .teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    gap: var(--saito-space-md);
  }

  .teaser {
    width: auto;
  }

  .teaser .media {
    width: 100%;
  }

  .teaser .info {
    padding: var(--saito-space-sm) var(--saito-space-sm) var(--saito-space-md);
    gap: var(--saito-space-xs);
  }

  .teaser .title,
  .teaser .price {
    font-size: var(--font-size-tiny);
    line-height: 2.8rem;
  }

  .teaser .badge {
    top: calc(2.8rem + var(--saito-space-sm));
    padding: 0.45rem 0.65rem;
    font-size: 1.05rem;
  }

  .teaser .saito-identicon {
    bottom: calc(2.8rem + var(--saito-space-sm));
  }
}
