/* Styles that exist only in the V2 collector edition. Shared tokens and components come
   from tokens.css and app.css; the version switch itself is styled in app.css. */
.v2-phase {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.v2-note {
  margin-top: var(--s-4);
}
.v2-copies-empty {
  margin: 0;
}
.v2-holding + .v2-holding {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.v2-holding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.v2-holding-head small {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.v2-copy {
  min-height: 52px;
}
.v2-copy.is-plain .row-title {
  color: var(--text-2);
}
.v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-tags .chip {
  height: 24px;
}
.v2-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.v2-form-lead {
  margin: 0;
}
.v2-photo {
  width: 120px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.v2-form-more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.v2-danger {
  color: var(--danger);
}
.v2-cost {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-xl, 24px);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.v2-stats {
  margin-bottom: var(--s-4);
}
@media (min-width: 900px) {
  .v2-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.v2-conds {
  margin-top: var(--s-3);
}

/* P2 · goals and import */
.v2-goal-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .v2-goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
a.v2-goal {
  display: grid;
  gap: var(--s-2);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease);
}
a.v2-goal:hover {
  transform: translateY(-2px);
}
.v2-goal + .v2-goal {
  margin-top: 0;
}
.v2-goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.v2-goal-top small {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.v2-goal-pct {
  font-size: var(--fs-xl, 24px);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.v2-num {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.v2-modes {
  display: grid;
  gap: var(--s-2);
}
.v2-modes small {
  display: block;
  color: var(--text-3);
}
.v2-check {
  cursor: pointer;
}
.v2-check input {
  margin: 0;
}
.v2-status {
  margin-bottom: var(--s-3);
}
.v2-status .chip.is-active {
  border-color: var(--accent);
  color: var(--accent-text);
}
.v2-import-row .row-title {
  white-space: normal;
}
.v2-fix {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.v2-fix .select {
  flex: 1 1 260px;
}

/* P3 · value and profit */
.v2-pl.up {
  color: var(--success);
}
.v2-pl.down {
  color: var(--danger);
}
.v2-split {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-4) 0;
}
.v2-split > .panel + .panel {
  margin-top: 0;
}
@media (min-width: 1000px) {
  .v2-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.v2-table {
  display: grid;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.v2-tr {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.v2-table.is-simple .v2-tr {
  grid-template-columns: minmax(0, 2.2fr) minmax(64px, auto) minmax(96px, auto);
}
.v2-tr:last-child {
  border-bottom: 0;
}
.v2-tr > span:not(:first-child) {
  text-align: right;
}
.v2-th {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
@media (max-width: 640px) {
  .v2-table:not(.is-simple) .v2-tr {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .v2-table:not(.is-simple) .v2-tr > span:nth-child(2),
  .v2-table:not(.is-simple) .v2-tr > span:nth-child(4) {
    display: none;
  }
}
.v2-sealed .row-end {
  gap: var(--s-2);
}

/* P4 · Pokédex binder, illustrators and binder planner */
.v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.v2-dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: var(--s-3);
}
.v2-dex-cell {
  display: grid;
  gap: 2px;
  padding: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease);
}
.v2-dex-cell:hover {
  transform: translateY(-2px);
}
.v2-dex-cell b {
  overflow: hidden;
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-dex-cell small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.v2-dex-num {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.v2-dex-art {
  display: grid;
  place-items: center;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-3);
}
.v2-dex-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-dex-cell:not(.is-owned) .v2-dex-art img {
  filter: grayscale(1);
  opacity: 0.45;
}
.v2-dex-cell.is-owned {
  border-color: var(--accent-soft);
}
.v2-traits {
  margin: 0 0 var(--s-3);
}
.v2-trait .i {
  color: var(--accent);
}
.v2-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
}
.v2-search .input {
  flex: 1 1 260px;
}
.v2-artist-row .bar {
  margin-top: 6px;
}
.v2-binder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}
.v2-binder-controls .select {
  flex: 1 1 180px;
}
.v2-binder {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 1000px) {
  .v2-binder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.v2-page {
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.v2-page header {
  margin-bottom: var(--s-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.v2-pockets {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
}
.v2-pocket {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-3);
}
.v2-pocket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-pocket:not(.is-owned) img {
  filter: grayscale(1);
  opacity: 0.35;
}
.v2-pocket.is-owned {
  border-style: solid;
}
.v2-pocket.is-hit {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.v2-pocket-label {
  position: absolute;
  inset: auto 0 0;
  padding: 2px 4px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text-2);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media print {
  body.v2-printing .sidebar,
  body.v2-printing .topbar,
  body.v2-printing .tabbar,
  body.v2-printing .page-head,
  body.v2-printing .v2-binder-controls,
  body.v2-printing .v2-search,
  body.v2-printing #toast {
    display: none !important;
  }
  body.v2-printing .v2-binder {
    display: block;
  }
  body.v2-printing .v2-page {
    border: 0;
    break-after: page;
  }
  body.v2-printing .v2-pocket:not(.is-owned) img {
    opacity: 0.6;
  }
}

/* P5 · collector calendar and notifications */
.v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.v2-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.v2-steps {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding-left: 1.4em;
}
.v2-push-topics {
  display: grid;
}
.v2-push-topics .switch-row + .switch-row {
  border-top: 1px solid var(--border);
}
.v2-cal-next {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.v2-cal-next > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.v2-cal-next b {
  font-size: var(--fs-lg);
}
.v2-cal-count {
  display: grid;
  flex: none;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-text);
  line-height: 1;
}
.v2-cal-count b {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.v2-cal-count small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.v2-cal-row {
  align-items: flex-start;
}
.v2-cal-row .row-title,
.v2-cal-row .row-sub {
  white-space: normal;
}
.v2-cal-row .v2-tags {
  margin-top: 6px;
}
.v2-cal-row.is-past {
  opacity: 0.62;
}
.v2-cal-date {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  padding: 6px 0;
  border-radius: 12px;
  background: var(--surface-2);
  line-height: 1.1;
}
.v2-cal-date b {
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
}
.v2-cal-date small {
  color: var(--text-3);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
}
.v2-cal-row[data-kind='set'] .v2-cal-date,
.v2-cal-row[data-kind='special-set'] .v2-cal-date {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.v2-cal-sources {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: var(--fs-xs);
}
.v2-cal-sources a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
}
.v2-copyline {
  display: flex;
  gap: var(--s-2);
}
.v2-copyline .input {
  flex: 1;
  min-width: 0;
}
.v2-cal-links .btn {
  flex: 1 1 220px;
}
@media (max-width: 640px) {
  .v2-cal-row {
    flex-wrap: wrap;
  }
  .v2-cal-sources {
    display: flex;
    flex-basis: 100%;
    gap: var(--s-3);
    padding-left: calc(48px + var(--s-3));
  }
}

/* P6 · grading */
.v2-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1, 4px);
}
.v2-alert {
  margin: var(--s-3) 0 0;
  padding: var(--s-3);
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--text);
}
.v2-alert a,
.v2-cert-main a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.v2-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: var(--s-3) 0 0;
  color: var(--success);
  font-weight: var(--fw-semibold);
}
.v2-cert {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.v2-cert-grade {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(160deg, #d4163f, #8f0f2b);
  color: #fff;
  line-height: 1;
}
.v2-cert-grade small {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}
.v2-cert-grade b {
  font-size: 30px;
}
.v2-cert-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.v2-cert-main small {
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.v2-cert-pick {
  margin-top: var(--s-4);
}
.v2-cand {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.v2-cand .row-title,
.v2-cand .row-sub {
  white-space: normal;
}
.v2-cand .v2-tags {
  margin-top: 6px;
}
.v2-admin {
  margin-top: var(--s-4);
  color: var(--text-2);
}
.v2-admin summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--fs-sm);
}
.v2-calc-card {
  border-bottom: 0;
}
.v2-calc-form .v2-pair {
  margin-top: var(--s-2);
}
.v2-calc-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.v2-calc-stat {
  display: grid;
  gap: 2px;
  padding: var(--s-3);
  border-radius: 12px;
  background: var(--surface-2);
}
.v2-calc-stat small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.v2-calc-stat b {
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
}
.v2-verdict {
  margin-top: var(--s-3);
}
.v2-warn {
  margin: var(--s-3) 0 0;
  padding-left: 1.2em;
  color: var(--warning);
  font-size: var(--fs-sm);
}
.v2-verdict:not(.ok):not(.warn) {
  border-color: transparent;
  background: var(--danger-soft);
  color: var(--danger);
}

/* P8 · trades */
.v2-compose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
}
.v2-trade-item {
  min-height: 56px;
}
.v2-trade-item .row-title,
.v2-trade-item .row-sub {
  white-space: normal;
}
.v2-qty {
  width: 68px;
  height: 36px;
  padding: 0 8px;
  text-align: center;
}
.v2-cond {
  width: 74px;
  height: 36px;
  padding: 0 6px;
}
.v2-trade-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.v2-trade-sum > div {
  display: grid;
  gap: 2px;
  padding: var(--s-3);
  border-radius: 12px;
  background: var(--surface-2);
}
.v2-trade-sum small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.v2-trade-sum b {
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
}
.v2-compose-sum .v2-pair {
  margin-top: var(--s-3);
}
.v2-match .panel-head h2 a {
  color: inherit;
}
.v2-match-sides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.v2-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.v2-mini {
  width: 44px;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-2);
}
.v2-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-more {
  align-self: center;
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.v2-trade-status p {
  margin: 0;
}
.v2-note-quote {
  margin: var(--s-3) 0 0;
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  white-space: pre-wrap;
}
.v2-trade-settings {
  display: grid;
  gap: var(--s-2);
}
.v2-showcase-label {
  margin-top: var(--s-3);
}
.v2-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--s-2);
}
.v2-showcase-card {
  display: block;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.v2-showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-stars .choice span {
  color: var(--warning);
  letter-spacing: 1px;
}
@media (max-width: 640px) {
  .v2-trade-sum {
    grid-template-columns: 1fr;
  }
}

/* P10 · Japanese cards and search across languages */
.v2-jp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}
.v2-jp-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.v2-jp-card.is-owned {
  border-color: color-mix(in srgb, var(--success) 55%, var(--border));
}
.v2-jp-card:not(.is-owned) .v2-jp-art {
  opacity: 0.72;
}
.v2-jp-art {
  display: block;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.v2-jp-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-jp-blank {
  display: grid;
  place-content: center;
  gap: 4px;
  height: 100%;
  padding: 8px;
  text-align: center;
}
.v2-jp-blank b {
  color: var(--text-3);
  font-size: 22px;
}
.v2-jp-blank small {
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.v2-jp-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.v2-jp-meta b {
  overflow: hidden;
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-jp-meta small {
  color: var(--text-3);
  font-size: var(--fs-2xs);
}
.v2-jp-price {
  color: var(--text-2) !important;
  font-weight: var(--fw-semibold);
}
.v2-jp-variants {
  display: grid;
  gap: 4px;
}
.v2-jp-variant {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 4px;
}
.v2-jp-variant small {
  color: var(--text-3);
  font-size: var(--fs-2xs);
}
.v2-jp-variant b {
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.v2-names {
  height: auto;
  min-height: 28px;
  white-space: normal;
}

/* P7 · product contents and pull statistics */
.v2-pack-set + .v2-pack-set {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.v2-pack-set .bar {
  margin-top: var(--s-2);
}
.v2-mini.is-owned {
  outline: 2px solid var(--success);
  outline-offset: 1px;
}
.v2-odds {
  margin: var(--s-3) 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-sm);
}
.v2-promos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s-3);
}
.v2-promo {
  display: grid;
  gap: 4px;
}
.v2-promo small {
  color: var(--text-3);
  font-size: var(--fs-2xs);
}
.v2-promo-missing {
  align-content: center;
  min-height: 120px;
  padding: var(--s-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.v2-deck {
  margin-top: var(--s-3);
}
.v2-deck summary {
  cursor: pointer;
  font-weight: var(--fw-semibold);
}
.v2-deck ul {
  columns: 2;
  margin: var(--s-2) 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-sm);
}
.v2-odds-table .v2-tr {
  grid-template-columns: 2fr 1.4fr 1.4fr 1fr;
}
.v2-pack-row .row-end {
  gap: var(--s-2);
}
.v2-odds-table .v2-tr span small {
  display: block;
  font-size: var(--fs-2xs);
}

/* Binder planner · types for players */
.v2-binder-controls .v2-group {
  align-self: center;
}
.v2-pocket[data-type] {
  box-shadow: inset 0 -3px 0 var(--type-color, transparent);
}
.v2-pocket[data-type='Grass'],
.v2-type-label[data-type='Grass'] { --type-color: #3fa34d; }
.v2-pocket[data-type='Fire'],
.v2-type-label[data-type='Fire'] { --type-color: #e4572e; }
.v2-pocket[data-type='Water'],
.v2-type-label[data-type='Water'] { --type-color: #2d8fe0; }
.v2-pocket[data-type='Lightning'],
.v2-type-label[data-type='Lightning'] { --type-color: #e8b913; }
.v2-pocket[data-type='Psychic'],
.v2-type-label[data-type='Psychic'] { --type-color: #a855c7; }
.v2-pocket[data-type='Fighting'],
.v2-type-label[data-type='Fighting'] { --type-color: #b5652d; }
.v2-pocket[data-type='Darkness'],
.v2-type-label[data-type='Darkness'] { --type-color: #3c4a5c; }
.v2-pocket[data-type='Metal'],
.v2-type-label[data-type='Metal'] { --type-color: #8a9aa8; }
.v2-pocket[data-type='Dragon'],
.v2-type-label[data-type='Dragon'] { --type-color: #b8962e; }
.v2-pocket[data-type='Fairy'],
.v2-type-label[data-type='Fairy'] { --type-color: #e06fa8; }
.v2-pocket[data-type='Colorless'],
.v2-type-label[data-type='Colorless'] { --type-color: #b9b4a6; }
.v2-type-label {
  color: var(--type-color, var(--text));
}

/* Public collector profile (#collector, shared as /u/<handle>) · v2-profile.js */
.cp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  min-width: 0;
}
.cp > .panel + .panel {
  margin-top: 0;
}
.cp-hero.no-fan {
  grid-template-columns: minmax(0, 1fr);
}
.cp-main {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
}
.cp-id {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-width: 0;
}
.cp-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow);
  outline: 2px solid rgba(255, 255, 255, 0.12);
  outline-offset: 4px;
  color: #fff;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  text-transform: uppercase;
}
.cp-who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cp-who h1 {
  color: #fff;
  font-size: var(--fs-3xl);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.cp-eyebrow {
  color: rgba(240, 232, 255, 0.78);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.night .cp-bio {
  max-width: 56ch;
  margin: 0;
  color: rgba(240, 232, 255, 0.88);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}
.cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.cp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}
@media (min-width: 560px) {
  .cp-stats {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }
}
.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.cp-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.26);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
@media (min-width: 768px) {
  .cp-avatar {
    width: 88px;
    height: 88px;
  }
}

/* Match for the viewer */
.cp-match {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}
.cp-match b {
  font-size: var(--fs-md);
}
.cp-match p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* Top cards: a swipeable row on phones, five columns from tablet up */
.cp-podium {
  display: grid;
  grid-auto-columns: minmax(128px, 42%);
  grid-auto-flow: column;
  gap: var(--s-3);
  margin: 0 calc(var(--s-5) * -1);
  padding: 2px var(--s-5) var(--s-2);
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: var(--s-5);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cp-podium::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .cp-podium {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}
.cp-rank {
  min-width: 0;
  scroll-snap-align: start;
}
.cp-rank a {
  display: grid;
  gap: 3px;
  color: inherit;
}
.cp-art {
  position: relative;
  display: block;
  aspect-ratio: 63 / 88;
  margin-bottom: var(--s-1);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: var(--e-2);
  transition: transform var(--dur-2) var(--ease);
}
.cp-art img,
.cp-art .art-missing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-rank[data-tier='ultra'] .cp-art {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tier-ultra) 70%, transparent), var(--e-2);
}
.cp-rank[data-tier='secret'] .cp-art {
  box-shadow: 0 0 0 2px var(--tier-secret), var(--e-2);
}
.cp-rank a:hover .cp-art {
  transform: translateY(-3px);
}
.cp-rank a:hover .tile-shine {
  transform: translateX(130%);
  transition: transform 0.9s var(--ease);
}
.cp-place {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(12, 10, 22, 0.78);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  backdrop-filter: blur(6px);
}
.cp-rank[data-place='1'] .cp-place {
  background: var(--holo);
  color: #2a1458;
  box-shadow: 0 4px 14px -2px rgba(224, 169, 27, 0.6);
}
.cp-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.cp-rank small {
  overflow: hidden;
  color: var(--text-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-price {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

/* Offers and wants */
.cp-list .panel-head {
  flex-wrap: wrap;
}
.cp-list .panel-head h2 small {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.cp-flag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--success);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--success);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
@media (min-width: 1100px) {
  .cp-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  }
}

/* Collection in numbers */
@media (max-width: 419px) {
  .cp-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 768px) {
  .cp-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .cp-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cp-facts .stat {
  min-width: 0;
}
.cp-facts .stat-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-facts .stat-label {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.cp-variant {
  overflow: hidden;
  color: var(--text-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Binders in the showcase: a swipeable strip on phones */
@media (max-width: 767px) {
  .cp .v2-showcase {
    grid-auto-columns: 92px;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin: 0 calc(var(--s-5) * -1);
    padding: 0 var(--s-5) var(--s-1);
    overflow-x: auto;
    scroll-padding-inline: var(--s-5);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cp .v2-showcase-card {
    scroll-snap-align: start;
  }
}
.cp-stars {
  color: var(--warning);
  letter-spacing: 1px;
}
.cp-stars i {
  color: var(--border-strong);
  font-style: normal;
}

/* Settings panel in Profile */
.cp-settings {
  margin-bottom: var(--s-4);
}
.cp-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  padding: 10px 10px 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.cp-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-about {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
@media (min-width: 640px) {
  .cp-about {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }
  .cp-about .form-actions {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp-art,
  .cp-rank a:hover .cp-art {
    transition: none;
    transform: none;
  }
}

/* Showcase picker in Profile (Hvězdy sbírky) · v2-profile.js */
.cp-picks {
  padding: var(--s-2) 0 var(--s-3);
  border-bottom: 1px solid var(--border);
}
.cp-picks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 36px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.cp-pick-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 72px));
  gap: var(--s-2);
}
.cp-pick {
  position: relative;
  min-width: 0;
}
.cp-pick-art {
  display: block;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: var(--e-1);
}
.cp-pick-art img,
.cp-pick-art .art-missing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-pick-x,
.cp-pick-left {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--e-1);
  cursor: pointer;
}
/* 28 px buttons with a 38 px touch area */
.cp-pick-x::before,
.cp-pick-left::before {
  content: '';
  position: absolute;
  inset: -5px;
}
.cp-pick-x {
  top: -8px;
  right: -8px;
}
.cp-pick-left {
  bottom: -8px;
  left: -8px;
}
.cp-pick-x:hover,
.cp-pick-left:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.cp-pick-add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  aspect-ratio: 63 / 88;
  padding: 0;
  border: 1.5px dashed var(--border-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.cp-pick-add:hover {
  background: var(--accent-soft);
}
.cp-pick-hint {
  margin: var(--s-2) 0 var(--s-3);
}

/* ---------- Market by place (v2-trades.js offersPanel / scopeBar, v2-geo.js) ---------- */
.v2-scopes {
  display: flex;
  gap: 8px;
  margin: 0 0 var(--s-3);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v2-scopes::-webkit-scrollbar {
  display: none;
}
.v2-scope {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.v2-scope b {
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2, rgba(127, 127, 127, 0.12));
  font-size: var(--fs-xs);
}
.v2-scope.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}
.v2-scope.is-active b {
  background: rgba(255, 255, 255, 0.22);
}
.v2-scope.is-add {
  border-style: dashed;
}
.v2-offer-search {
  margin-bottom: var(--s-3);
}
.v2-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: var(--s-3);
}
.v2-offer {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.v2-offer small {
  overflow: hidden;
  color: var(--text-2);
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-offer-art {
  position: relative;
  display: block;
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2, rgba(127, 127, 127, 0.12));
  transition: transform var(--dur-2) var(--ease);
}
.v2-offer:hover .v2-offer-art {
  transform: translateY(-2px);
}
.v2-offer-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-offer-qty {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(8, 4, 20, 0.7);
  color: #fff;
  font-size: var(--fs-xs);
}
.v2-offer-more {
  place-items: center;
  aspect-ratio: 63 / 88;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-weight: var(--fw-semibold);
}
.v2-place {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
}
.v2-place [data-place-rest] {
  display: contents;
}
.v2-nearby .panel-head {
  flex-wrap: wrap;
  gap: 8px;
}
.v2-nearby .panel-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Market Hub (marketplaces, bazaars, e-shops, public lots) & Trade Protection / Escrow */
.v2-mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.v2-mkt-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
}
.v2-mkt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v2-mkt-mid {
  display: grid;
  gap: 2px;
}
.v2-mkt-num {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.v2-mkt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-mkt-matched {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.v2-mkt-matched-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.v2-mkt-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
}
.v2-mkt-hit-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.v2-mkt-hit-card b,
.v2-mkt-hit-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-mkt-hit-img {
  display: block;
  align-self: center;
  width: 36px;
  aspect-ratio: 63 / 88;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
}
.v2-mkt-hit-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-cont-pills {
  margin-top: var(--s-2);
}
.v2-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: var(--s-3);
}
.v2-shop-card {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
  color: inherit;
  text-decoration: none;
}
/* The whole card is always visible: the picture keeps the card's 63:88 shape (it is not stretched
   to the height of the text beside it) and is never cropped; the text column sizes itself to it. */
.v2-shop-card {
  align-items: flex-start;
}
.v2-shop-art {
  display: block;
  align-self: flex-start;
  width: 72px;
  aspect-ratio: 63 / 88;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-3, rgba(127, 127, 127, 0.12));
}
.v2-shop-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-shop-info {
  align-self: stretch;
  align-content: space-between;
}
.v2-shop-info {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.v2-shop-info b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-shop-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.v2-shop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-3);
}
.v2-shop-pill {
  text-decoration: none;
  color: inherit;
}
.v2-shop-pill small {
  opacity: 0.7;
}
.v2-lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: var(--s-3);
}
.v2-lot-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
  color: inherit;
  text-decoration: none;
}
.v2-lot-thumbs {
  display: flex;
  gap: 6px;
}
.v2-lot-body {
  display: grid;
  gap: 4px;
}
.v2-demo-panel {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.v2-prot-pick {
  margin-top: var(--s-3);
  display: grid;
  gap: 8px;
}
.v2-prot-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.v2-prot-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
  cursor: pointer;
}
.v2-prot-opt:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.v2-prot-opt b,
.v2-prot-opt small {
  display: block;
}
.v2-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0;
}
.v2-stepper li {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.v2-stepper li b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.1));
  font-size: 12px;
}
.v2-stepper li.is-done {
  color: var(--text-1);
}
.v2-stepper li.is-done b {
  background: var(--ok, #16a34a);
  border-color: var(--ok, #16a34a);
  color: #fff;
}
.v2-stepper li.is-active {
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}
.v2-stepper li.is-active b {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.v2-stepper.is-disputed li:nth-child(4) b {
  background: var(--danger, #dc2626);
  border-color: var(--danger, #dc2626);
  color: #fff;
}
.v2-prot-box,
.v2-prot-form {
  margin-top: var(--s-3);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.05));
}
.v2-demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: var(--s-3);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.v2-demo-bar strong,
.v2-demo-bar small {
  display: block;
}
.v2-dispute-box {
  margin-top: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.v2-dispute-box summary {
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
.v2-dispute-box form {
  margin-top: var(--s-2);
  display: grid;
  gap: var(--s-2);
}
.v2-dispute-alert {
  margin-top: var(--s-3);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--danger, #dc2626) 50%, var(--border));
}

/* Onboarding Hub & Dashboard Scanner Strip (shown on desktop where mobile .quick hides) */
.dash-tools {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-4);
}
@media (min-width: 1100px) {
  .dash-tools {
    display: grid;
  }
}
.dash-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.dash-tool:hover {
  transform: translateY(-2px);
  box-shadow: var(--e-2);
}
.dash-tool b,
.dash-tool small {
  display: block;
}
.dash-tool small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.dash-tool-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.dash-tool-ic.is-grad {
  background: var(--grad);
  color: #fff;
}
.v2-onboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.v2-onboard-card {
  display: grid;
  align-content: start;
  gap: var(--s-2);
}
.v2-onboard-tile {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(127, 127, 127, 0.06));
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.v2-onboard-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.v2-onboard-tile b {
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2-onboard-tile small {
  color: var(--text-2);
  line-height: 1.45;
}
.lot-portfolio-box {
  display: grid;
  gap: var(--s-2);
}

/* Sortable Market Filter Bar & Live NEAR Testnet Escrow Card */
/* Market search: one field and, on Obchody, a filter icon that opens the filter sheet (#dialog).
   Active filters show as removable chips below. */
.v2-mkt-filterbar {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--s-3);
}
.v2-mkt-filterbar .searchbox {
  flex: 1;
  min-width: 0;
}
.v2-mkt-filter-btn {
  position: relative;
  flex: none;
}
.v2-mkt-filter-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
}
.v2-mkt-sheet-form {
  display: grid;
  gap: 12px;
}
.v2-mkt-sheet-form .field {
  display: grid;
  gap: 4px;
}
.v2-mkt-sheet-form .v2-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.v2-mkt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: calc(-1 * var(--s-1)) 0 var(--s-3);
}
.v2-mkt-chip {
  gap: 4px;
  text-decoration: none;
}
.page-head:has(.v2-mkt-place) .page-head-row {
  flex-wrap: nowrap;
  align-items: center;
}
.page-head:has(.v2-mkt-place) .page-title {
  flex-basis: auto;
}
.page-head:has(.v2-mkt-place) .page-actions {
  flex-wrap: nowrap;
}
.v2-mkt-place span {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-shop-title {
  color: inherit;
  text-decoration: none;
}
.v2-shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.v2-near-card {
  display: grid;
  gap: 10px;
  margin-bottom: var(--s-3);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, #10b981 35%, var(--border));
  background: color-mix(in srgb, #10b981 6%, transparent);
}
.v2-near-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.v2-near-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn, #f59e0b);
}
.v2-near-dot.is-on {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}
.v2-near-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.v2-near-flow span {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--surface, rgba(127, 127, 127, 0.12));
  border: 1px solid var(--border);
}
.v2-near-wallet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.v2-near-wallet .input {
  flex: 1 1 200px;
}
.v2-near-res {
  margin: 0;
}
