/* Listing details sheet (assets/market-filter.js). */
.mk-card { cursor: pointer; }
.mk-detail[hidden], .mk-d-close[hidden] { display: none; }
.mk-sheet { position: fixed; inset: 0; z-index: 2147482000; display: none; align-items: center; justify-content: center; padding: 24px; }
.mk-sheet.open { display: flex; }
.mk-sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .62); backdrop-filter: blur(4px); }
.mk-sheet-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: min(940px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 24px; background: var(--card, #17171a); color: var(--text, #fff); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.mk-sheet-cover { position: relative; min-height: 100%; background: var(--sep, #222); }
.mk-sheet-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-sheet-main { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.mk-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px 12px; }
.mk-sheet-foot { padding: 12px 28px 22px; border-top: 1px solid var(--sep, rgba(255, 255, 255, .12)); background: var(--card, #17171a); }
.mk-sheet-foot .mk-d-actions { margin-top: 0; }
.mk-sheet-foot .alt-ct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mk-sheet-foot .alt-ct-or { display: none; }
.mk-sheet-foot .alt-ct a, .mk-sheet-foot .alt-ct button { justify-content: center; min-height: 44px; border-radius: 12px; }
.mk-d-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.mk-detail h3 { margin: 0 0 12px; font-size: 1.45rem; }
.mk-detail h4 { margin: 18px 0 6px; font-size: .95rem; }
.mk-detail p { margin: 0; color: var(--text-2, #bbb); line-height: 1.55; }
.mk-d-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.mk-d-stats li { padding: 8px 14px; border: 1px solid var(--sep, rgba(255, 255, 255, .14)); border-radius: 12px; color: var(--text-2, #bbb); font-size: .9rem; }
.mk-d-stats b { margin-inline-end: 4px; color: var(--text, #fff); font-size: 1.15rem; }
.mk-d-steps { margin: 0; padding-inline-start: 20px; color: var(--text-2, #bbb); line-height: 1.55; }
.mk-d-steps li { margin: 2px 0; }
.mk-detail .mk-note { margin-top: 14px; font-size: .84rem; }
.mk-d-actions { margin-top: 18px; }
.mk-d-actions .btn { display: flex; width: 100%; justify-content: center; }
.mk-detail .alt-ct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mk-detail .alt-ct-or { display: none; }
.mk-detail .alt-ct a, .mk-detail .alt-ct button { justify-content: center; min-height: 44px; border-radius: 12px; }
html.mk-sheet-lock, html.mk-sheet-lock body { overflow: hidden; }
@media (max-width: 760px) {
  .mk-sheet { align-items: flex-end; padding: 0; }
  .mk-sheet-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .mk-sheet-cover { aspect-ratio: 16 / 9; min-height: 0; max-height: 36vh; max-height: 36dvh; }
  .mk-sheet-main { max-height: none; }
  .mk-sheet-body { padding: 18px 18px 10px; }
  .mk-sheet-foot { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
  .mk-detail h3 { font-size: 1.25rem; }
}
@media (max-width: 760px) and (max-height: 500px) {
  .mk-sheet-cover { max-height: 26vh; max-height: 26dvh; }
}
.mk-inc { margin: 2px 0 0; color: var(--text-2, #aaa); font-size: .86rem; }
.mk-inc b { margin-inline-end: 4px; color: #1e9e5a; font-weight: 800; }

/* Keep the complete illustrative X cover visible in the detail viewer. */
.mk-sheet-x .mk-sheet-cover img { object-fit: contain; }
