/* Exchange activity layouts only. Header, shell, controls, Hero, benefits, Account,
   VIP, footer, menus and mobile navigation remain their actual shared owners. */
#content {
  min-width: 0;
}
.v1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.v1-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.v1-section {
  margin-top: 48px;
}
.v1-section > .section-title {
  margin-bottom: 22px;
}
.v1-section .section-title p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.v1-section .muted-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v1-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  margin: 24px 0;
}
.v1-result-bar p {
  margin: 0;
}
.v1-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.v1-listing {
  min-width: 0;
}
.v1-listing-art {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 286px;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--tcgn-radius-surface, 24px);
  overflow: hidden;
}
.v1-listing-art img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.v1-listing-state {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 10px;
  line-height: 1;
  background: var(--page);
  color: var(--text);
  border-radius: 100px;
  padding: 7px 9px;
}
.v1-listing-copy {
  padding: 16px 3px 0;
}
.v1-card-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.v1-exchange-pricing .pricing-page-content .membership-comparison {
  --comparison-accent: var(--brand);
  --comparison-canvas: var(--page);
  --comparison-muted: var(--muted);
  --comparison-top: calc(var(--product-header-height) + var(--breadcrumb-height, 0px));
}
.v1-exchange-pricing .membership-comparison .vip-action .comparison-cta {
  color: var(--page);
}
.v1-listing-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.v1-listing-foot {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.v1-listing-foot strong {
  font-size: 18px;
}
.v1-listing-foot a {
  font-size: 12px;
  color: var(--muted);
}
.v1-listing a:hover,
.v1-managed a:hover {
  color: var(--brand);
}
.v1-image-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  height: 100%;
  min-height: 90px;
}
.v1-image-missing svg {
  width: 32px;
  height: 32px;
}
.v1-trader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.v1-vip {
  font: 700 9px/1 var(--tcgn-control-font);
  padding: 5px 7px;
  border-radius: 100px;
  color: var(--text);
  background: var(--surface-2, #1a1e1e);
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.v1-filters {
  padding: 22px;
  border-radius: var(--tcgn-radius-surface);
  background: var(--surface);
}
.v1-filters details {
  margin-top: 18px;
}
.v1-filters summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  width: max-content;
  padding: 4px 0;
}
.v1-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.v1-filter-fields label,
.v1-form label,
.v1-inline-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}

.v1-form textarea {
  resize: vertical;
}
.v1-form :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.v1-inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.v1-inline-form label {
  min-width: 200px;
}
.v1-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.v1-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 16px;
}
.v1-detail-set {
  color: var(--muted);
}
.v1-detail-price {
  font-size: 30px;
  font-weight: 700;
  margin: 30px 0;
}
.v1-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0;
}
.v1-detail-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.v1-detail-facts dd {
  margin: 6px 0 0;
  font-weight: 600;
}
.v1-detail-copy > .v1-actions {
  margin-top: 24px;
}
.v1-report-link {
  font-size: 12px;
  color: var(--muted);
}
.v1-detail-note {
  padding-block: 16px;
  border-block: 1px solid var(--border);
}
.v1-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.v1-tabs a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  font-size: 13px;
}
.v1-tabs [aria-current] {
  color: var(--page);
  background: var(--brand);
}
.v1-usage {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.v1-usage strong {
  color: var(--text);
  font-size: 18px;
}
.v1-usage a {
  margin-left: auto;
}
.v1-managed-list {
  display: grid;
  gap: 12px;
}
.v1-managed {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--tcgn-radius-surface);
  padding: 22px;
}
.v1-managed-art {
  height: 120px;
  display: flex;
  align-items: center;
}
.v1-managed-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v1-managed h3 {
  font-size: 17px;
  margin: 0;
}
.v1-managed p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.v1-managed-copy > a {
  font-size: 12px;
  color: var(--brand);
}
.v1-managed-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}
.v1-status {
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
}
.v1-text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 12px;
  cursor: pointer;
}
.v1-match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.v1-match-list {
  display: grid;
  gap: 16px;
}
.v1-match {
  padding: 24px;
  border-radius: var(--tcgn-radius-surface);
  background: var(--surface);
}
.v1-match-identity {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.v1-match-identity h3 {
  margin: 0;
  font-size: 17px;
}
.v1-match-identity p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.v1-match-identity > strong {
  font-size: 25px;
  color: var(--brand);
  text-align: right;
}
.v1-match-identity small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.v1-match-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.v1-match-cards img {
  height: 110px;
  width: 100%;
  object-fit: contain;
}
.v1-match-cards span {
  display: block;
  font-size: 10px;
  margin-top: 8px;
}
.v1-match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.v1-match-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.v1-steps {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  margin: 32px 0;
}
.v1-steps li {
  display: flex;
  gap: 8px;
}
.v1-steps [aria-current] {
  color: var(--brand);
}
.v1-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.v1-picker-item {
  padding: 16px;
  border-radius: var(--tcgn-radius-surface);
  background: var(--surface);
  font-size: 13px;
}
.v1-picker-item img {
  height: 160px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
}
.v1-picker-item strong {
  display: block;
}
.v1-picker-item > span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.v1-sell-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 550px);
  gap: 64px;
  justify-content: center;
}
.v1-sell-card {
  text-align: center;
}
.v1-sell-card > div {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--tcgn-radius-surface);
}
.v1-sell-card img {
  height: 310px;
  width: 100%;
  object-fit: contain;
}
.v1-sell-card h2 {
  font-size: 22px;
  margin-top: 22px;
}
.v1-sell-card p {
  font-size: 13px;
  color: var(--muted);
}
.v1-sell-card > a {
  font-size: 12px;
  color: var(--brand);
}
.v1-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.v1-form .v1-caption {
  margin: 8px 0 0;
}
.v1-form > .button {
  align-self: start;
}
.v1-profile-form {
  max-width: 640px;
}
.v1-form fieldset {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.v1-form legend {
  font-size: 16px;
  margin-bottom: 18px;
}
.v1-form .v1-checkbox {
  flex-direction: row;
  align-items: center;
}
.v1-checkbox input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}
.v1-dialog {
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 32px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--tcgn-radius-surface);
}
.v1-dialog::backdrop {
  background: #000b;
}
.v1-dialog-close {
  float: right;
}
.v1-dialog h2 {
  margin: 0 0 24px;
  font-size: 24px;
}
.v1-notice {
  padding: 16px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
}
.v1-form [role='alert'],
.v1-dialog [role='alert'] {
  color: #ffa7a7;
}
.v1-form [role='alert']:empty,
.v1-dialog [role='alert']:empty {
  display: none;
}
/* Exchange-only composition: all four full card frames live inside one scalable
   coordinate system. Art never sizes the shared Hero or crosses its media slot. */
.tcgn-hero[data-tcgn-hero-visual='market'] .stock-hero-media-art {height:auto;min-height:0;overflow:clip}
.v1-market-art {position:absolute;inset:0;display:grid;place-items:center;isolation:isolate;color:var(--page);pointer-events:none}
.v1-exchange-scene {display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:640px;overflow:visible}
.v1-exchange-badge {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;box-sizing:border-box;border:1px solid rgb(255 255 255 / .12);border-radius:50%;background:#101412}
html[data-tcgn-v1] #main .stock-hero-home[data-tcgn-hero-visual='market'] h1 {max-width:22ch}
@media(max-width:700px){
  html[data-tcgn-v1] #main .stock-hero-home[data-tcgn-hero-visual='market'] .stock-hero-actions .button {padding-inline:10px;gap:4px}
}
@media(max-width:1100px){.tcgn-hero[data-tcgn-hero-visual='market']{grid-template-columns:minmax(0,1fr)}.tcgn-hero[data-tcgn-hero-visual='market'] .stock-hero-media-art{display:none}}

.v1-form [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .v1-listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v1-trader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v1-filter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .v1-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .v1-sell-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
  }
  .v1-art-stack {
    transform: scale(0.83);
    transform-origin: center;
  }
  .v1-art-selling {
    left: -7%;
  }
  .v1-art-wanted {
    right: -5%;
  }
}
@media (max-width: 900px) {
  .header-actions > a[aria-label='My Listings'] {
    display: none;
  }
  .v1-managed {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .v1-managed-actions {
    grid-column: 2;
    justify-content: start;
  }
  .v1-match-columns {
    grid-template-columns: 1fr;
  }

}
@media (max-width: 800px) {
  .tcgn-hero[data-tcgn-hero-visual='market'] {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tcgn-hero[data-tcgn-hero-visual='market'] .stock-hero-media-art {
    display: none;
  }
  .v1-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v1-listing-art {
    height: 250px;
  }
  .v1-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v1-sell-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .v1-sell-card {
    max-width: 300px;
    margin: auto;
  }
  .v1-sell-card img {
    height: 250px;
  }
  .v1-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .v1-section {
    margin-top: 36px;
  }
  .v1-result-bar > span {
    display: none;
  }
  .v1-listing-grid {
    gap: 24px 12px;
  }
  .v1-listing-art {
    height: 210px;
    padding: 24px 14px 16px;
  }
  .v1-listing-state {
    font-size: 8px;
    left: 10px;
    top: 10px;
  }
  .v1-card-name {
    font-size: 15px;
  }
  .v1-listing-copy p {
    font-size: 11px;
  }
  .v1-listing-foot strong {
    font-size: 16px;
  }
  .v1-listing-foot a {
    font-size: 11px;
  }
  .v1-trader-grid {
    grid-template-columns: 1fr;
  }
  .v1-filters {
    padding: 18px;
  }
  .v1-filter-search {
    flex-wrap: wrap;
    gap: 10px;
  }
  .v1-filter-search > label:first-child {
    flex-basis: 100%;
  }
  .v1-filter-search > button {
    margin-left: auto;
  }
  .v1-filter-fields {
    gap: 12px;
  }
  .v1-managed {
    gap: 14px;
    padding: 18px;
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .v1-managed-art {
    height: 90px;
  }
  .v1-managed h3 {
    font-size: 15px;
  }
  .v1-managed-actions {
    grid-column: 1/-1;
  }
  .v1-status {
    flex-basis: 100%;
  }
  .v1-tabs a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .v1-steps {
    gap: 16px;
    font-size: 11px;
  }
  .v1-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .v1-picker-item img {
    height: 155px;
  }
  .v1-match {
    padding: 20px;
  }
  .v1-match-cards img {
    height: 90px;
  }
  .v1-match-footer {
    align-items: start;
    flex-direction: column;
  }
  .v1-detail-facts {
    gap: 16px;
  }
  .v1-form fieldset {
    grid-template-columns: 1fr;
  }
  .v1-usage {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .header-actions > a[aria-label='Sell your cards'] {
    display: none;
  }
}
.v1-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}
.v1-bulk-toolbar label,
.v1-bulk-pick {
  display: flex;
  gap: 8px;
  align-items: center;
}
.v1-bulk-pick {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.v1-bulk-toolbar input,
.v1-select-listing input,
.v1-bulk-pick input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.v1-bulk-create {
  max-width: 550px;
  margin-top: 36px;
}
.v1-bulk-create[hidden] {
  display: none;
}
.v1-picker-item > a {
  display: block;
}
.v1-picker-item > a > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.v1-art-stack > picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Page-specific content placement; primitive dimensions stay with TCGN owners. */
#exchange-shell {min-height:100svh;display:flex;flex-direction:column}
html[data-tcgn-v1] #exchange-shell > #main {width:100%;flex:1;margin:0 auto}
.v1-filters {padding:0;background:var(--page);border-radius:0}
.v1-filter-fields label,.v1-form label {display:flex;flex-direction:column;gap:8px}
.tcgn-control-row > label:not(.tcgn-search) {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.tcgn-control-row > label:not(.tcgn-search) .tcgn-select {width:auto}
.v1-form .tcgn-search {flex-direction:row}
.v1-detail-copy .v1-detail-price {margin:4px 0;font-size:30px}
.v1-detail-copy .v1-detail-facts {margin:0}
.v1-detail-copy > .v1-actions {margin-top:0}
.v1-detail-copy > p {margin-block:0}
.v1-account-info {max-width:900px;margin:auto}
@media(max-width:700px){.tcgn-control-row > .tcgn-search {flex-basis:100%}}

.tcgn-toolbar > label {display:flex;flex-direction:column;gap:8px;min-width:160px;font-size:12px;color:var(--muted)}
.tcgn-toolbar .tcgn-select {appearance:none;background-image:var(--tcgn-control-chevron);background-repeat:no-repeat;background-position:right 16px center;background-size:18px;padding-right:48px}

/* Marketplace composition: shared controls, page-stack and metric owners supply geometry. */
.v1-marketplace > :is(.page-heading, .value-metrics, .v1-tabs, .v1-card-market-header, .v1-card-tabs) {
  margin: 0 0 var(--tcgn-page-stack-gap);
}
html[data-tcgn-v1] #main .v1-metrics-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v1-marketplace .v1-section { margin-top: var(--tcgn-section-gap, 32px); }
.v1-marketplace .v1-result-bar { margin: 0 0 var(--tcgn-page-stack-gap); }
.v1-marketplace :is(.v1-collector-row, .v1-managed, .v1-match) a:not(.button),
.v1-marketplace .v1-picker-item strong { text-decoration: underline; text-underline-offset: 3px; }
.v1-marketplace .activity-filters { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v1-marketplace .v1-tabs a { background: transparent; border-radius: var(--tcgn-radius-control); }
.v1-marketplace .v1-tabs a[aria-current] { color: var(--text); background: var(--surface-secondary); }
.v1-card-market-header { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.v1-card-market-art { width: 100%; padding: 12px; margin: 0; min-height: 0; height: 190px; border-radius: var(--tcgn-radius-surface); background: var(--surface); }
.v1-card-market-art img { width: 100%; height: 100%; object-fit: contain; }
.v1-card-market-identity h1 { font-size: 36px; line-height: 1.12; margin: 0; }
.v1-card-market-identity .detail-set-identity { display: block; margin: 12px 0; color: var(--muted); }
.v1-card-context-actions { justify-content: end; }
.v1-cross-product-label { font-size: 11px; color: var(--muted); }
.v1-tracker-info { font-size: 12px; margin-top: 8px; color: var(--muted); max-width: 440px; }
.v1-tracker-info summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.v1-tracker-info p { line-height: 1.6; }
.v1-collector-list { display: grid; gap: 12px; }
.v1-collector-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr) auto; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--tcgn-radius-surface); background: var(--surface); }
.v1-collector-identity > a { font-weight: 700; }
.v1-collector-identity > span:last-child { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.v1-collector-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; }
.v1-collector-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.v1-collector-facts dd { font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.v1-collector-row > .v1-caption { grid-column: 1 / -1; margin: 0; }
.v1-collector-row .v1-actions { justify-content: end; }
.v1-collector-row .v1-actions .button { white-space: nowrap; }
.v1-filter-panel .v1-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v1-filter-panel { max-height: calc(100dvh - 32px); overflow-y: auto; }
.v1-filter-count { font-size: 12px; }
.v1-marketplace .tcgn-toolbar > .tcgn-control-row > label:not(.tcgn-search) { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.v1-marketplace .tcgn-toolbar .tcgn-all-filters { background: var(--brand); color: var(--page); border-color: var(--brand); }
.v1-marketplace .v1-status { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--tcgn-radius-control); color: var(--text); }
.v1-marketplace .v1-status[data-listing-status='ACTIVE'] { color: var(--brand); }
.v1-marketplace .v1-form > button[type='submit'] { align-self: stretch; }
.v1-marketplace .v1-form [hidden] { display: none; }
@supports (appearance: base-select) {
  .v1-marketplace .tcgn-select, .v1-marketplace .tcgn-select::picker(select), .v1-dialog .tcgn-select, .v1-dialog .tcgn-select::picker(select) { appearance: base-select; }
  .v1-marketplace .tcgn-select, .v1-dialog .tcgn-select { background-image: none; padding-right: 16px; }
  .v1-marketplace .tcgn-select::picker(select), .v1-dialog .tcgn-select::picker(select) { background: var(--surface); color: var(--text); border: 2px solid var(--control-border); border-radius: var(--tcgn-radius-input); }
}
@media(max-width:1100px) {
  .v1-card-market-header { grid-template-columns: 140px minmax(0,1fr); }
  .v1-card-context-actions { grid-column: 2; justify-content: start; }
  .v1-collector-row { grid-template-columns: minmax(120px,1fr) minmax(0,3fr); }
  .v1-collector-row .v1-actions { grid-column: 1 / -1; justify-content: start; }
}
@media(max-width:700px) {
  .v1-card-market-header { grid-template-columns: 76px minmax(0,1fr); gap: 16px; }
  .v1-card-market-art { height: 105px; padding: 6px; }
  .v1-card-market-identity h1 { font-size: 28px; }
  .v1-card-context-actions { grid-column: 1 / -1; }
  .v1-collector-row { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 16px; }
  .v1-collector-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v1-filter-panel .v1-filter-fields { grid-template-columns: minmax(0,1fr); }
  .v1-marketplace .v1-steps { gap: 12px; }
  .v1-marketplace .v1-steps li { min-width: 0; }
}

.v1-collector-facts > div { display: block; padding: 0; border: 0; }
.v1-collector-row > .v1-caption { grid-column: 2 / -1; }
@media(max-width:1100px) { .v1-collector-row > .v1-caption { grid-column: 1 / -1; } }

/* Exchange quality gate: compact composition around the canonical Network primitives. */
.v1-marketplace .tcgn-toolbar { margin: 0 0 24px; }
.v1-marketplace .tcgn-control-row { align-items: center; gap: 12px; }
.v1-marketplace .tcgn-control-row > label:not(.tcgn-search) { flex-direction: row; align-items: center; min-width: 0; white-space: nowrap; }
.v1-marketplace .tcgn-control-row .tcgn-select { min-width: 160px; max-width: 280px; }
.v1-marketplace .tcgn-select, .v1-dialog .tcgn-select { line-height: 1.3; }
@supports (appearance: base-select) {
  .v1-marketplace .tcgn-select, .v1-dialog .tcgn-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .v1-marketplace .tcgn-select::picker-icon, .v1-dialog .tcgn-select::picker-icon { content: ''; width: 18px; height: 18px; flex: 0 0 18px; background: var(--tcgn-control-chevron) center / 18px no-repeat; }
  .v1-marketplace .tcgn-select option, .v1-dialog .tcgn-select option { padding: 12px 16px; font: 500 13px/1.4 var(--tcgn-control-font); }
  .v1-marketplace .tcgn-select option:checked, .v1-dialog .tcgn-select option:checked { background: var(--surface-secondary); color: var(--brand); }
  .v1-marketplace .tcgn-select option:hover, .v1-dialog .tcgn-select option:hover { background: var(--surface-secondary); }
}
.v1-marketplace .v1-empty { padding: 24px; margin: 0; border: 1px solid var(--border); border-radius: var(--tcgn-radius-surface); text-align: left; min-height: 0; }
.v1-marketplace .v1-empty h2 { font-size: 20px; margin: 0 0 8px; }
.v1-marketplace .v1-empty p { font-size: 13px; margin: 0 0 16px; max-width: 620px; }
.v1-marketplace .v1-empty p:last-child { margin-bottom: 0; }
.v1-marketplace .v1-match-columns > .v1-section { margin-top: 0; }
.v1-marketplace .v1-section > .section-title { margin-bottom: 16px; }
.v1-marketplace .v1-bulk-toolbar { margin: 0 0 20px; gap: 8px; }
.v1-marketplace .v1-bulk-toolbar .button { min-height: 36px; padding: 8px 12px; border-radius: var(--tcgn-radius-control, 8px); }
.v1-marketplace .v1-bulk-toolbar button:disabled { opacity: .45; cursor: default; }
.v1-marketplace .v1-managed-actions .button { min-height: 36px; padding: 8px 12px; border-radius: var(--tcgn-radius-control, 8px); }
.v1-marketplace .v1-text-button, .v1-marketplace .v1-report-link, .v1-marketplace .v1-listing-foot a, .v1-marketplace .v1-result-bar a, .v1-marketplace .v1-plan-note a, .v1-marketplace .v1-sell-card > a { text-decoration: underline; text-underline-offset: 3px; }
.v1-marketplace .v1-managed-actions .v1-status { margin: 0; }
.v1-marketplace > .tcgn-public-profile { margin-bottom: 24px; }
.v1-marketplace .tcgn-public-profile h1 { font-size: 36px; line-height: 1.15; }
.v1-marketplace .tcgn-public-profile :is(h1,h3) a { text-decoration: underline; text-underline-offset: 3px; }
.v1-marketplace .v1-trader-grid { margin-top: 24px; }
.v1-profile-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.v1-profile-columns > .v1-section { margin-top: 0; }
.v1-profile-columns .v1-listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v1-marketplace .v1-form { gap: 18px; }
.v1-marketplace .v1-form > .v1-caption { margin: -8px 0 0; }
.v1-marketplace .v1-steps { margin: 0 0 24px; }
.v1-marketplace .v1-select-listing { min-height: 36px; min-width: 36px; display: grid; place-items: center; }
@media(max-width:900px) { .v1-profile-columns { grid-template-columns: minmax(0,1fr); } }
@media(max-width:700px) {
  .v1-marketplace { padding-top: 20px; }
  .v1-marketplace .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .v1-marketplace .page-heading > .v1-actions { flex-wrap: wrap; }
  .v1-marketplace .page-heading .button { min-height: 40px; padding: 10px 16px; white-space: nowrap; }
  .v1-marketplace .tcgn-control-row > label:not(.tcgn-search) { flex: 1; }
  .v1-marketplace .tcgn-control-row .tcgn-select { min-width: 0; max-width: none; width: 100%; }
  .v1-marketplace .tcgn-control-row > .tcgn-all-filters { margin-left: auto; }
  .v1-marketplace .v1-empty { padding: 20px; }
  .v1-marketplace .v1-managed-actions { gap: 8px; }
  .v1-marketplace .v1-status { flex-basis: auto; }
  .v1-marketplace .tcgn-public-profile h1 { font-size: 28px; }
  .v1-marketplace .v1-sell-card { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 8px 16px; width: 100%; max-width: none; text-align: left; align-items: start; }
  .v1-marketplace .v1-sell-card > div { grid-row: 1 / 4; padding: 6px; }
  .v1-marketplace .v1-sell-card img { height: 110px; }
  .v1-marketplace .v1-sell-card :is(h2,p) { margin: 0; }
  .v1-marketplace .v1-sell-card h2 { font-size: 20px; }
  .v1-marketplace .v1-sell-layout { gap: 24px; }
}

@media(max-width:700px) {
  #market-filters .tcgn-control-row > .tcgn-search { flex: 1 1 calc(100% - 56px); min-width: 0; }
  #market-filters .v1-search-submit { width: 44px; min-width: 44px; padding: 0; border-radius: var(--tcgn-radius-input); }
  #market-filters .v1-search-submit > span { display: none; }
  #market-filters .tcgn-control-row > label:not(.tcgn-search) { flex: 1 1 auto; }
  .v1-marketplace:has(.v1-profile-form) .page-heading > .v1-actions { flex-basis: 100%; }
}

.v1-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }

.v1-bulk-toolbar[data-has-selection="false"] [data-bulk-action] { display: none; }
.v1-bulk-toolbar > label { min-height: 44px; cursor: pointer; }
.v1-bulk-toolbar[data-has-selection="true"] { position: sticky; top: calc(var(--product-header-height, 108px) + var(--breadcrumb-height, 0px) + 8px); z-index: 10; padding: 8px 12px; background: var(--page); border: 1px solid var(--border); border-radius: var(--tcgn-radius-input); }
@media(min-width:701px) and (max-width:800px) {
  .v1-marketplace { padding-top: 20px; }
  .v1-marketplace .v1-sell-card { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 8px 16px; width: 100%; max-width: none; text-align: left; align-items: start; }
  .v1-marketplace .v1-sell-card > div { grid-row: 1 / 4; padding: 6px; }
  .v1-marketplace .v1-sell-card img { height: 110px; }
  .v1-marketplace .v1-sell-card :is(h2,p) { margin: 0; }
  .v1-marketplace .v1-sell-card h2 { font-size: 20px; }
  .v1-marketplace .v1-sell-layout { gap: 24px; }
}
/* These pages compose several control rows; only selected bulk actions stick. */
.v1-marketplace > .tcgn-toolbar, .v1-marketplace .activity-filters { position: static; top: auto; z-index: auto; }
html[data-tcgn-v1] #main.tcgn-page-shell .v1-marketplace .activity-filters { position: static; top: auto; z-index: auto; }

/* 15 October Exchange review: existing Network surfaces, scoped to Exchange. */
html[data-tcgn-v1] .primary-nav > .v1-personal-nav-start {position:relative;padding-inline-start:32px}
.v1-personal-nav-start::before { content:""; position:absolute; width:1px; height:18px; background:var(--border); left:0; top:50%; transform:translateY(-50%); }
.v1-listing { background:var(--surface); border:1px solid var(--border); border-radius:var(--tcgn-radius-surface,24px); overflow:hidden; display:flex; flex-direction:column; }
.v1-tile-link { display:flex; flex-direction:column; flex:1; color:inherit; text-decoration:none; min-width:0; }
.v1-tile-link:focus-visible { outline:2px solid var(--text); outline-offset:-3px; border-radius:inherit; }
.v1-listing-art { border-radius:0; background:transparent; }
.v1-listing-copy { padding:16px; display:flex; flex-direction:column; flex:1; min-width:0; }
.v1-card-name { line-height:1.4; min-height:2.8em; overflow-wrap:anywhere; }
.v1-listing-foot { margin-top:auto; padding-top:14px; }
.v1-tile-action { font-size:12px; text-decoration:underline; text-underline-offset:3px; color:var(--muted); }
html[data-tcgn-v1] #main .v1-metric-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
html[data-tcgn-v1] #main .v1-metric-tabs > a { display:flex; flex-direction:column; gap:8px; padding:20px; min-width:0; color:var(--muted); text-decoration:none; border-bottom:3px solid transparent; }
html[data-tcgn-v1] #main .v1-metric-tabs > a + a { border-left:1px solid var(--border); }
html[data-tcgn-v1] #main .v1-metric-tabs > a strong { font-size:28px; color:var(--text); }
html[data-tcgn-v1] #main .v1-metric-tabs > a[aria-current] { color:var(--text); border-bottom-color:var(--brand); background:var(--surface); }
html[data-tcgn-v1] #main .v1-metric-tabs > a:hover { background:var(--surface); }
html[data-tcgn-v1] #main .v1-metric-tabs > a:focus-visible { outline:2px solid var(--text); outline-offset:-4px; }
.v1-profile-page > .tcgn-public-profile { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px 24px; }
.v1-profile-page > .tcgn-public-profile > header { grid-column:1; grid-row:1; }
.v1-profile-page > .tcgn-public-profile > .tcgn-profile-actions { grid-column:2; grid-row:1; justify-content:flex-end; margin:0; }
.v1-profile-page > .tcgn-public-profile > :is(p,.v1-notice) { grid-column:1/-1; margin:0; }
.tcgn-profile-avatar { overflow:hidden; }
.tcgn-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.v1-listing-detail-top { display:flex; justify-content:flex-end; margin-bottom:16px; }
.v1-all-listings { text-decoration:underline; text-underline-offset:4px; display:inline-flex; align-items:center; gap:6px; }
.v1-all-listings:focus-visible { outline:2px solid var(--text); outline-offset:4px; }
.header-search { position:relative; }
.search-preview { position:absolute; top:calc(100% + 8px); right:0; width:min(380px,calc(100vw - 24px)); z-index:80; max-height:min(520px,calc(100dvh - 140px)); overflow-y:auto; padding:8px; border:1px solid var(--border); border-radius:12px; background:var(--page); box-shadow:0 8px 20px #0004; }
.search-preview[hidden] { display:none; }
.search-preview-group h2 { margin:8px 10px 4px; color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.search-preview-row { display:flex; align-items:center; gap:12px; min-height:48px; padding:8px 10px; border-radius:7px; color:inherit; text-decoration:none; }
.search-preview-row:hover,.search-preview-row[aria-selected="true"] { background:var(--surface); }
.search-preview-row:focus-visible { outline:2px solid var(--text); outline-offset:-2px; }
.search-preview-row img { flex:0 0 32px; object-fit:contain; border-radius:2px; }
.search-preview-row span { min-width:0; }
.search-preview-row strong { display:block; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.search-preview-row small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
#search-preview-status { margin:4px 10px; font-size:11px; color:var(--muted); }
#search-preview-status:empty { display:none; }
.search-clear-recent { border:0; background:transparent; color:var(--muted); padding:10px; font-size:11px; cursor:pointer; }

@media(max-width:768px) {
 .v1-profile-page > .tcgn-public-profile { grid-template-columns:minmax(0,1fr); }
 .v1-profile-page > .tcgn-public-profile > .tcgn-profile-actions { grid-column:1; grid-row:auto; justify-content:flex-start; }
 .v1-listing-copy { padding:12px; }
 .search-preview { position:fixed; top:var(--product-header-height); right:12px; max-height:calc(100dvh - var(--product-header-height) - 24px); }
}

.tcgn-profile-avatar { position:relative; }
.tcgn-profile-avatar img { position:absolute; inset:0; }

.v1-picker-summary {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.v1-create-actions {position:fixed;inset:auto 0 0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px var(--gutter) calc(16px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -6px 20px #0003}
.v1-create-actions[hidden] {display:none}
.v1-create-actions > div {display:flex;align-items:center;gap:20px}
.v1-create-actions strong {font-size:14px}
html:has(.v1-create-actions:not([hidden])) body {padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.v1-bulk-create {scroll-margin-top:calc(var(--product-header-height) + var(--breadcrumb-height) + 24px)}
.v1-publish-cards {max-height:35dvh;overflow:auto;padding-left:24px}
@media(max-width:700px){.v1-picker-summary{align-items:flex-start;flex-direction:column}}
/* Stack above the shared mobile dock; its actual safe-area geometry is reused. */
@media(max-width:900px){
  html[data-tcgn-v1]:has(.v1-create-actions:not([hidden])) {
    --tcge-selection-gap:var(--tcgn-mobile-nav-side-inset,8px);
    --tcge-selection-clearance:calc(var(--tcge-selection-nav-clearance,var(--mobile-bottom-clearance,0px)) + var(--tcge-selection-bar-height,0px) + var(--tcge-selection-keyboard-inset,0px) + 2 * var(--tcge-selection-gap));
    scroll-padding-bottom:var(--tcge-selection-clearance);
  }
  html[data-tcgn-v1]:has(.v1-create-actions:not([hidden])) body {padding-bottom:var(--tcge-selection-clearance)}
  html[data-tcgn-v1]:has(.v1-create-actions:not([hidden])) .tcgn-floating-nav {display:grid;translate:0 calc(-1 * var(--tcge-selection-keyboard-inset,0px))}
  html[data-tcgn-v1] .v1-create-actions {bottom:calc(var(--tcge-selection-nav-clearance,var(--mobile-bottom-clearance,0px)) + var(--tcge-selection-keyboard-inset,0px) + var(--tcgn-mobile-nav-side-inset,8px));gap:8px;padding:8px var(--tcgn-mobile-nav-side-inset,8px)}
  html[data-tcgn-v1] .v1-create-actions > div {flex:1 1 0;min-width:0;flex-direction:column;align-items:flex-start;gap:2px}
  html[data-tcgn-v1] .v1-create-actions strong {font-size:12px;line-height:16px;overflow-wrap:anywhere}
  html[data-tcgn-v1] .v1-create-actions .v1-text-button {padding:4px 0;line-height:16px}
  html[data-tcgn-v1] .v1-create-actions > .button {flex:0 1 auto;min-width:0;font-size:12px;line-height:16px;padding-inline:12px;white-space:normal}
}
/* Catalogue labels and native/custom select text must not compete in a shrinkable row. */
#create-card-filters .tcgn-control-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
#create-card-filters .tcgn-control-row > label:not(.tcgn-search) {display:grid;gap:8px;min-width:0;white-space:normal}
#create-card-filters .tcgn-control-row > label select {width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#create-card-filters .tcgn-search {grid-column:span 2;width:100%;min-width:0}
@media(max-width:600px){#create-card-filters .tcgn-control-row{grid-template-columns:minmax(0,1fr) auto}#create-card-filters .tcgn-control-row > label:not(.tcgn-search){grid-column:1/-1}#create-card-filters .tcgn-search{grid-column:1}#create-card-filters .tcgn-control-row > .button{grid-column:2}}

@media(max-width:1024px){html[data-tcgn-v1] .primary-nav > .v1-personal-nav-start {padding-inline-start:20px}}
