/* =========================================================
   AP Servers Marketplace: marketplace.php (.mkt) and sell.php (.mks).
   Everything is scoped; nothing else on the site changes.
   The storefront borrows the NightCore Store's language (css/nightcore-store.css): asphalt, bone text,
   sodium for money, Big Shoulders Display for names. The seller pages are client-area tools and use the
   AP Servers theme variables from custom.css.
   ========================================================= */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Storefront ---------- */
.mkt {
  --mkt-asphalt: #0A0C16;
  --mkt-under: #141A2C;
  --mkt-over: #252B42;
  --mkt-line: #2E3550;
  --mkt-bone: #ECE7DA;
  --mkt-fog: #A7AEC4;
  --mkt-dim: #7E8499;
  --mkt-sodium: #F2B23C;
  --mkt-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --mkt-mono: "JetBrains Mono", ui-monospace, monospace;
  --tone: var(--mkt-sodium);
  color: var(--mkt-bone);
  padding-bottom: 96px;
}
.mkt-tone-cyan { --tone: #2EE6FF; }
.mkt-tone-sodium { --tone: #F2B23C; }
.mkt-tone-magenta { --tone: #FF2E88; }
.mkt-tone-teal { --tone: #4FD1C5; }
.ap-page-apg-marketplace #main-body { padding-top: 0; padding-bottom: 0; }

.mkt *, .mkt *::before, .mkt *::after { box-sizing: border-box; }
.mkt h1, .mkt h2, .mkt h3 { color: var(--mkt-bone); }
.mkt a { color: var(--mkt-bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(236, 231, 218, .45); }
.mkt a:hover { color: #fff; text-decoration-color: var(--mkt-sodium); }
.mkt a.btn { text-decoration: none; }
.mkt :focus-visible { outline: 3px solid var(--mkt-sodium); outline-offset: 3px; }
.mkt-mono { font-family: var(--mkt-mono); font-size: .88em; }
.mkt-preview { margin-top: 16px; margin-bottom: 0; font-size: 13px; color: var(--mkt-fog); border-left: 3px solid var(--mkt-sodium); padding: 6px 12px; background: var(--mkt-under); }

.mkt-h1 { font-family: var(--mkt-display); font-weight: 900; font-size: clamp(48px, 6.4vw, 88px); line-height: .9; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 18px; }
.mkt-lede { font-size: 18px; line-height: 1.6; color: #D9D6E3; margin: 0; max-width: 40em; }

/* head */
.mkt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px 56px; align-items: end; padding-top: 56px; }
.mkt-search { display: flex; gap: 8px; }
.mkt-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--mkt-line); background: var(--mkt-under); color: var(--mkt-bone); font-size: 16px; }
.mkt-search input::placeholder { color: var(--mkt-dim); }
.mkt-search input:focus-visible { outline: 3px solid var(--mkt-sodium); outline-offset: 1px; border-color: transparent; }
.mkt-search .btn { height: 46px; padding: 0 18px; }
.mkt-terms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid rgba(236, 231, 218, .18); }
.mkt-terms > div { padding: 16px 24px 4px 0; }
.mkt-terms > div + div { padding-left: 24px; border-left: 1px solid rgba(236, 231, 218, .1); }
.mkt-terms dt { font-family: var(--mkt-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.mkt-terms dd { margin: 4px 0 0; font-size: 14px; color: var(--mkt-fog); }

/* browse */
.mkt-browse { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding-top: 56px; align-items: start; }
.mkt-cats { position: sticky; top: 16px; }
.mkt-cats-t { font-size: 15px; font-weight: 600; color: var(--mkt-fog) !important; margin: 0 0 10px; font-family: inherit; }
.mkt-cats ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mkt-over); }
.mkt-cats li { border-bottom: 1px solid var(--mkt-over); }
.mkt-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px 9px 12px; font-size: 15px; text-decoration: none; color: var(--mkt-fog); border-left: 3px solid transparent; }
.mkt-cats a span { color: var(--mkt-dim); font-variant-numeric: tabular-nums; }
.mkt-cats a:hover { color: var(--mkt-bone); }
.mkt-cats a[aria-current] { color: var(--mkt-bone); border-left-color: var(--mkt-sodium); font-weight: 600; }
.mkt-results-t { font-family: var(--mkt-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; margin: 0 0 20px; }

.mkt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mkt-grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mkt-card { position: relative; display: flex; flex-direction: column; background: var(--mkt-under); border: 1px solid var(--mkt-over); border-radius: 6px; overflow: hidden; transition: border-color .2s; }
.mkt-card:hover, .mkt-card:focus-within { border-color: color-mix(in srgb, var(--tone) 55%, var(--mkt-over)); }
.mkt-card-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #10142A, #1B2140); overflow: hidden; }
.mkt-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 26, 44, 0) 55%, rgba(20, 26, 44, .85) 100%); }
.mkt-card-body { display: flex; flex-direction: column; flex: 1; padding: 4px 18px 16px; }
.mkt-card-t { font-family: var(--mkt-display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0 0 4px; }
.mkt-card-link { text-decoration: none !important; color: var(--mkt-bone) !important; }
.mkt-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mkt-card-link:focus-visible { outline: none; }
.mkt-card-link:focus-visible::after { outline: 3px solid var(--mkt-sodium); outline-offset: -3px; border-radius: 6px; }
.mkt-card-by { position: relative; z-index: 2; align-self: flex-start; margin: 0 0 10px; font-size: 14px; color: var(--mkt-fog); }
.mkt-card-by a { color: var(--mkt-fog); }
.mkt-card-pitch { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: #C9CCD8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkt-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--mkt-over); }
.mkt-card-price { font-family: var(--mkt-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--mkt-sodium); }
.mkt-card-note { font-size: 13px; color: var(--mkt-dim); text-align: right; }
.mkt-empty { border: 1px dashed var(--mkt-line); border-radius: 6px; padding: 28px; color: var(--mkt-fog); }
.mkt-empty p { margin: 0 0 6px; }

.mkt-sell { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 48px; margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--mkt-over); }
.mkt-sell h2 { font-family: var(--mkt-display); font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.mkt-sell p { margin: 0; color: var(--mkt-fog); max-width: 62ch; line-height: 1.6; }
.mkt-sell-btn { border: 1.5px solid var(--mkt-bone) !important; color: var(--mkt-bone) !important; background: transparent !important; padding: 10px 20px; font-weight: 600; }
.mkt-sell-btn:hover { background: var(--mkt-bone) !important; color: var(--mkt-asphalt) !important; }

/* detail */
.mkt-crumb { margin: 32px 0 20px; font-size: 14px; color: var(--mkt-dim); }
.mkt-crumb a { color: var(--mkt-fog); }
.mkt-detail-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.mkt-gallery-main { margin: 0; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #10142A, #1B2140); border: 1px solid var(--mkt-over); }
.mkt-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.mkt-thumbs li { flex: 0 0 112px; }
.mkt-thumbs a { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.mkt-thumbs a[aria-current], .mkt-thumbs a:hover { border-color: var(--mkt-sodium); opacity: 1; }
.mkt-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-title { font-family: var(--mkt-display); font-weight: 900; font-size: clamp(40px, 4.4vw, 60px); line-height: .92; text-transform: uppercase; margin: 0 0 8px; overflow-wrap: anywhere; }
.mkt-by { margin: 0 0 16px; font-size: 16px; color: var(--mkt-fog); }
.mkt-pitch { font-size: 17px; line-height: 1.55; color: #D9D6E3; margin: 0 0 22px; }
.mkt-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 0; border-top: 1px solid var(--mkt-over); border-bottom: 1px solid var(--mkt-over); }
.mkt-price { margin: 0; display: flex; flex-direction: column; }
.mkt-price strong { font-family: var(--mkt-display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--mkt-sodium); }
.mkt-price span { font-size: 13px; color: var(--mkt-fog); }
.mkt-buy { white-space: nowrap; }
.mkt-soldout { font-size: 14px; font-weight: 600; color: var(--mkt-fog); border: 1px dashed var(--mkt-line); border-radius: 6px; padding: 9px 14px; }
.mkt-facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--mkt-fog); }
.mkt-facts li { padding-left: 18px; position: relative; }
.mkt-facts li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 2px; background: var(--mkt-sodium); }
.mkt-facts a { color: var(--mkt-fog); }

.mkt-detail-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; margin-top: 56px; align-items: start; }
.mkt-sec { font-family: var(--mkt-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin: 0 0 14px; }
.mkt-prose { font-size: 16px; line-height: 1.7; color: #D3D5E0; max-width: 68ch; overflow-wrap: anywhere; }
.mkt-prose h3 { font-family: inherit; font-size: 19px; font-weight: 700; margin: 26px 0 8px; color: var(--mkt-bone); }
.mkt-prose h4 { font-family: inherit; font-size: 16px; font-weight: 700; margin: 20px 0 6px; color: var(--mkt-bone); }
.mkt-prose p { margin: 0 0 14px; }
.mkt-prose ul, .mkt-prose ol { margin: 0 0 14px; padding-left: 22px; }
.mkt-prose li { margin-bottom: 4px; }
.mkt-prose code { font-family: var(--mkt-mono); font-size: .86em; background: rgba(236, 231, 218, .08); padding: 1px 5px; border-radius: 3px; color: var(--mkt-bone); }
.mkt-prose pre { background: #070810; border: 1px solid var(--mkt-over); border-radius: 6px; padding: 12px 14px; overflow-x: auto; }
.mkt-prose pre code { background: none; padding: 0; }
.mkt-prose-sm { font-size: 14.5px; line-height: 1.6; }
.mkt-prose-sm p:last-child, .mkt-prose-sm ul:last-child { margin-bottom: 0; }
.mkt-side { display: grid; gap: 32px; }
.mkt-side section { border-top: 1px solid var(--mkt-over); padding-top: 18px; }
.mkt-side p { color: var(--mkt-fog); font-size: 14.5px; line-height: 1.6; margin: 0 0 8px; }
.mkt-releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mkt-rel-h { display: flex; justify-content: space-between; margin: 0 0 4px !important; color: var(--mkt-bone) !important; }
.mkt-rel-h span + span { color: var(--mkt-dim); font-size: 13px; }
.mkt-fine { font-size: 13px !important; }

/* seller page */
.mkt-seller-head { max-width: 760px; margin-bottom: 40px; }
.mkt-seller-meta { color: var(--mkt-fog); font-size: 15px; margin: -6px 0 16px; }
.mkt-seller-bio { font-size: 17px; line-height: 1.6; color: #D9D6E3; margin: 0 0 16px; }
.mkt-seller-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; font-size: 15px; }

/* states */
.mkt-state { padding-top: 88px; padding-bottom: 40px; max-width: 760px; }
.mkt-state p { font-size: 18px; line-height: 1.6; color: #D9D6E3; }

@media (max-width: 1199.98px) {
  .mkt-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .mkt-head { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .mkt-browse { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .mkt-cats { position: static; }
  .mkt-cats-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mkt-cats ul { display: flex; gap: 4px 20px; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--mkt-over); scrollbar-width: none; }
  .mkt-cats li { border-bottom: 0; flex: none; }
  .mkt-cats a { padding: 10px 0 9px; border-left: 0; border-bottom: 3px solid transparent; gap: 6px; }
  .mkt-cats a[aria-current] { border-bottom-color: var(--mkt-sodium); }
  .mkt-detail-top, .mkt-detail-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mkt-detail-body { margin-top: 40px; }
  .mkt-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .mkt-h1 { font-size: 52px; }
  .mkt-lede { font-size: 16.5px; }
  .mkt-terms { grid-template-columns: minmax(0, 1fr); }
  .mkt-terms > div, .mkt-terms > div + div { padding: 12px 0 0; border-left: 0; }
  .mkt-terms dt { font-size: 20px; }
  .mkt-grid, .mkt-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .mkt-results-t { font-size: 30px; }
  .mkt-title { font-size: 44px; }
  .mkt-price-row { flex-direction: column; align-items: stretch; }
  .mkt-buy { width: 100%; }
  .mkt-thumbs li { flex: 0 0 calc((100% - 30px) / 4); }
  .mkt-sell { margin-top: 64px; }
  .mkt-sell-btn { width: 100%; text-align: center; }
  .mkt-state { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .mkt-card { transition: none; } }

/* ---------- Seller pages (client area) ---------- */
.mks { --mks-surface: var(--ap-surface, #12151D); --mks-surface-2: var(--ap-surface-2, #181C27); --mks-border: var(--ap-border, #252B3A); --mks-text: var(--ap-text, #F2F4F8);
  --mks-text-2: var(--ap-text-2, #A3ABBD); --mks-muted: var(--ap-muted, #8A93A6); --mks-ok: #34D399; --mks-warn: #FBBF24; --mks-bad: #FF5252; max-width: 1080px; }
.mks h1 { font-size: 34px; margin: 0 0 6px; }
.mks :focus-visible { outline: 2px solid var(--ap-red-text, #FF5252); outline-offset: 2px; }
.mks-lede { font-size: 17px; line-height: 1.6; color: var(--mks-text-2); max-width: 46em; }
.mks-sub { color: var(--mks-muted); margin: 0; }
.mks-head { margin-bottom: 22px; }
.mks-mono { font-family: var(--ap-mono, ui-monospace, monospace); font-size: .9em; }
.mks-preview { font-size: 13px; color: var(--mks-text-2); border-left: 3px solid var(--mks-warn); padding: 4px 12px; margin: 0 0 18px; }
.mks-h2 { font-size: 21px; margin: 0 0 12px; }
.mks-h3 { font-size: 17px; margin: 0 0 12px; }
.mks-help { font-size: 13.5px; color: var(--mks-muted); margin: 6px 0 0; line-height: 1.5; }
.mks-help code { font-size: 12.5px; }
.mks-note { display: block; font-size: 12.5px; color: var(--mks-muted); margin-top: 2px; }
.mks-date { color: var(--mks-muted); font-size: 13px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.mks-empty { color: var(--mks-muted); }

/* messages: neutral surface, the colour only on the left rule */
.mks-flash, .mks-callout { background: var(--mks-surface); border: 1px solid var(--mks-border); border-left: 3px solid var(--mks-text-2); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; color: var(--mks-text); }
.mks-flash.is-ok { border-left-color: var(--mks-ok); }
.mks-flash.is-bad, .mks-callout.is-warn { border-left-color: var(--mks-warn); }
.mks-callout p { margin: 0 0 6px; } .mks-callout p:last-child { margin: 0; }
.mks-callout .mks-check { margin: 8px 0; }

.mks-intro { margin-bottom: 28px; }
.mks-how { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 900px; }
.mks-how li { color: var(--mks-text-2); line-height: 1.55; font-size: 15px; padding-left: 14px; border-left: 2px solid var(--mks-border); }
.mks-how strong { color: var(--mks-text); }

.mks-panel { background: var(--mks-surface); border: 1px solid var(--mks-border); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.mks-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.mks-form legend { font-family: var(--ap-display, inherit); font-size: 19px; font-weight: 700; color: var(--mks-text); margin-bottom: 10px; border: 0; width: auto; }
.mks-field { margin-bottom: 16px; max-width: 680px; }
.mks-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--mks-text); }
.mks-opt { font-weight: 400; color: var(--mks-muted); font-size: 13px; margin-left: 4px; }
.mks input[type=text], .mks input:not([type]), .mks input[type=email], .mks input[type=search], .mks textarea, .mks select { width: 100%; background: var(--ap-bg-2, #0F1218); border: 1px solid var(--ap-border-2, #2C3344); color: var(--mks-text); border-radius: 8px; padding: 9px 12px; font-size: 15px; line-height: 1.45; }
.mks textarea { resize: vertical; font-family: var(--ap-mono, ui-monospace, monospace); font-size: 14px; }
.mks #f-bio, .mks #f-plans, .mks #p-bio, .mks #r-log { font-family: inherit; font-size: 15px; }
.mks input[type=file] { color: var(--mks-text-2); font-size: 14px; max-width: 100%; }
.mks input:focus-visible, .mks textarea:focus-visible, .mks select:focus-visible { outline: 2px solid var(--ap-red-text, #FF5252); outline-offset: 1px; }
.mks fieldset[disabled] input, .mks fieldset[disabled] textarea, .mks fieldset[disabled] select { opacity: .6; }
.mks-field.has-err input, .mks-field.has-err textarea { border-color: var(--mks-warn); }
.mks-err { margin: 6px 0 0; font-size: 13.5px; color: var(--mks-text); padding-left: 10px; border-left: 2px solid var(--mks-warn); }
.mks-prefix { display: flex; align-items: stretch; }
.mks-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--mks-surface-2); border: 1px solid var(--ap-border-2, #2C3344); border-right: 0; border-radius: 8px 0 0 8px; color: var(--mks-muted); font-size: 13.5px; white-space: nowrap; }
.mks-prefix input { border-radius: 0 8px 8px 0 !important; min-width: 0; }
.mks-radio { display: flex; gap: 22px; margin-bottom: 12px; }
.mks-radio label, .mks-check { font-weight: 400 !important; display: flex !important; gap: 8px; align-items: baseline; color: var(--mks-text); }
.mks-row { display: flex; gap: 16px; flex-wrap: wrap; max-width: 680px; }
.mks-row .mks-grow { flex: 1 1 300px; }
.mks-row .mks-price { flex: 0 0 200px; }
.mks-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mks-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mks-inline input { flex: 1 1 240px; width: auto; }
.mks-inline input[type=file] { flex: 0 1 auto; }
.mks-inline form { margin: 0; }
.mks-linkbtn { background: none; border: 0; padding: 0; color: var(--ap-red-text, #FF5252); font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.mks-remove { color: var(--mks-text-2) !important; }
.mks-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; }
.mks-dl dt { color: var(--mks-muted); font-weight: 400; }
.mks-dl dd { margin: 0; overflow-wrap: anywhere; }

.mks-tabs { display: flex; gap: 4px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--mks-border); margin-bottom: 18px; }
.mks-tabs a { padding: 10px 0 9px; color: var(--mks-text-2); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; }
.mks-tabs a:hover { color: var(--mks-text); }
.mks-tabs a[aria-current] { color: var(--mks-text); border-bottom-color: var(--ap-red, #DC2626); }

.mks-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mks-table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--mks-muted); padding: 8px 10px; border-bottom: 1px solid var(--mks-border); }
.mks-table td { padding: 11px 10px; border-bottom: 1px solid var(--mks-border); vertical-align: top; }
.mks-table tr:last-child td { border-bottom: 0; }
.mks-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mks-table .act { text-align: right; white-space: nowrap; }
.mks-table .act form { display: inline; }
.mks-table tr.is-muted td { color: var(--mks-muted); }
.mks-table a { font-weight: 500; }
.mks-tag { display: inline-block; font-size: 12.5px; border: 1px solid var(--mks-border); border-radius: 999px; padding: 1px 9px; color: var(--mks-text-2); white-space: nowrap; }
.mks-tag.is-live, .mks-tag.is-rel-approved { color: var(--mks-text); border-color: rgba(52, 211, 153, .55); }
.mks-tag.is-submitted, .mks-tag.is-rel-submitted { color: var(--mks-text); border-color: rgba(251, 191, 36, .55); }
.mks-tag.is-changes, .mks-tag.is-rel-changes, .mks-tag.is-rel-rejected, .mks-tag.is-rel-pulled { color: var(--mks-text); border-color: rgba(255, 82, 82, .6); }
.mks-new { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mks-border); max-width: 560px; }
.mks-new label { display: block; font-weight: 600; margin-bottom: 6px; }

.mks-notices { margin-bottom: 20px; }
.mks-notices ul { list-style: none; padding: 0; margin: 0 0 6px; }
.mks-notices li { padding: 8px 0 8px 12px; border-left: 2px solid var(--mks-border); margin-bottom: 4px; color: var(--mks-text-2); font-size: 14.5px; }
.mks-notices li.is-unread { color: var(--mks-text); }
.mks-notices li.is-ok.is-unread { border-left-color: var(--mks-ok); }
.mks-notices li.is-warn.is-unread { border-left-color: var(--mks-warn); }
.mks-notices li.is-info.is-unread { border-left-color: var(--mks-text-2); }

.mks-older { margin-top: 8px; }
.mks-older summary { cursor: pointer; color: var(--mks-text-2); font-size: 14px; }
.mks-older ul { margin-top: 8px; }
.mks-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; }
.mks-figures > div { padding: 4px 20px 4px 0; }
.mks-figures > div + div { padding-left: 20px; border-left: 1px solid var(--mks-border); }
.mks-figures dt { font-weight: 500; color: var(--mks-muted); font-size: 14px; }
.mks-figures dd { font-family: var(--ap-display, inherit); font-size: 32px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; color: var(--mks-text); }
.mks-figures dd.is-neg { color: var(--mks-bad); }
.mks-figures p { font-size: 13px; color: var(--mks-muted); margin: 0; }

.mks-state { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--mks-text-2); font-size: 14px; margin-bottom: 16px; }
.mks-images { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mks-images img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--mks-border); display: block; }
.mks-img-ops { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mks-img-ops form { margin: 0; }
.mks-upload { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mks-border); }
.mks-upload label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.mks-preview-md { margin-top: 14px; }
.mks-preview-md summary { cursor: pointer; color: var(--mks-text-2); font-size: 14px; }
.mks-md { margin-top: 10px; padding: 14px 18px; border: 1px solid var(--mks-border); border-radius: 8px; background: var(--ap-bg-2, #0F1218); max-width: 72ch; line-height: 1.65; }
.mks-md h3 { font-size: 18px; margin: 18px 0 6px; } .mks-md h4 { font-size: 16px; margin: 14px 0 4px; }

@media (max-width: 767.98px) {
  .mks h1 { font-size: 28px; }
  .mks-how { grid-template-columns: minmax(0, 1fr); }
  .mks-panel { padding: 16px; border-radius: 10px; }
  .mks-figures { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mks-figures > div, .mks-figures > div + div { padding: 0; border-left: 0; }
  .mks-row .mks-price { flex: 1 1 100%; }
  .mks-radio { flex-direction: column; gap: 6px; }
  .mks-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .mks-tabs a { flex: none; }
  .mks-prefix span { font-size: 12px; padding: 0 7px; }
  /* tables become stacked rows */
  .mks-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mks-table, .mks-table tbody, .mks-table tr, .mks-table td { display: block; width: 100%; }
  .mks-table tr { padding: 10px 0; border-bottom: 1px solid var(--mks-border); }
  .mks-table tr:last-child { border-bottom: 0; }
  .mks-table td { border: 0; padding: 3px 0; text-align: left !important; display: flex; gap: 12px; justify-content: space-between; }
  .mks-table td[data-l]::before { content: attr(data-l); color: var(--mks-muted); font-size: 13px; flex: none; font-family: var(--ap-font, Inter, sans-serif); }
  .mks-table td[data-l] > * { text-align: right; }
  .mks-table td[data-l="Listing"] { display: block; font-size: 15.5px; }
  .mks-table td[data-l="Listing"]::before { display: none; }
  .mks-table td.act { justify-content: flex-start; padding-top: 6px; }
  .mks-table td.mks-empty { display: block; }
}

/* 2026-12-02: the creators page steps are a sequence: one column, in order. */
.mks .mks-panel ol.mks-how { grid-template-columns: 1fr; }

/* 2026-12-02: games list above categories, sticky together. */
.mkt .mkt-side { position: sticky; top: 16px; display: grid; gap: 28px; }
.mkt .mkt-side .mkt-cats { position: static; }
@media (max-width: 991.98px) { .mkt .mkt-side { position: static; gap: 12px; } }
