/* 前期资产广场：沿全站Workbench，布局与状态只消费tokens。 */
.os-projects.os-market {
  padding-inline: var(--market-page-gutter);
}
.os-market .os-projects__inner {
  max-width: var(--market-content-width);
}
.os-market-head,
.os-market-actions,
.os-market-toolbar,
.os-market-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.os-market-head {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.os-market-head .os-page-title {
  display: flex;
  align-items: center;
  min-height: var(--control-h);
  margin: 0;
}
.os-market-intro {
  margin: 0 0 var(--space-6);
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
}
.os-market-actions {
  flex-wrap: wrap;
}
.os-market-toolbar {
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.os-market-search {
  position: relative;
  display: flex;
  align-items: center;
  width: var(--market-search-width);
}
.os-market-search .os-input {
  width: 100%;
  padding-inline-end: var(--space-10);
}
.os-market-search > .os-icon-btn {
  position: absolute;
  right: var(--space-1);
}
.os-market-notice {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.os-market-error {
  color: var(--semantic-negative-line);
  font-size: var(--fs-body-sm);
  white-space: pre-wrap;
}
.os-market-error:empty {
  display: none;
}
.os-market-meta {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  line-height: var(--lh-ui);
}
.os-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--market-card-min)), 1fr));
  gap: var(--space-4);
}
.os-market-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-card);
  background: var(--bg-input);
}
.os-market-product:hover,
.os-market-product:focus-within {
  border-color: var(--line-strong);
}
.os-market-product__art {
  position: relative;
}
.os-market-product__cover {
  display: block;
  width: 100%;
  aspect-ratio: var(--market-cover-ratio);
  object-fit: cover;
  background: var(--bg-subtle);
}
.os-market-product__hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-6);
  color: var(--cta-text);
  background: var(--market-poster-mask);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.os-market-product:hover .os-market-product__hover,
.os-market-product:focus-within .os-market-product__hover {
  opacity: 1;
}
.os-market-product__hover > p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
}
.os-market-product__call {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
.os-market-product__call .os-icon {
  width: var(--icon-inline);
  height: var(--icon-inline);
}
.os-market-product__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
}
.os-market-product__body p,
.os-market-product__body h2 {
  margin: 0;
}
.os-market-product h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-ui);
}
.os-market-product__footer,
.os-market-product__byline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.os-market-product__byline {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.os-market-product__byline > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-market-product__byline > time {
  flex: none;
}
.os-market-product__price {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
}
.os-market-product__open {
  position: absolute;
  inset: 0;
  z-index: var(--market-layer-hit);
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}
.os-market-product__open:focus-visible {
  outline: 2px solid var(--keyboard-focus);
  outline-offset: calc(-1 * var(--space-1));
}
.os-market-favorite--cover {
  position: absolute;
  z-index: var(--market-layer-control);
  top: var(--space-2);
  right: var(--space-2);
  color: var(--cta-text);
  background: var(--market-poster-mask);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.os-market-product:hover .os-market-favorite--cover,
.os-market-product:has(:focus-visible) .os-market-favorite--cover {
  opacity: 1;
  pointer-events: auto;
}
.os-market-favorite--cover:hover {
  color: var(--cta-text);
  background: var(--cta-solid);
}
.os-market-favorite[aria-pressed="true"] .os-icon {
  fill: currentColor;
}
.os-market-empty {
  grid-column: 1 / -1;
  padding: var(--space-12) var(--space-4);
  color: var(--text-secondary);
  text-align: center;
  font-size: var(--fs-body-sm);
}
.os-market-dialog {
  width: min(var(--market-dialog-width), calc(100vw - var(--space-12)));
  max-width: none;
  max-height: calc(100dvh - var(--space-12));
  margin: auto;
  padding: var(--space-6);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
  color: var(--text-primary);
}
.os-market-dialog::backdrop {
  background: var(--scrim);
}
.os-market-dialog[open] {
  animation: os-pop-in var(--dur) var(--ease);
}
.os-market-dialog__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.os-market-dialog__head h2 {
  margin: 0;
  font-size: var(--fs-page-title);
  line-height: var(--lh-heading);
  font-weight: var(--fw-semibold);
  overflow-wrap: anywhere;
}
.os-market-dialog__head .os-icon-btn {
  flex: none;
}
.os-market-dialog__head > .os-market-actions {
  flex: none;
  flex-wrap: nowrap;
}
.os-market-dialog--preview[open],
.os-market-dialog--account[open],
.os-market-dialog--publish[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.os-market-dialog--preview {
  width: min(var(--market-preview-width), calc(100vw - var(--space-12)));
  height: var(--market-preview-height);
}
.os-market-detail {
  display: grid;
  grid-template-columns: var(--market-toc-width) minmax(0, 1fr) var(--market-purchase-width);
  flex: 1;
  gap: var(--space-8);
  min-height: 0;
  overflow: hidden;
}
.os-market-toc {
  min-height: 0;
  overflow: auto;
  padding-block: 0;
}
.os-market-toc__item {
  display: block;
  width: 100%;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
  text-align: start;
  cursor: pointer;
}
.os-market-toc__item:hover,
.os-market-toc__item[aria-current] {
  color: var(--text-primary);
  background: var(--bg-subtle);
}
.os-market-toc__item[aria-current] {
  font-weight: var(--fw-medium);
}
.os-market-toc__item--episode {
  padding-inline-start: var(--space-5);
}
.os-market-toc__group {
  margin: var(--space-5) var(--space-3) var(--space-2);
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.os-market-reader {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.os-market-reading {
  max-width: var(--market-reader-width);
  margin-inline: auto;
  padding: 0 var(--space-4) var(--space-6) 0;
}
.os-market-chapter {
  margin: 0 0 var(--space-10);
}
.os-market-chapter > h3 {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
}
.os-market-prose {
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
  overflow-wrap: anywhere;
}
.os-market-prose p {
  white-space: pre-line;
}
.os-market-prose :is(h1, h2, h3) {
  font-size: var(--fs-section);
}
.os-market-prose .os-story__document {
  min-height: 0;
  margin: 0;
  padding: 0;
  max-width: none;
}
.os-market-gallery {
  --market-gallery-controls-width: calc(var(--control-h-btn) * 2 + var(--space-3) * 2);
  --market-gallery-fit-width: min(
    var(--market-gallery-image-width),
    calc(var(--market-gallery-height) * var(--market-gallery-image-ratio)),
    calc(100% - var(--market-gallery-controls-width))
  );
}
.os-market-carousel {
  display: grid;
  grid-template-columns: var(--control-h-btn) minmax(0, 1fr) var(--control-h-btn);
  align-items: center;
  gap: var(--space-3);
  width: min(100%, calc(var(--market-gallery-image-width) + var(--market-gallery-controls-width)));
  height: var(--market-gallery-height);
  margin-inline: auto;
}
.os-market-carousel > .os-icon-btn {
  width: var(--control-h-btn);
  height: var(--control-h-btn);
}
.os-market-carousel__figure {
  position: relative;
  align-self: start;
  justify-self: center;
  min-width: 0;
  width: min(var(--market-gallery-image-width), calc(var(--market-gallery-height) * var(--market-gallery-image-ratio)));
  max-width: 100%;
  aspect-ratio: var(--market-gallery-image-ratio);
  overflow: hidden;
  margin: 0;
}
.os-market-carousel__figure img {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.os-market-carousel img,
.os-market-carousel-thumbs img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.os-market-carousel__figure img.is-entering {
  animation: os-fade-in var(--dur) var(--ease);
}
.os-market-carousel-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  width: var(--market-gallery-fit-width);
  margin: var(--space-3) auto;
  font-size: var(--fs-body-sm);
}
.os-market-carousel-caption > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.os-market-carousel-caption > .os-market-meta {
  flex: none;
}
.os-market-carousel-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.os-market-carousel-thumb {
  width: var(--market-thumb-side);
  height: var(--market-thumb-side);
  padding: var(--space-1);
  border: var(--stroke) solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  cursor: pointer;
}
.os-market-carousel-thumb[aria-pressed="true"] {
  border-color: var(--line-strong);
  background-color: var(--selection-surface);
}
.os-market-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.os-market-purchase {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: var(--space-4);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: var(--space-2);
}
.os-market-purchase__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
  overflow: auto;
}
.os-market-purchase__info > * {
  flex-shrink: 0;
}
.os-market-cover {
  width: 100%;
  aspect-ratio: var(--market-cover-ratio);
  object-fit: cover;
  background: var(--bg-subtle);
  border-radius: var(--radius-card);
}
.os-market-purchase p,
.os-market-purchase h3 {
  margin: 0;
}
.os-market-purchase__genre {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}
.os-market-purchase__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
}
.os-market-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  margin: 0;
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}
.os-market-project-facts > div {
  display: grid;
  gap: var(--space-2);
}
.os-market-project-facts dt {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.os-market-project-facts dd {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}
.os-market-seller {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}
.os-market-checkout {
  display: grid;
  flex: none;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-6);
}
.os-market-price {
  font-size: var(--fs-page-title);
  font-weight: var(--fw-semibold);
}
.os-market-checkout > .os-btn {
  width: 100%;
}
.os-market-locked {
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  text-align: center;
  font-size: var(--fs-body-sm);
}
.os-market-details {
  padding: var(--space-2) 0;
}
.os-market-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-body-sm);
}
.os-market-details summary::-webkit-details-marker {
  display: none;
}
.os-market-details summary::marker {
  content: "";
}
.os-market-details summary > .os-icon {
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.os-market-details[open] > summary > .os-icon {
  transform: rotate(90deg);
}
.os-market-details__body {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.os-market-details__body > p {
  margin: 0;
}
.os-market-details--card {
  padding: 0;
  border: var(--stroke) solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-input);
  overflow: hidden;
}
.os-market-details--card > summary {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.os-market-details--card[open] > summary {
  border-bottom: var(--stroke) solid var(--border-hairline);
}
.os-market-details--card > .os-market-details__body {
  margin-top: 0;
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.os-market-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-4);
  align-items: start;
}
.os-market-guide .os-market-directory {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  line-height: var(--lh-prose);
}
.os-market-guide__info {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.os-market-guide__info > p {
  margin: 0;
  line-height: var(--lh-prose);
}
.os-market-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.os-market-guide__actions .os-btn {
  gap: var(--space-2);
  border-color: var(--line);
  background: var(--bg-canvas);
  text-decoration: none;
}
.os-market-form {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
.os-market-field {
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
  min-width: 0;
}
.os-market-input {
  width: 100%;
  min-width: 0;
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: var(--space-3);
  font: inherit;
}
.os-market-input:focus {
  border-color: var(--line-strong);
  outline: none;
}
input.os-market-input:not([type="file"]),
select.os-market-input {
  height: var(--control-h);
  padding-block: 0;
}
textarea.os-market-input {
  min-height: var(--market-textarea-height);
  resize: none;
}
input.os-market-input::file-selector-button {
  height: var(--control-h-sm);
  margin-inline-end: var(--space-3);
  padding-inline: var(--space-3);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-canvas);
  font: inherit;
  cursor: pointer;
}
.os-market-check {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-2);
  width: auto;
  height: auto;
  min-height: var(--selection-hit);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
}
.os-market-check > .os-select-box {
  flex: none;
  margin-top: var(--space-1);
}
.os-market-check > input {
  width: var(--selection-hit);
  height: var(--selection-hit);
}
.os-market-check__label {
  padding-block: var(--space-1);
}
.os-market-check__label > a {
  text-decoration: underline;
}
.os-market-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--asset-tile-min)), 1fr));
  gap: var(--space-2);
  max-height: var(--select-menu-max-height);
  overflow: auto;
}
.os-market-choices .os-market-check {
  padding: var(--space-2);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-sm);
}
.os-market-choices .os-market-check:has(input:checked) {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}
.os-market-directory,
.os-market-script {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: var(--fs-body-sm)/var(--lh-prose) var(--font-ui);
}
.os-market-directory {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
}
.os-market-script {
  max-height: var(--market-script-height);
}
.os-market-section {
  margin: var(--space-6) 0;
}
.os-market-section h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.os-market-dialog--account,
.os-market-dialog--publish {
  width: min(var(--market-account-width), calc(100vw - var(--space-12)));
  height: var(--market-account-height);
}
.os-market-dialog--account > .os-market-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}
.os-market-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  min-height: var(--control-h);
  flex: none;
}
.os-market-dialog--publish > .os-market-form {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.os-market-publish {
  display: grid;
  grid-template-columns: var(--market-step-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-6);
  flex: 1;
  min-height: 0;
}
.os-market-source > .os-btn {
  justify-self: start;
}
.os-market-source > .os-market-meta:empty {
  display: none;
}
.os-market-tabs {
  flex-wrap: wrap;
  gap: var(--space-6);
  flex: none;
}
.os-market-tabs button {
  height: var(--control-h);
  padding: 0;
  border: 0;
  border-bottom: var(--stroke) solid transparent;
  border-radius: 0;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: var(--fs-body-sm);
  cursor: pointer;
}
.os-market-tabs button[aria-selected="true"] {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.os-market-account-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.os-market-account-panel {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: var(--space-4);
}
.os-market-account-panel > .os-market-ledger:has(> .os-market-account-empty) {
  flex: 1;
  align-content: center;
}
.os-market-account-content .os-market-section .os-market-empty {
  padding: var(--space-6) 0;
  text-align: start;
}
.os-market-list {
  display: grid;
  gap: var(--space-3);
}
.os-market-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-card);
  background: var(--bg-input);
}
.os-market-card :is(h2, h3) {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.os-market-card p {
  margin: 0;
  overflow-wrap: anywhere;
}
.os-market-card > .os-market-actions {
  margin-top: var(--space-2);
}
.os-market-wallet {
  display: grid;
  gap: var(--space-4);
  animation: os-fade-in var(--dur) var(--ease);
}
.os-market-wallet-overview {
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
}
.os-market-wallet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.os-market-wallet-balance {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.os-market-wallet-balance p {
  margin: 0;
  font-size: var(--fs-body-sm);
}
.os-market-wallet-balance strong {
  font-size: var(--fs-stat);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.os-market-wallet-heading > .os-btn {
  flex: none;
}
.os-market-wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-3) 0 0;
}
.os-market-wallet-stats dt {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  line-height: var(--lh-ui);
}
.os-market-wallet-stats dd {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-section);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-heading);
  overflow-wrap: anywhere;
}
.os-market-wallet-section {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.os-market-wallet-section h3,
.os-market-payout-info h4 {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-ui);
}
.os-market-payout-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--market-wallet-method-min)), 1fr));
  gap: var(--space-3);
}
.os-market-payout-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-card);
  background: var(--bg-input);
}
.os-market-payout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  height: var(--control-h);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.os-market-payout-info {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}
.os-market-payout-info p {
  margin: 0;
  overflow-wrap: anywhere;
}
.os-market-payout-method > .os-market-error {
  grid-column: 1 / -1;
  margin: 0;
}
.os-market-wallet-filter {
  width: var(--market-wallet-filter-width);
}
.os-market-wallet-table-wrap {
  overflow-x: auto;
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-card);
}
.os-market-wallet-table {
  width: 100%;
  min-width: var(--market-wallet-history-width);
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
}
.os-market-wallet-table th,
.os-market-wallet-table td {
  padding: var(--space-2) var(--space-4);
  text-align: start;
}
.os-market-wallet-table th {
  color: var(--text-secondary);
  background: var(--bg-subtle);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.os-market-wallet-table tbody tr + tr {
  border-top: var(--stroke) solid var(--border-hairline);
}
.os-market-wallet-table .os-market-wallet-amount {
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.os-market-wallet-table .os-market-wallet-empty {
  padding: var(--space-3);
  text-align: center;
  color: var(--text-secondary);
}
.os-market-wallet-table th:nth-child(5),
.os-market-wallet-table td:nth-child(5) {
  text-align: end;
}
.os-market-wallet-table td:last-child > .os-btn {
  height: var(--control-h-sm);
  font-size: var(--fs-caption);
}
.os-market-wallet-section > .os-market-error {
  margin: 0;
}
.os-market-withdrawal-state {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  min-width: var(--market-wallet-state-width);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  font-size: var(--fs-caption);
  line-height: var(--lh-ui);
  white-space: nowrap;
}
.os-market-withdrawal-state[data-state="succeeded"] {
  background: var(--semantic-positive);
}
.os-market-withdrawal-state[data-state="failed"] {
  background: var(--semantic-negative);
}
.os-market-dialog--withdrawal {
  width: min(var(--content-modal), calc(100vw - var(--space-12)));
}
.os-market-withdrawal {
  gap: var(--space-5);
}
.os-market-withdrawal > p {
  margin: 0;
}
.os-market-withdrawal-amount-field {
  position: relative;
}
.os-market-withdrawal-amount-field input {
  height: var(--control-h-lg);
  font-size: var(--fs-section);
  font-variant-numeric: tabular-nums;
}
.os-market-wallet-text-action {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-caption);
  line-height: var(--lh-ui);
  cursor: pointer;
}
.os-market-wallet-text-action:hover {
  text-decoration: underline;
}
.os-market-wallet-text-action:disabled {
  color: var(--disabled-text);
  cursor: default;
}
.os-market-wallet-detail-amount {
  margin: 0;
  font-size: var(--billing-account-value);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.os-market-file-list {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-3);
}
.os-market-admin {
  display: grid;
  gap: var(--space-4);
}
.os-market-admin .os-market-toolbar > select {
  width: auto;
}
.os-market-document {
  max-width: var(--market-dialog-width);
  margin: var(--space-8) auto;
  padding: var(--space-6);
  color: var(--text-primary);
  line-height: var(--lh-prose);
}

/* 2026-11-06：竖版商品、统一工具栏、单项目结账与分步发布。 */
.os-market-search-input,
.os-market-main-action {
  height: var(--control-h);
  border-radius: var(--radius-sm);
}
.os-market-main-action {
  min-width: var(--market-action-width);
  justify-content: center;
}
.os-market-search .os-input {
  height: var(--control-h);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
}
.os-market-scope {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
}
.os-market-dialog__heading {
  min-width: 0;
}
.os-market-dialog__heading .os-market-scope {
  margin-top: var(--space-2);
}
.os-market-more {
  display: block;
  margin: var(--space-5) auto 0;
}
.os-market-loading {
  margin: var(--space-4) 0;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}
.os-market-reading .os-market-prose {
  content-visibility: auto;
  contain-intrinsic-size: auto var(--market-script-height);
}
.os-market-reading .os-market-prose.is-reading {
  content-visibility: visible;
}
.os-market-dialog--checkout {
  width: min(var(--market-checkout-width), calc(100vw - var(--space-12)));
}
.os-market-checkout-product,
.os-market-package-summary,
.os-market-confirm-product {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}
.os-market-checkout-poster,
.os-market-publish-cover {
  width: var(--market-poster-small);
  aspect-ratio: var(--market-cover-ratio);
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
  background: var(--bg-subtle);
}
.os-market-checkout-product h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
}
.os-market-checkout-product p {
  margin: var(--space-2) 0 0;
}
.os-market-delivery-facts {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  padding: var(--space-5);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}
.os-market-delivery-facts > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
}
.os-market-delivery-facts dt {
  color: var(--text-secondary);
  flex: none;
}
.os-market-delivery-facts dd {
  margin: 0;
  text-align: end;
  overflow-wrap: anywhere;
}
.os-market-checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-4);
}
.os-market-checkout-total .os-market-price {
  margin: 0;
}
.os-market-dialog--checkout .os-btn--primary {
  width: 100%;
}
.os-market-ledger {
  display: grid;
  gap: var(--space-2);
}
.os-market-ledger-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.os-market-ledger-info {
  flex: 1;
  min-width: 0;
}
.os-market-ledger-info h3 {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-ui);
  overflow-wrap: anywhere;
}
.os-market-ledger-info p {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
}
.os-market-ledger-state {
  width: var(--market-action-width);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}
.os-market-ledger-price {
  width: var(--market-action-width);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}
.os-market-ledger-cover {
  width: var(--market-ledger-cover);
  aspect-ratio: var(--market-cover-ratio);
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.os-market-ledger-row > .os-market-actions {
  justify-content: end;
}
.os-market-account-bar .os-market-toolbar {
  flex: 1 1 auto;
  max-width: 100%;
  margin-bottom: 0;
  margin-inline-start: auto;
  justify-content: flex-end;
}
.os-market-account-bar .os-market-toolbar > input {
  width: min(100%, var(--market-search-width));
}
.os-market-account-bar .os-market-toolbar > select {
  width: var(--market-step-width);
}
.os-market-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.os-market-account-empty h3 {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: var(--fw-medium);
}
.os-market-dialog--publish {
  width: min(var(--market-publish-width), calc(100vw - var(--space-12)));
}
.os-market-dialog--publish > .os-market-form {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.os-market-publish-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}
.os-market-publish-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--control-h-lg);
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-card);
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: var(--fs-body);
  text-align: start;
  cursor: pointer;
}
.os-market-publish-step[aria-current="step"] {
  color: var(--text-primary);
  background: var(--bg-subtle);
  font-weight: var(--fw-medium);
}
.os-market-publish-step:disabled {
  cursor: default;
}
.os-market-publish-step__number {
  font-size: var(--fs-caption);
}
.os-market-publish-stages {
  min-height: 0;
  overflow: auto;
  padding: 0 var(--space-2) var(--space-4) 0;
}
.os-market-publish-stage {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}
.os-market-publish-stage[hidden] {
  display: none;
}
.os-market-publish-stage > h3,
.os-market-publish-header > h3 {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: var(--fw-medium);
}
.os-market-publish-header {
  display: grid;
  gap: var(--space-1);
}
.os-market-publish-header > p {
  margin: 0;
}
.os-market-publish-stage h4 {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}
.os-market-publish-stage > p {
  margin: 0;
}
.os-market-source-card {
  display: grid;
  border: var(--stroke) solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-input);
  overflow: hidden;
}
.os-market-source-body {
  padding: var(--space-5);
}
.os-market-source-body select.os-market-input {
  border-color: var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg-canvas);
  transition: border-color var(--dur) var(--ease);
}
.os-market-source-body select.os-market-input:hover {
  border-color: var(--line-strong);
}
.os-market-source-row {
  display: grid;
  grid-template-columns: minmax(var(--market-step-width), 1fr) minmax(0, 2fr);
  gap: var(--space-4);
  align-items: end;
}
.os-market-field__label {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-ui);
  color: var(--text-primary);
}
.os-market-filepicker {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--control-h);
  padding-inline: var(--space-1) var(--space-3);
  border: var(--stroke) solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-canvas);
  min-width: 0;
  transition: border-color var(--dur) var(--ease);
}
.os-market-filepicker:hover,
.os-market-filepicker:has(input:focus-visible) {
  border-color: var(--line-strong);
}
.os-market-filepicker__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-h-sm);
  padding-inline: var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  line-height: var(--lh-ui);
  transition: background var(--dur) var(--ease);
}
.os-market-filepicker:hover .os-market-filepicker__btn {
  background: var(--bg-fill);
}
.os-market-filepicker__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}
.os-market-filepicker[data-selected="true"] .os-market-filepicker__name {
  color: var(--text-primary);
}
.os-market-filepicker__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.os-market-filepicker__input:disabled {
  cursor: default;
}
.os-market-source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: var(--stroke) solid var(--border-hairline);
  background: var(--bg-subtle);
}
.os-market-source-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
}
.os-market-source-status > .os-icon {
  flex: none;
}
.os-market-source-status > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.os-market-source-status[data-state="idle"] > .os-icon {
  color: var(--text-muted);
}
.os-market-source-status[data-state="ready"] {
  color: var(--text-primary);
}
.os-market-source-status[data-state="valid"],
.os-market-source-status[data-valid="true"] {
  color: var(--semantic-positive-ink);
  font-weight: var(--fw-medium);
}
.os-market-source-status[data-state="error"] {
  color: var(--semantic-negative-line);
}
.os-market-source-validate {
  flex: none;
  margin-inline-start: auto;
  border-color: var(--line);
  background: var(--bg-canvas);
}
.os-market-source-validate[data-ready="true"] {
  border-color: var(--line-strong);
  color: var(--text-title);
}
.os-market-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.os-market-publish-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
}
.os-market-publish-footer .os-btn--secondary {
  border-color: var(--line);
}
.os-market-publish-footer button[hidden] {
  display: none;
}
.os-market-picture-choice {
  display: grid;
  gap: var(--space-4);
}
.os-market-picture-choice > .os-btn {
  justify-self: start;
}
.os-market-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--market-poster-small)), 1fr));
  gap: var(--space-3);
}
.os-market-picture {
  position: relative;
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2);
  border: var(--stroke) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-input);
  font: inherit;
  cursor: pointer;
}
.os-market-picture[aria-pressed="true"] {
  border-color: var(--line-strong);
  background-color: var(--selection-surface);
  background: var(--bg-subtle);
}
.os-market-picture img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-subtle);
}
.os-market-picture span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-caption);
}
.os-market-confirm-product .os-market-prose {
  margin: var(--space-3) 0;
}
@media (hover: none) {
  .os-market-product__hover {
    display: none;
  }
}
@media (max-width: 720px) {
  .os-market-publish {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .os-market-publish-steps {
    flex-direction: row;
    overflow-x: auto;
  }
  .os-market-source-row,
  .os-market-guide,
  .os-market-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
