.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: .86rem; color: var(--faint); }
.mk-crumbs a { color: var(--dim); transition: color var(--dur) var(--ease); }
.mk-crumbs a:hover { color: var(--accent-ink); }
.mk-crumbs svg { color: var(--faint); opacity: .7; flex: none; }
.mk-crumbs span { color: var(--faint); overflow-wrap: anywhere; }

.mk-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mk-cat { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--pill); background: var(--panel); color: var(--dim); font-size: .89rem; font-weight: 500; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mk-cat svg { color: var(--faint); flex: none; transition: color var(--dur) var(--ease); }
.mk-cat i { font-style: normal; font-size: .78rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.mk-cat:hover { background: var(--panel-2); color: var(--ink); }
.mk-cat.is-active { background: var(--accent-soft); color: var(--ink); }
.mk-cat.is-active svg { color: var(--accent-ink); }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--gap); }

.mk-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); background: var(--panel); overflow: hidden; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mk-card:hover { background: var(--panel-2); transform: translateY(-2px); }
.mk-card-img { position: relative; aspect-ratio: 16 / 9; background: var(--panel-3); overflow: hidden; }
.mk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mk-card:hover .mk-card-img img { transform: scale(1.03); }
.mk-card-blank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); }
.mk-card-cut { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: var(--pill); background: var(--panel); color: var(--ok); font-size: .76rem; font-weight: 600; box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }

.mk-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 16px 18px 18px; }
.mk-card-name { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.mk-card-name a { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); overflow-wrap: anywhere; }
.mk-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mk-card-name a:focus-visible { outline: none; }
.mk-card-name a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-lg); }
.mk-card:hover .mk-card-name a { color: var(--accent-ink); }
.mk-card-by { margin: 0; font-size: .84rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card-by a { position: relative; z-index: 2; color: var(--dim); transition: color var(--dur) var(--ease); }
.mk-card-by a:hover { color: var(--accent-ink); }
.mk-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-card-tags .pill { padding: 3px 10px; font-size: .75rem; }
.mk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }

.mk-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; font-variant-numeric: tabular-nums; }
.mk-price b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.mk-price.is-free b { color: var(--ok); }
.mk-price s { font-size: .84rem; color: var(--faint); }

.mk-card-buy { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--edge-2); border-radius: var(--pill); color: var(--dim); font-size: .85rem; font-weight: 500; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mk-card-buy:hover { background: var(--panel-3); color: var(--ink); }
.mk-card-buy svg { flex: none; }

.mk-empty { margin-top: 4px; }

.mk-how { margin-top: 64px; }
.mk-how > .ml-h2 { margin: 0 0 18px; }
.mk-how .cell h3 { margin: 0 0 .45em; }
.mk-how .cell p { margin: 0; }

.mk-sell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 20px; }
.mk-sell .ml-h2 { margin: 0 0 6px; }
.mk-sell p { margin: 0; max-width: 62ch; }

.mk-store { display: grid; grid-template-columns: auto minmax(0, 1fr) 300px; gap: 20px 24px; align-items: start; margin-bottom: 22px; }
.mk-store-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-ink); font-size: 1.6rem; font-weight: 600; line-height: 1; overflow: hidden; flex: none; }
.mk-store-mark img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-mark-sm { width: 42px; height: 42px; border-radius: var(--r-sm); font-size: 1.05rem; }
.mk-store-main { min-width: 0; }
.mk-store-main .ml-h2 { margin: 2px 0 2px; font-size: 1.4rem; overflow-wrap: anywhere; }
.mk-store-host { margin: 0 0 12px; font-size: .86rem; overflow-wrap: anywhere; }
.mk-store-facts { grid-column: 3; grid-row: 1 / span 2; }
.mk-store-acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mk-store-acts form { margin: 0; }

.mk-gallery { padding: 14px; }
.mk-shot { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--bg-2); color: var(--faint); overflow: hidden; }
.mk-shot img { width: 100%; height: 100%; object-fit: contain; }
.mk-thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.mk-thumb { flex: none; width: 104px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--panel-3); overflow: hidden; cursor: pointer; opacity: .6; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-thumb:hover { opacity: 1; }
.mk-thumb.is-active { opacity: 1; border-color: var(--accent); }

.mk-about .ml-h2 { margin: 0 0 14px; }
.mk-text { color: var(--dim); font-size: .95rem; line-height: 1.66; overflow-wrap: anywhere; }
.mk-text p { margin: 0 0 .7em; }
.mk-text h3 { margin: 1.2em 0 .45em; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mk-text > h3:first-child { margin-top: 0; }
.mk-text ul { margin: 0 0 1em; padding: 0 0 0 1.15em; list-style: disc; }
.mk-text li { margin: .2em 0; }
.mk-text li::marker { color: var(--accent-ink); }
.mk-about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--edge); }

.mk-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 16px; }
.mk-buy-price b { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-buy-price b.is-free { color: var(--ok); }
.mk-buy-price s { color: var(--faint); font-size: 1rem; font-variant-numeric: tabular-nums; }
.mk-buy-note { margin: -6px 0 14px; font-size: .87rem; }
.mk-buy .form-note { margin: 12px 0 20px; }
.mk-buy-facts dd a { color: var(--ink); transition: color var(--dur) var(--ease); }
.mk-buy-facts dd a:hover { color: var(--accent-ink); }

.mk-seller-name { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 0 16px; }
.mk-seller-name > span:last-child { min-width: 0; }
.mk-seller-name b { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; transition: color var(--dur) var(--ease); }
.mk-seller-name i { display: block; font-style: normal; font-size: .82rem; color: var(--faint); overflow-wrap: anywhere; }
.mk-seller-name:hover b { color: var(--accent-ink); }

.mk-rel { margin-top: 48px; }
.mk-rel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mk-rel-head .ml-h2 { margin: 0; }

.mk-back { margin: 0 0 16px; font-size: .9rem; }
.mk-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); transition: color var(--dur) var(--ease); }
.mk-back a:hover { color: var(--ink); }

.mk-seller-store { margin-left: 8px; color: var(--ink); font-weight: 600; }
.mk-state-text { margin: -6px 0 14px; color: var(--dim); font-size: .94rem; }
.mk-state-links { margin: 0 0 18px; }
.mk-store-form { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--edge); }
.mk-store-form select.input { cursor: pointer; }

.mk-token { margin: 0 0 16px; }
.mk-token > summary { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-bottom: 6px; color: var(--dim); font-size: .9rem; font-weight: 500; cursor: pointer; list-style: none; }
.mk-token > summary::-webkit-details-marker { display: none; }
.mk-token > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg) translateY(-2px); }
.mk-token[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.mk-token > summary:hover { color: var(--ink); }

.mk-form-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mk-remove { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.mk-seller-page .btn[disabled] { opacity: .45; cursor: default; transform: none; }

.mk-items-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mk-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px 14px; border-radius: var(--r); background: var(--panel-2); transition: opacity var(--dur) var(--ease); }
.mk-item.is-off { opacity: .55; }
.mk-item-main { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
.mk-item-img { flex: none; width: 84px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: var(--panel-3); overflow: hidden; }
.mk-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-item-name { min-width: 0; }
.mk-item-name b { display: block; font-size: .94rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.mk-item-name i { display: block; font-style: normal; font-size: .8rem; color: var(--faint); }
.mk-item-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-item-ctl .ar16-select { --ctl: 42px; max-width: 210px; }
.mk-item-show { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; color: var(--dim); font-size: .87rem; cursor: pointer; user-select: none; }
.mk-item-show input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.mk-items .mk-form-acts { margin-top: 18px; }

.mk-steps { margin: 0; padding: 0 0 0 1.2em; list-style: decimal; color: var(--dim); font-size: .92rem; }
.mk-steps li { margin: 0 0 .65em; }
.mk-steps li:last-child { margin-bottom: 0; }
.mk-steps li::marker { color: var(--accent-ink); font-weight: 600; }

@media (max-width: 1000px) {
    .mk-store { grid-template-columns: auto minmax(0, 1fr); }
    .mk-store-facts { grid-column: 1 / -1; grid-row: auto; }
    .mk-store-acts { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .mk-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .mk-cats::-webkit-scrollbar { display: none; }
    .mk-how { margin-top: 44px; }
    .mk-sell .btn { width: 100%; }
    .mk-item-ctl { width: 100%; }
    .mk-item-ctl .ar16-select { flex: 1 1 140px; max-width: none; }
    .mk-form-acts .btn { flex: 1; }
}

@media (max-width: 560px) {
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mk-card-body { gap: 6px; padding: 12px 12px 14px; }
    .mk-card-name { font-size: .9rem; }
    .mk-card-by { font-size: .78rem; }
    .mk-card-tags .pill:last-child { display: none; }
    .mk-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .mk-price b { font-size: .98rem; }
    .mk-card-buy { width: 100%; }
    .mk-store { gap: 16px; }
    .mk-store-mark { width: 52px; height: 52px; font-size: 1.3rem; }
    .mk-buy-price b { font-size: 1.7rem; }
}

@media (max-width: 340px) {
    .mk-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .mk-card, .mk-card-img img { transition: none; }
    .mk-card:hover { transform: none; }
    .mk-card:hover .mk-card-img img { transform: none; }
}
