/* Sealed market: /market, /s/:id, /u/:handle and the seller dashboard. Built on site.css and app.css. */

.mk-body { background: var(--white); }

/* header: logo, search, actions, then the category row */
.mbar { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.mbar__in { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; height: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.msearch { position: relative; display: flex; align-items: center; max-width: 640px; width: 100%; height: 48px; padding: 4px 4px 4px 44px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, background-color 200ms ease; }
.msearch:focus-within { background: var(--white); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgb(42 38 232 / 0.1); }
.msearch > .ico { position: absolute; left: 16px; font-size: 19px; color: var(--mute); }
.msearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }
.msearch input::placeholder { color: #7A7F9C; }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch .btn { height: 40px; }
.mbar__end { display: flex; align-items: center; gap: 10px; }
.mbar__link { padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--mute); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .mbar__link:hover { color: var(--ink); } }
.cats { border-top: 1px solid var(--line); }
.cats__in { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats__in::-webkit-scrollbar { display: none; }
.cats a { position: relative; flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 12px; font-size: 14.5px; font-weight: 550; color: var(--mute); text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.cats a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); transform: scaleX(0); transition: transform 240ms var(--ease-out); }
.cats a[aria-current="true"] { color: var(--ink); }
.cats a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .cats a:hover { color: var(--ink); } }

.av { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.av--txt { display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.xcheck { width: 16px; height: 16px; flex: none; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--mute); }
.stars .ico { color: var(--ink); font-size: 15px; }
.stars b { color: var(--ink); font-weight: 750; }
.stars--new { font-weight: 600; color: var(--blue); }

.wrapx { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* market home */
.mk { padding: 28px 0 96px; }
.mk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; min-height: 300px; border-radius: 32px; background: var(--blue); color: #fff; overflow: hidden; isolation: isolate; }
.mk-hero__copy { padding: clamp(28px, 4vw, 52px); }
.mk-hero h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
.mk-hero p { margin-top: 14px; max-width: 44ch; font-size: 17.5px; color: var(--blue-100); }
.mk-hero__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mk-hero__stats span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / 0.14); font-size: 14.5px; font-weight: 600; }
.mk-hero__stats b { font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-hero__art { position: relative; height: 100%; min-height: 300px; }
.mk-hero__art img { position: absolute; }
.mk-hero__art .h1 { left: -6%; top: 6%; width: 64%; }
.mk-hero__art .h2 { right: -4%; bottom: 0; width: 70%; }
.mk-hero__art .coin { left: 46%; top: 30%; width: 64px; }
.mk-hero__rings { position: absolute; right: 22%; top: 50%; width: 0; height: 0; z-index: -1; }
.mk-hero__rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.12); transform: translate(-50%, -50%); }
.mk-hero__rings i:nth-child(1) { width: 240px; height: 240px; }
.mk-hero__rings i:nth-child(2) { width: 400px; height: 400px; border-color: rgb(255 255 255 / 0.08); }

.mk-h2 { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 56px 0 20px; }
.mk-h2 h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 850; letter-spacing: -0.025em; line-height: 1.05; }
.mk-h2 a { font-size: 15px; font-weight: 650; color: var(--blue); text-decoration: none; }

.ctiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.ctile { position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 172px; padding: 16px; border-radius: 22px; background: var(--tint, var(--paper)); text-decoration: none; overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.ctile img { justify-self: end; width: 74px; height: 74px; object-fit: contain; transition: transform 360ms var(--ease-out); }
.ctile b { font-size: 15.5px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }
.ctile span { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
.ctile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .ctile:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
  .ctile:hover img { transform: rotate(-8deg) scale(1.08); }
}

.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 22px 18px; }
.scard { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; text-decoration: none; color: inherit; }
.scard__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--paper); }
.scard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.scard__art { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tint); }
.scard__art img { width: 46%; height: 70%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.scard__body { display: grid; align-content: start; gap: 8px; padding: 12px 4px 0; }
.scard__who { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; }
.scard__who .av { width: 26px; height: 26px; }
.scard__who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.scard__handle { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__title { font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.scard__win { white-space: nowrap; }
.scard__win { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--mute); }
.scard__price { font-size: 14px; font-weight: 650; color: var(--mute); white-space: nowrap; }
.scard__price b { font-size: 18px; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .scard:hover .scard__img { transform: scale(1.04); }
  .scard:hover .scard__art img { transform: rotate(-6deg) scale(1.08); }
  .scard:hover .scard__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
}
.skel-card { display: grid; gap: 10px; }
.skel-card i { display: block; border-radius: 18px; background: linear-gradient(90deg, var(--paper) 0%, #ECEEF5 50%, var(--paper) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.skel-card i:first-child { aspect-ratio: 16 / 10; }
.skel-card i:nth-child(2) { height: 16px; width: 70%; border-radius: 8px; }
.skel-card i:nth-child(3) { height: 16px; width: 40%; border-radius: 8px; }

.mk-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.mk-trust div { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 22px; background: var(--paper); }
.mk-trust img { width: 52px; height: 52px; object-fit: contain; }
.mk-trust b { display: block; font-size: 16px; font-weight: 750; }
.mk-trust span span { display: block; font-size: 14px; color: var(--mute); }

/* results */
.mk-head { display: grid; gap: 6px; margin: 8px 0 18px; }
.mk-head h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.mk-head p { color: var(--mute); }
.mk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.mk-tools select, .mk-chip { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mk-tools select { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230B1236' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
.mk-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.mk-tools__gap { flex: 1; }
.mk-count { font-size: 14.5px; color: var(--mute); }

/* service page */
.sv { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; padding: 24px 0 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.sv h1 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.08; }
.sv__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: 15px; }
.sv__who .av { width: 44px; height: 44px; }
.sv__who a { color: inherit; text-decoration: none; }
.sv__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; }
.sv__handle { color: var(--mute); }
.gallery { margin-top: 22px; }
.gallery__main { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: var(--paper); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .scard__art img { width: 40%; height: 64%; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery__thumbs button { width: 92px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.7; transition: opacity 150ms ease, box-shadow 150ms ease; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sv h2 { margin: 40px 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sv__text { white-space: pre-line; color: #2E3456; max-width: 70ch; overflow-wrap: anywhere; }
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how3 li { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--paper); font-size: 14.5px; color: var(--mute); }
.how3 b { color: var(--ink); font-size: 15.5px; }
.how3 img { width: 40px; height: 40px; object-fit: contain; }
.order { position: sticky; top: 140px; display: grid; gap: 14px; padding: 24px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.order__price { display: flex; align-items: baseline; gap: 8px; }
.order__price b { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.order__price span { font-size: 16px; font-weight: 700; color: var(--mute); }
.order__rows { display: grid; gap: 8px; font-size: 15px; color: var(--mute); }
.order__rows li { display: flex; align-items: center; gap: 10px; }
.order__rows .ico { font-size: 18px; color: var(--blue); }
.order .btn { width: 100%; height: 56px; font-size: 16.5px; }
.order__note { font-size: 13.5px; color: var(--mute); text-align: center; }
.btn--x { background: var(--ink); color: #fff; }
.btn--x .ico { font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .btn--x:hover { background: #1E2656; } }
.seller { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--paper); }
.seller__top { display: flex; align-items: center; gap: 14px; }
.seller__top .av { width: 64px; height: 64px; }
.seller__top b { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.seller__top span { color: var(--mute); }
.seller__bio { color: #2E3456; }
.seller__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.reviews { display: grid; gap: 12px; }
.review { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.review__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mute); }
.review__stars { color: var(--ink); letter-spacing: 2px; }
.empty-line { padding: 18px; border-radius: 18px; background: var(--paper); color: var(--mute); }

/* profile page */
.pf { padding: 28px 0 96px; }
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 30px; background: var(--paper); }
.pf-head .av { width: 104px; height: 104px; font-size: 36px; box-shadow: 0 0 0 4px var(--white); }
.pf-head h1 { display: flex; align-items: center; gap: 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.pf-head h1 .xcheck { width: 22px; height: 22px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--mute); }
.pf-meta a { color: var(--blue); text-decoration: none; font-weight: 600; }
.pf-bio { margin-top: 10px; max-width: 60ch; color: #2E3456; }
.pf-stats { display: flex; gap: 10px; margin-top: 14px; }
.pf-stats span { padding: 7px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; }

/* dashboard */
.dash-tabs { width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 18px; }
.dash-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 650; color: var(--mute); }
.dash-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .dash-tabs button[aria-selected="false"]:hover { color: var(--ink); background: var(--paper); } }
.dash { width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; padding: 24px 0 96px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.step3 { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 18px; border-radius: 20px; background: var(--paper); }
.step3 .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 800; font-size: 14px; }
.step3.is-done .n { background: var(--lime); box-shadow: none; }
.step3.is-now { background: var(--blue-50); }
.step3.is-now .n { background: var(--blue); color: #fff; box-shadow: none; }
.step3 b { display: block; font-size: 16px; }
.step3 span span { display: block; font-size: 14px; color: var(--mute); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.editor__form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.editor__form textarea { width: 100%; min-height: 150px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.editor__form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 8px; }
.catpick button { display: grid; justify-items: start; gap: 6px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: 13.5px; font-weight: 650; color: var(--ink); transition: box-shadow 150ms ease, background-color 150ms ease; }
.catpick img { width: 34px; height: 34px; object-fit: contain; }
.catpick button[aria-checked="true"] { background: var(--blue-50); box-shadow: inset 0 0 0 2px var(--blue); }
.drop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.drop__slot { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.drop__slot img { width: 100%; height: 100%; object-fit: cover; }
.drop__slot button { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(11 18 54 / 0.7); color: #fff; font-size: 14px; }
.drop__add { display: grid; place-items: center; gap: 4px; aspect-ratio: 16 / 10; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--white); color: var(--mute); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.drop__add .ico { font-size: 20px; }
.drop__add.is-over, .drop__add:hover { border-color: var(--blue); color: var(--blue); }
.editor__aside { position: sticky; top: 150px; display: grid; gap: 12px; }
.xbox { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.xbox__post { padding: 16px 18px; border-radius: 16px; background: var(--paper); font-size: 15.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.xbox__post b { color: var(--blue); }
.xbox__me { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--lime-50); }
.xbox__me .av { width: 52px; height: 52px; }
.xbox__me b { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.mrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.mrow__pic { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--paper); }
.mrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.mrow__pic .scard__art img { width: 50%; height: 70%; }

/* modal (review) */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgb(11 18 54 / 0.5); }
.modal__box { width: min(460px, 100%); display: grid; gap: 14px; padding: 26px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-pop); }
.starpick { display: flex; gap: 6px; }
.starpick button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); color: #C9CCDB; font-size: 22px; display: grid; place-items: center; }
.starpick button[aria-checked="true"], .starpick button.is-lit { color: var(--sun); }

@media (max-width: 1180px) {
  .ctiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mbar__in { grid-template-columns: auto 1fr; height: auto; padding: 10px 0; row-gap: 10px; }
  .msearch { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .mbar__end { justify-self: end; }
  .mbar__link { display: none; }
  .mk-hero { grid-template-columns: 1fr; }
  .mk-hero__art { min-height: 220px; }
  .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-trust { grid-template-columns: 1fr; }
  .sv { grid-template-columns: 1fr; }
  .order { position: static; }
  .pf-head { grid-template-columns: auto 1fr; }
  .pf-head > :last-child { grid-column: 1 / -1; }
  .editor { grid-template-columns: 1fr; }
  .editor__aside { position: static; }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mbar .btn--line:not(.wallet) { display: none; }
  .mbar .wallet span:not(.wallet__dot) { display: none; }
  .mbar .wallet { min-width: 40px; padding: 0 10px; justify-content: center; }
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctile { min-height: 140px; }
  .ctile img { width: 58px; height: 58px; }
  .sgrid { grid-template-columns: 1fr; }
  .how3 { grid-template-columns: 1fr; }
  .drop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrow { grid-template-columns: 72px minmax(0, 1fr); }
  .dealhead .chip { justify-self: start; }
  .mrow > :nth-child(n+3) { grid-column: 1 / -1; }
  .pf-head .av { width: 76px; height: 76px; }
}

.wallet .av { width: 24px; height: 24px; }
.wallet span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }

.ctile__n { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--white); font-size: 12.5px; font-style: normal; font-weight: 700; color: var(--ink); }
.cats__in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.order .seller__btns .btn { width: auto; height: 40px; flex: 1; font-size: 14.5px; }
.gallery__main .scard__art img { width: 32%; height: 52%; object-fit: contain; }
.xbox__post b { white-space: nowrap; }
/* ===================== v5: customization, instant delivery, chat ===================== */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.is-locked { overflow: hidden; }
.mbar__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); font-size: 20px; text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .mbar__icon:hover { background: var(--paper); } }
.mbar__dot, .tabs__dot { position: absolute; right: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--white); }
.dash-tabs__link { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-left: auto; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 650; color: var(--mute); text-decoration: none; }
.dash-tabs__link .tabs__dot { position: static; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .dash-tabs__link:hover { background: var(--paper); color: var(--ink); } }
.chip--live { background: var(--lime-50); color: #3E5200; }
.chip--paused { background: var(--paper); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.chip--flash { background: var(--sun-50); color: #7A4F00; }
.chip .ico { font-size: 14px; }
.mrow.is-paused .mrow__pic { opacity: 0.55; }
.mrow .row__title { text-decoration: none; color: inherit; }
.row__amt i, .scard__price i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); }
.mrow .row__acts { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.scard__badge, .scard__flash { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--white); font-size: 12.5px; font-style: normal; font-weight: 750; color: var(--ink); box-shadow: 0 4px 14px -6px rgb(11 18 54 / 0.35); }
.scard__flash { left: auto; right: 10px; background: var(--sun); color: var(--ink); }
.scard__flash .ico { font-size: 14px; }
.scard__flash.is-out { background: var(--white); color: var(--mute); }
.scard:not(a) { cursor: default; }

/* ---------- the editor ---------- */
.ed-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ed-jump { position: sticky; top: 118px; z-index: 5; display: flex; gap: 4px; margin: 18px 0 16px; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.ed-jump::-webkit-scrollbar { display: none; }
.ed-jump a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--mute); text-decoration: none; }
.ed-jump a[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .ed-jump a:hover { background: var(--paper); color: var(--ink); } }
.editor__form { gap: 0; padding: 0; overflow: hidden; }
.ed-sec { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); scroll-margin-top: 190px; }
.ed-sec[hidden] { display: none; }
.ed-sec__h { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.ed-sec__h > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.ed-sec__h em, .field__label em { margin-left: auto; font-size: 13px; font-style: normal; font-weight: 600; color: var(--soft); }
.field__label { display: flex; align-items: baseline; gap: 8px; }
.field__label .count, .field__hint .count { margin-left: auto; font-style: normal; color: var(--soft); }
.field__hint { display: flex; gap: 8px; }
.editor__form .err, .ed-go { margin: 0 clamp(22px, 3vw, 32px); }
.editor__form .err { margin-top: 18px; }
.ed-go { padding: 18px 0 clamp(22px, 3vw, 32px); }
.editor__form select, .shop select { height: 54px; width: 100%; padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230B1236' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; appearance: none; font: inherit; font-size: 16px; font-weight: 550; color: var(--ink); }
.editor__form select:focus, .shop select:focus, .editor__form textarea:focus, .shop textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.editor__form textarea, .shop textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); resize: vertical; }
.editor__form input[aria-invalid="true"], .editor__form textarea[aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 4px rgb(227 21 90 / 0.12); }
.chipsin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); cursor: text; }
.chipsin:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.chipsin input { flex: 1; min-width: 140px; height: 36px !important; padding: 0 6px !important; border: 0 !important; box-shadow: none !important; font-size: 16px !important; }
.chipsin input[hidden] { display: none; }
.chipx { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 14.5px; font-weight: 650; }
.chipx button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .chipx button:hover { background: rgb(42 38 232 / 0.12); } }
.dpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dpick button { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 16px; border: 0; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); text-align: left; transition: box-shadow 160ms ease, background-color 160ms ease; }
.dpick button .ico { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.dpick b { font-size: 16px; font-weight: 750; }
.dpick span { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.dpick button[aria-checked="true"] { background: var(--blue-50); box-shadow: inset 0 0 0 2px var(--blue); }
.dpick button[aria-checked="true"] .ico { background: var(--blue); color: #fff; }
.dpick button[data-v="instant"][aria-checked="true"] .ico { background: var(--sun); color: var(--ink); }
.pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk--one { grid-template-columns: 1fr; }
.pk__card { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 18px; background: var(--paper); }
.pk__card--one { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.pk__card--one .pk__note { grid-column: 1 / -1; }
.pk__name { height: 44px !important; padding: 0 12px !important; border-radius: 12px !important; font-size: 17px !important; font-weight: 800 !important; letter-spacing: -0.01em; }
.pk__card textarea { min-height: 64px; font-size: 14.5px; }
.pk__card .field input, .pk__card select { height: 48px; }
.pk__note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.pk__note .ico { flex: none; margin-top: 2px; color: #B07A00; }
.money { position: relative; display: block; }
.money input { padding-right: 64px !important; }
.money > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 700; color: var(--mute); pointer-events: none; }
.feat { display: grid; gap: 8px; }
.feat__row, .feat__head { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.feat--3 .feat__row, .feat--3 .feat__head { grid-template-columns: minmax(0, 1fr) repeat(3, 64px) 40px; }
.feat__head span { font-size: 12.5px; font-weight: 700; color: var(--mute); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat__row input[type="text"], .xrow input[type="text"], .qrow input, .rrow input { height: 48px; }
.tick { position: relative; display: grid; place-items: center; height: 48px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; }
.tick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tick .ico { font-size: 18px; color: transparent; transition: color 140ms ease; }
.tick:has(input:checked) { background: var(--ink); box-shadow: none; }
.tick:has(input:checked) .ico { color: #fff; }
.tick:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.rows { display: grid; gap: 8px; }
.rows:empty { display: none; }
.xrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.xrow select { height: 48px; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; padding: 12px; border-radius: 16px; background: var(--paper); }
.qrow textarea { grid-column: 1; min-height: 70px; font-size: 15px; }
.qrow .iconbtn { grid-column: 2; grid-row: 1; background: var(--white); }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; }
.addrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: transparent; font-size: 14.5px; font-weight: 650; color: var(--ink); transition: border-color 150ms ease, color 150ms ease; }
.addrow[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .addrow:hover { border-color: var(--blue); color: var(--blue); } }
.stock { padding: 16px; border-radius: 18px; background: var(--sun-50); }
.stock[hidden] { display: none; }
.stock .seg { justify-self: start; }
.stock__pane { display: grid; gap: 8px; }
.stock__pane[hidden] { display: none; }
.stock textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check[hidden] { display: none; }
.rte { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); overflow: hidden; }
.rte:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.rte__bar { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
.rte__bar > button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 17px; }
.rte__bar > button:disabled { opacity: 0.35; }
@media (hover: hover) and (pointer: fine) { .rte__bar > button:not(:disabled):hover { background: var(--white); } }
.rte__gap { flex: 1; }
.rte__tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.rte__tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 13.5px; font-weight: 650; color: var(--mute); }
.rte__tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rte textarea { display: block; min-height: 220px; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.rte textarea[hidden] { display: none; }
.rte__pv { min-height: 220px; padding: 14px 16px; }
.rte__pv[hidden] { display: none; }
.rich { color: #2E3456; overflow-wrap: anywhere; }
.rich > * + * { margin-top: 10px; }
.rich h3 { margin-top: 18px; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.rich h3:first-child { margin-top: 0; }
.rich ul, .rich ol { display: grid; gap: 6px; padding-left: 22px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li::marker { color: var(--soft); }
.rich strong { font-weight: 750; color: var(--ink); }
.rich__empty { color: var(--soft); }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gal__slot { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; transition: transform 160ms var(--ease-out), opacity 160ms ease, box-shadow 160ms ease; }
.gal__slot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.gal__slot.is-drag { opacity: 0.4; }
.gal__slot.is-target { box-shadow: 0 0 0 3px var(--blue); transform: scale(1.02); }
.gal__cover { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-style: normal; font-weight: 750; }
.gal__tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.gal__slot:hover .gal__tools, .gal__slot:focus-within .gal__tools { opacity: 1; transform: none; }
.gal__tools button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgb(11 18 54 / 0.78); color: #fff; font-size: 15px; backdrop-filter: blur(6px); }
.gal__tools button:disabled { opacity: 0.35; }
.gal__tools button:first-child { margin-right: auto; }
.gal__add { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 16 / 10; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--white); color: var(--mute); font-size: 13px; text-align: center; cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease; }
.gal__add .ico { font-size: 22px; }
.gal__add b { font-size: 14px; color: var(--ink); }
.gal__add.is-over, .gal__add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.ed-aside-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-aside-btns [hidden] { display: none; }
@media (hover: none) { .gal__tools { opacity: 1; transform: none; } }

/* ---------- framing an image ---------- */
.crop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgb(11 18 54 / 0.62); animation: cropFade 200ms ease; }
@keyframes cropFade { from { opacity: 0; } }
.crop__box { width: min(760px, 100%); max-height: calc(100dvh - 32px); display: grid; gap: 14px; padding: 20px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-pop); overflow: auto; animation: cropPop 260ms var(--ease-out); }
@keyframes cropPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.crop__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crop__top h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.crop__stage { display: grid; place-items: center; padding: 14px; border-radius: 18px; background: #E6E8F1 repeating-conic-gradient(#EEF0F6 0 25%, #E3E6EF 0 50%) 0 0 / 22px 22px; }
.crop__frame { position: relative; width: 100%; max-height: 56dvh; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px var(--white), 0 10px 30px -10px rgb(11 18 54 / 0.4); cursor: grab; touch-action: none; outline: none; }
.crop__frame:focus-visible { box-shadow: 0 0 0 3px var(--blue); }
.crop__frame.is-dragging { cursor: grabbing; }
.crop__frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; pointer-events: none; }
.crop__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.6) calc(33.33% - 0.5px), rgb(255 255 255 / 0.6) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgb(255 255 255 / 0.6) calc(66.66% - 0.5px), rgb(255 255 255 / 0.6) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)), linear-gradient(180deg, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.6) calc(33.33% - 0.5px), rgb(255 255 255 / 0.6) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgb(255 255 255 / 0.6) calc(66.66% - 0.5px), rgb(255 255 255 / 0.6) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); opacity: 0; transition: opacity 200ms ease; }
.crop__frame.is-dragging .crop__grid { opacity: 1; }
.crop__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.crop__zoom { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; color: var(--mute); }
.crop__zoom input { flex: 1; accent-color: var(--ink); }
.seg--sm button { height: 36px; padding: 0 12px; font-size: 14px; }
.crop__hint { font-size: 13.5px; color: var(--mute); }
.crop__go { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- my shop (dashboard) ---------- */
.shopwrap { margin-top: 20px; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.shop__form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.shop .field__row { grid-template-columns: 1fr 1fr; align-items: start; }
.shop__aside { position: sticky; top: 140px; display: grid; gap: 12px; }
.shop__x { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: var(--paper); }
.shop__x > div { flex: 1; min-width: 180px; }
.shop__x b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.shop__x span { font-size: 14px; color: var(--mute); }
.bannered { position: relative; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; background: var(--th, var(--blue)); }
.bannered img { width: 100%; height: 100%; object-fit: cover; }
.photoed { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photoed .av { width: 64px; height: 64px; font-size: 24px; }
.maker__go label.btn { cursor: pointer; }
.maker__go [hidden] { display: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(11 18 54 / 0.12); transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.swatches button:active { transform: scale(0.92); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs button { height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 600; color: var(--mute); transition: background-color 150ms ease, color 150ms ease; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.linksed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.linkin { position: relative; display: block; }
.linkin > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--mute); pointer-events: none; }
.linkin input { height: 50px; width: 100%; padding: 0 14px 0 42px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15px; color: var(--ink); }
.linkin input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; font-size: 15px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); transition: background-color 200ms ease; }
.switch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(11 18 54 / 0.25); transition: transform 220ms var(--ease-out); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--blue); outline-offset: 2px; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shopcard { border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.shopcard__ban { aspect-ratio: 3 / 1; background: var(--th, var(--blue)); }
.shopcard__ban img { width: 100%; height: 100%; object-fit: cover; }
.shopcard__body { display: grid; justify-items: start; gap: 6px; padding: 0 18px 18px; }
.shopcard__body .av { width: 72px; height: 72px; margin-top: -36px; font-size: 26px; box-shadow: 0 0 0 4px var(--white); }
.shopcard__body b { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.shopcard__h { font-size: 14px; color: var(--mute); }
.shopcard__skills { display: flex; flex-wrap: wrap; gap: 4px; }
.shopcard__skills i { padding: 3px 9px; border-radius: 999px; background: var(--paper); font-size: 12.5px; font-style: normal; font-weight: 600; }
.shopcard__links { display: flex; gap: 8px; color: var(--mute); font-size: 17px; }

/* the X link: type your @, post once, found on its own */
.xlink { gap: 18px; }
.xlink[hidden] { display: none; }
.xstep { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.xstep .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.xstep__body { display: grid; gap: 10px; min-width: 0; }
.xstep__h { font-size: 16px; font-weight: 750; padding-top: 4px; }
.xhandle { position: relative; display: block; max-width: 420px; }
.xhandle > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; font-weight: 700; color: var(--mute); }
.xhandle input { width: 100%; height: 54px; padding: 0 16px 0 36px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); }
.xhandle input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.14); }
.xcard:empty { display: none; }
.xcard__me { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 12px 14px; border-radius: 16px; background: var(--lime-50); }
.xcard__me > div { flex: 1; min-width: 0; }
.xcard__me b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.xcard__me span { display: block; font-size: 13.5px; color: var(--mute); }
.xcard__me > .ico { font-size: 22px; color: #3E5200; }
.xcard__none { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.xcard__none .spin, .xstatus .spin { border-color: rgb(11 18 54 / 0.15); border-top-color: var(--ink); }
.xstatus { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--blue-50); font-size: 15px; font-weight: 600; color: var(--ink); }
.xstatus[hidden] { display: none; }
.xstatus--ok { background: var(--lime-50); }
.xstatus--bad { background: var(--pink-50); color: #8A0E37; }
.xalt { border-top: 1px solid var(--line); padding-top: 14px; }
.xalt summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--mute); }
.xalt__in { display: flex; gap: 8px; margin-top: 10px; }
.xalt__in input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; }
.xalt__in .btn { height: 48px; }

/* ---------- service page ---------- */
.sv__main { min-width: 0; }
.sv__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sv__tags a { padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--mute); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sv__tags a:hover { color: var(--ink); background: var(--blue-50); } }
.gal2 { position: relative; border-radius: 26px; overflow: hidden; background: var(--paper); }
.gal2__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; outline: none; }
.gal2__track::-webkit-scrollbar { display: none; }
.gal2__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gal2__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); font-size: 18px; box-shadow: 0 6px 18px -8px rgb(11 18 54 / 0.45); transform: translateY(-50%); transition: transform 140ms var(--ease-out), opacity 160ms ease; }
.gal2__nav:active { transform: translateY(-50%) scale(0.94); }
.gal2__nav--prev { left: 14px; }
.gal2__nav--next { right: 14px; }
.gal2__n { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgb(11 18 54 / 0.72); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .gal2 .gal2__nav { opacity: 0; } .gal2:hover .gal2__nav, .gal2__nav:focus-visible { opacity: 1; } }
.gallery__thumbs { overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { flex: none; }
.incl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.incl li { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.incl .ico { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--acc, var(--blue)); color: var(--on-acc, #fff); }
.cmp { display: grid; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cmp__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); align-items: center; border-top: 1px solid var(--line); }
.cmp__row:first-child { border-top: 0; }
.cmp__row > span { padding: 12px 14px; font-size: 14.5px; text-align: center; }
.cmp__row > span:first-child { text-align: left; font-weight: 600; color: var(--mute); }
.cmp__row--head { background: var(--paper); }
.cmp__row--head b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.cmp__row--head i { display: block; font-size: 13.5px; font-style: normal; font-weight: 650; color: var(--mute); font-variant-numeric: tabular-nums; }
.cmp .yes .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--acc, var(--blue)); color: var(--on-acc, #fff); }
.cmp .no { color: var(--soft); }
.reqs { display: grid; gap: 8px; counter-reset: rq; }
.reqs li { counter-increment: rq; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-weight: 550; }
.reqs li::before { content: counter(rq); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.sv__fine { margin-top: 8px; font-size: 14px; color: var(--mute); }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; transition: transform 220ms var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: #2E3456; white-space: pre-line; }
.seller--shop { gap: 12px; padding: 0 0 22px; overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.seller--shop > *:not(.seller__ban) { margin-inline: 22px; }
.seller__ban { height: 84px; background: var(--acc, var(--blue)); }
.seller__ban img { width: 100%; height: 100%; object-fit: cover; }
.seller--shop .seller__top { margin-top: -30px; align-items: flex-end; }
.seller--shop .seller__top .av { box-shadow: 0 0 0 4px var(--white); }
.seller--shop .seller__top span { font-size: 14.5px; }
.seller__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--mute); }
.seller__meta span { display: inline-flex; align-items: center; gap: 6px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills > * { padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.plinks { display: flex; flex-wrap: wrap; gap: 6px; }
.plinks a, .plinks button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--paper); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.plinks i { font-style: normal; font-size: 12.5px; color: var(--soft); }
.plinks--col { display: grid; }
.plinks--col a, .plinks--col button { justify-content: flex-start; }
.plinks--col button i { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .plinks a:hover, .plinks button:hover, .skills a:hover { background: var(--blue-50); color: var(--blue); } }
.ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -24px -24px 4px; border-bottom: 1px solid var(--line); }
.ptabs button { position: relative; height: 52px; border: 0; background: transparent; font-size: 15px; font-weight: 700; color: var(--mute); }
.ptabs button::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc, var(--blue)); transform: scaleX(0); transition: transform 240ms var(--ease-out); }
.ptabs button[aria-selected="true"] { color: var(--ink); }
.ptabs button[aria-selected="true"]::after { transform: scaleX(1); }
.ptabs button:first-child { border-top-left-radius: 26px; }
.ptabs button:last-child { border-top-right-radius: 26px; }
.order__pk { display: grid; gap: 10px; }
.order__name { font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.order__price i { font-style: normal; font-size: 15px; font-weight: 650; color: var(--mute); margin-right: 6px; }
.order__desc { color: #2E3456; }
.order__rows li.is-feat .ico { color: var(--acc, var(--blue)); }
.xtra { display: grid; gap: 6px; padding: 12px; border: 0; border-radius: 18px; background: var(--paper); }
.xtra legend { float: left; width: 100%; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: var(--mute); }
.xtra__row { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--white); cursor: pointer; transition: box-shadow 150ms ease; }
.xtra__row input { position: absolute; opacity: 0; }
.xtra__box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; font-size: 14px; transition: background-color 150ms ease, color 150ms ease; }
.xtra__row:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.xtra__row:has(input:checked) .xtra__box { background: var(--ink); color: #fff; box-shadow: none; }
.xtra__row:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.xtra__t { font-size: 14.5px; font-weight: 600; }
.xtra__t i { display: block; font-size: 12.5px; font-style: normal; color: var(--mute); }
.xtra__row b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: var(--paper); font-weight: 650; }
.qty__ctl { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.qty__ctl button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.qty__ctl output { min-width: 32px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty__stock { width: 100%; font-size: 13.5px; font-weight: 550; color: var(--mute); }
.order__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 650; color: var(--mute); }
.order__total b { font-size: 20px; font-weight: 850; color: var(--ink); font-variant-numeric: tabular-nums; }
.order .btn--line { height: 50px; font-size: 15.5px; }
.order__share .btn { height: 40px; }

/* ---------- shop page ---------- */
.shophead { border-radius: 30px; overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.shophead__ban { aspect-ratio: 5 / 1; min-height: 120px; background: var(--acc, var(--blue)); }
.shophead__ban img { width: 100%; height: 100%; object-fit: cover; }
.shophead__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 22px; padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); }
.shophead__in > .av { width: 120px; height: 120px; margin-top: -50px; font-size: 40px; box-shadow: 0 0 0 5px var(--white); }
.shophead__id h1 { display: flex; align-items: center; gap: 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.shophead__id h1 .xcheck { width: 24px; height: 24px; }
.shophead__h { margin-top: 6px; font-size: 17px; color: #2E3456; }
.shophead__id .pf-meta span { display: inline-flex; align-items: center; gap: 6px; }
.shophead__btns { display: flex; align-items: center; gap: 8px; }
.shophead__away { display: flex; align-items: center; gap: 10px; margin: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); padding: 12px 16px; border-radius: 14px; background: var(--paper); color: var(--mute); }
.shophead__away b { color: var(--ink); }
.shopbody { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.shopside { position: sticky; top: 140px; display: grid; gap: 12px; }
.shopstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.shopstats span { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--paper); font-size: 13px; color: var(--mute); }
.shopstats b { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 850; color: var(--ink); }
.shopcardx { display: grid; gap: 10px; padding: 18px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.shopcardx h2 { font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.shopmain .mk-h2 h2 { display: flex; align-items: center; gap: 8px; }
.sgrid--pin { grid-template-columns: minmax(0, 1fr); max-width: 420px; }

/* ---------- messages ---------- */
.mk-body--msg .cats { display: none; }
.msg { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 72px - 48px); min-height: 520px; margin: 24px 0; border-radius: 26px; overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.msg[aria-busy="true"] { display: block; padding: 24px; }
.msg__gate { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 40px 24px; text-align: center; }
.msg__gate img { width: 120px; height: 120px; object-fit: contain; }
.msg__gate h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; letter-spacing: -0.03em; }
.msg__gate p { max-width: 48ch; color: var(--mute); }
.msg__gate .btn { margin-top: 8px; }
.msg__fine { font-size: 13.5px; }
.msg__list { display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); min-height: 0; }
.msg__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 20px 14px; }
.msg__head h1 { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; }
.msg__lock { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--lime-50); font-size: 12.5px; font-weight: 700; color: #3E5200; }
.msg__items { overflow-y: auto; padding: 0 8px 12px; }
.msg__empty { display: flex; align-items: center; gap: 8px; padding: 16px 12px; font-size: 14.5px; color: var(--mute); }
.msg__empty .spin { border-color: rgb(11 18 54 / 0.15); border-top-color: var(--ink); }
.mconv { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: transparent; text-align: left; transition: background-color 150ms ease; }
.mconv .av { width: 44px; height: 44px; }
.mconv__t { min-width: 0; }
.mconv__t b { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mconv__t > span { display: block; font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mconv__at { display: grid; justify-items: end; gap: 6px; font-size: 12.5px; color: var(--soft); }
.mconv__at i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.mconv.is-unread .mconv__t > span { color: var(--ink); font-weight: 650; }
.mconv.is-on { background: var(--blue-50); }
@media (hover: hover) and (pointer: fine) { .mconv:not(.is-on):hover { background: var(--paper); } }
.msg__thread { display: flex; flex-direction: column; min-height: 0; }
.mt__msgs { flex: 1 1 auto; min-height: 0; }
.msg__none { grid-row: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--mute); }
.msg__none > .ico { font-size: 40px; color: var(--line-strong); }
.mt__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mt__head .av { width: 40px; height: 40px; }
.mt__back { display: none; }
.mt__who { flex: 1; min-width: 0; }
.mt__who b { display: flex; align-items: center; gap: 5px; font-size: 16px; }
.mt__who span { display: block; font-size: 13.5px; color: var(--mute); }
.mt__about { display: flex; align-items: center; gap: 12px; margin: 12px 18px 0; padding: 10px; border-radius: 16px; background: var(--paper); text-decoration: none; color: inherit; }
.mt__pic { flex: none; width: 72px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--white); }
.mt__pic img { width: 100%; height: 100%; object-fit: cover; }
.mt__pic .scard__art img { width: 50%; height: 70%; object-fit: contain; }
.mt__about b { display: block; font-size: 14.5px; }
.mt__about span span { font-size: 13px; color: var(--mute); }
.mt__msgs { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 18px; }
.mt__start { display: flex; align-items: center; gap: 8px; margin: auto; max-width: 42ch; padding: 14px 16px; border-radius: 16px; background: var(--paper); font-size: 14px; color: var(--mute); text-align: left; }
.mday { align-self: center; margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.mb { align-self: flex-start; max-width: min(72%, 560px); display: grid; gap: 4px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--ink); animation: mbIn 220ms var(--ease-out); }
@keyframes mbIn { from { opacity: 0; transform: translateY(6px); } }
.mb p { font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.mb > span { font-size: 11.5px; color: var(--soft); justify-self: end; }
.mb--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--blue); color: #fff; }
.mb--me > span { color: rgb(255 255 255 / 0.7); }
.mb.is-sending { opacity: 0.7; }
.mb.is-failed { background: var(--pink-50); color: #8A0E37; cursor: pointer; }
.mb.is-failed > span { color: #8A0E37; font-weight: 700; }
.mctx { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: inherit; opacity: 0.8; text-decoration: none; }
.mt__compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mt__compose textarea { flex: 1; min-height: 46px; max-height: 160px; overflow-y: hidden; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 16px; font: inherit; font-size: 15.5px; line-height: 1.4; resize: none; }
.mt__compose textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.12); }
.mt__compose .btn { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
.mt__nokey { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 18px 18px; padding: 14px; border-radius: 16px; background: var(--sun-50); font-size: 14.5px; }
.mt__nokey span { flex: 1; min-width: 200px; }

/* ---------- order page ---------- */
.dorder { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; margin-bottom: 14px; }
.dorder__pic { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper); }
.dorder__pic img { width: 100%; height: 100%; object-fit: cover; }
.dorder__pic .scard__art img { width: 50%; height: 70%; object-fit: contain; }
.dorder__t { display: grid; gap: 2px; min-width: 0; }
.dorder__t a { color: inherit; text-decoration: none; }
.dorder__t b { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.dorder__t > span:not(.app-sub) { font-size: 14px; color: var(--mute); }
.dorder__t .app-sub { margin: 0; font-size: 13.5px; }
.dlv, .dreq { display: grid; gap: 12px; padding: 20px; margin-bottom: 14px; }
.dlv { background: var(--sun-50); box-shadow: none; }
.dlv h2, .dreq h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dlv__items { display: grid; gap: 8px; }
.dlv__items li { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--white); }
.dlv__items code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.dlv__short { display: flex; align-items: center; gap: 8px; font-weight: 650; color: #8A0E37; }

@media (max-width: 1180px) {
  .shop { grid-template-columns: minmax(0, 1fr) 300px; }
  .shopbody { grid-template-columns: 290px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ed-jump { top: 130px; }
  .shop { grid-template-columns: 1fr; }
  .shop__aside { position: static; order: -1; }
  .shopbody { grid-template-columns: 1fr; }
  .shopside { position: static; }
  .shophead__in { grid-template-columns: auto minmax(0, 1fr); }
  .shophead__btns { grid-column: 1 / -1; }
  .msg { grid-template-columns: 1fr; height: calc(100dvh - 130px - 24px); margin: 12px 0; }
  .msg[data-view="list"] .msg__thread { display: none; }
  .msg[data-view="thread"] .msg__list { display: none; }
  .mt__back { display: grid; }
}
@media (max-width: 700px) {
  .pk { grid-template-columns: 1fr; }
  .pk__card--one { grid-template-columns: 1fr 1fr; }
  .pk__card--one > .field:first-child { grid-column: 1 / -1; }
  .feat--3 .feat__row, .feat--3 .feat__head { grid-template-columns: minmax(0, 1fr) repeat(3, 44px) 40px; }
  .xrow { grid-template-columns: minmax(0, 1fr) 40px; }
  .xrow .money, .xrow select { grid-column: 1; }
  .xrow .iconbtn { grid-column: 2; grid-row: 1; }
  .dpick { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linksed { grid-template-columns: 1fr; }
  .shop .field__row { grid-template-columns: 1fr; }
  .cmp__row > span { padding: 10px 8px; font-size: 13.5px; }
  .ptabs { margin: -24px -20px 4px; }
  .shophead__in > .av { width: 92px; height: 92px; margin-top: -40px; }
  .dorder { grid-template-columns: 96px minmax(0, 1fr); }
  .dorder > .btn { grid-column: 1 / -1; }
  .mb { max-width: 86%; }
  .crop__box { padding: 16px; border-radius: 22px; }
}

/* ===================== market, G2G structure ===================== */
.mkhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 8px 0 28px; }
.mkhead h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.98; }
.mkhead p { margin-top: 12px; max-width: 52ch; font-size: 17px; color: var(--mute); }
.mkstats { display: flex; gap: 10px; flex-wrap: wrap; }
.mkstats span { display: grid; gap: 2px; min-width: 150px; padding: 14px 18px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.mkstats small { font-size: 13px; font-weight: 600; color: var(--mute); }
.mkstats b { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mkstats--sm span { min-width: 120px; padding: 10px 16px; }
.mkstats--sm b { font-size: 22px; }
#mk-groups { margin-bottom: 8px; }
.mk-h2 h2 { display: inline-flex; align-items: center; gap: 10px; }
.mk-h2 h2 .ico { color: #C98A00; }
.mk-h2[hidden], .sgrid[hidden] { display: none; }
.rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 14px 0 22px; }
.rhead h1 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
.rhead p { margin-top: 8px; color: var(--mute); }
.rmore { display: grid; gap: 10px; margin-bottom: 24px; padding: 18px 20px; border-radius: 22px; background: var(--paper); }
.rmore[hidden] { display: none; }
.rmore__h { font-size: 14px; color: var(--mute); }
.rmore__h b { color: var(--ink); }
.rmore__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.pill.is-on em { color: #fff; }
.rbody { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.rside { position: sticky; top: 140px; }
.rfilt { border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.rfilt summary { display: flex; align-items: center; gap: 8px; padding: 18px 20px; list-style: none; cursor: pointer; }
.rfilt summary::-webkit-details-marker { display: none; }
.rfilt summary span { font-size: 20px; font-weight: 850; letter-spacing: -0.02em; }
.rfilt summary em { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.rfilt summary em:empty { display: none; }
.rfilt summary .ico { margin-left: auto; transition: transform 220ms var(--ease-out); }
.rfilt[open] summary .ico { transform: rotate(180deg); }
.rgroup { display: grid; gap: 4px; padding: 14px 20px; border-top: 1px solid var(--line); }
.rgroup h3 { margin-bottom: 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.ropt { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; font-weight: 550; cursor: pointer; }
.ropt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.ropt span { display: inline-flex; align-items: center; gap: 6px; }
.ropt .ico { color: #C98A00; }
.rprice { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.rprice input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; }
.rprice input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(42 38 232 / 0.12); }
.rprice span { font-size: 13.5px; color: var(--mute); }
.rcats { display: grid; gap: 2px; }
.rcat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 550; color: var(--ink); text-align: left; cursor: pointer; }
.rcat:first-child { grid-template-columns: 1fr auto; }
.rcat img { width: 20px; height: 20px; object-fit: contain; }
.rcat em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.rcat.is-on { background: var(--blue-50); color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .rcat:not(.is-on):hover { background: var(--paper); } }
.rfilt > .linkbtn { margin: 6px 20px 18px; font-size: 14px; }
.rtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rsearch { position: relative; flex: 1 1 280px; display: block; }
.rsearch .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 18px; }
.rsearch input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15.5px; }
.rsearch input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 38 232 / 0.12); }
.rsort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.rsort select { height: 50px; padding: 0 38px 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230B1236' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; appearance: none; font: inherit; font-size: 15px; font-weight: 650; color: var(--ink); }
.rchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.rchips:empty { display: none; }
.rchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.rchip .ico { font-size: 12px; opacity: 0.8; }
.rcount { margin: 14px 0 14px; font-size: 14.5px; color: var(--mute); }
.sgrid--r { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
@media (max-width: 960px) {
  .rbody { grid-template-columns: 1fr; }
  .rside { position: static; }
  .mkstats span { min-width: 0; flex: 1 1 120px; }
}
@media (max-width: 600px) {
  .rhead .mkstats, .mkhead .mkstats { width: 100%; }
  .mkhead { margin-bottom: 20px; }
  .rtools { display: grid; grid-template-columns: 1fr; }
  .rsort select { flex: 1; }
}

/* Sign in with X */
.xsign { display: grid; gap: 14px; max-width: 640px; margin-top: 20px; }
.xsign__card { display: grid; gap: 8px; padding: 24px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.xsign__card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.xsign__card p { color: var(--mute); }
.xsign__btn { width: 100%; height: 56px; margin-top: 8px; justify-content: center; font-size: 16.5px; }
.xsign__btn .ico { font-size: 18px; }
.xsign__fine { font-size: 13.5px; }
.xalt--flow { padding: 14px 4px 0; }
.xalt--flow .xlink { display: grid; gap: 18px; margin-top: 16px; }
.xbox .xsign__card { padding: 0; box-shadow: none; }
