/* grepped.ai/marketplace: the buyer marketplace, laid out like a stays site. Self-contained
   light theme (it doesn't load styles.css or dark.css): white canvas, soft greys, DM Sans,
   rounded everything and one blue accent for search and requests. */

:root { --r: 10px;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #222222;
  --ink-2: #6a6a6a;
  --muted: #8a8a8a;
  --line: #ebebeb;
  --line-2: #dddddd;
  --field: #ffffff;
  --chip: #f7f7f7;
  --navy: #222222;
  --navy-2: #222222;
  --rose: #2563eb;
  --rose-grad: var(--rose);
  --req: var(--rose);
  --ok: #008a05;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow: 0 6px 16px rgba(0, 0, 0, .12);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .28);
  --r: 16px;
  --r-sm: 12px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --head: var(--sans);
  --gut: 48px;
  --navh: 170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mkt {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
body.mkt a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r, 10px); border: 1px solid transparent; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:disabled, .btn-rose:disabled { background: #dddddd; color: #fff; cursor: default; }
.btn-rose { background: var(--rose-grad); color: #fff; }
.btn-rose:hover { background: #1d4ed8; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--chip); }
.btn-block { width: 100%; padding: 16px; }
.btn[hidden] { display: none; }

input[type=text], input[type=email], select, textarea {
  width: 100%; border: 1px solid #b0b0b0; border-radius: var(--r-sm);
  background: var(--field); color: var(--ink); font: 400 16px/1.4 var(--sans); padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--req); font-size: 14px; margin: 4px 0 8px; }
.form-error[hidden] { display: none; }
.fine { color: var(--ink-2); font-size: 13px; margin: 18px 0 0; }

/* ---------- Header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 72px; padding: 0 var(--gut); max-width: 1760px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.logo-mark { height: 17px; width: auto; color: var(--ink); }
.mk-brandtag { font: 600 13px/1 var(--sans); color: var(--rose); padding: 6px 10px; border-radius: 6px; background: #eef3fd; }
.mk-tabs { display: flex; gap: 4px; justify-content: center; }
.mk-tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap; position: relative; border-radius: 999px; transition: color .2s, background .2s; }
.mk-tabs a:hover { color: var(--ink); background: var(--chip); }
.mk-tabs .ti { width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink-3, var(--ink-2)); transition: color .2s; }
.mk-tabs .ti svg { width: 18px; height: 18px; }
.mk-tabs a.is-active { color: var(--ink); font-weight: 600; }
.mk-tabs a.is-active .ti { color: var(--rose); }
.mk-tabs a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -4px; height: 2px; border-radius: 2px; background: var(--ink); }
.mk-navright { display: flex; align-items: center; gap: 4px; justify-self: end; white-space: nowrap; }
.mk-textbtn { color: inherit; text-decoration: none; border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: var(--r, 10px); font-size: 14px; font-weight: 600; transition: background .2s; }
.mk-textbtn:hover { background: var(--chip); }
.mk-round { position: relative; width: 42px; height: 42px; border-radius: var(--r, 10px); border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.mk-round:hover { background: var(--line); }
.pt-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.pt-count[hidden] { display: none; }

/* The big search bar */
.mk-sb {
  position: relative; display: flex; align-items: center; width: calc(100% - 2 * var(--gut)); max-width: 850px; height: 66px; margin: 2px auto 26px;
  border: 1px solid var(--line-2); border-radius: 14px; background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .08); transition: background .2s;
}
.mk-sb.is-active { background: var(--line); border-color: transparent; }
.mk-sb-cell {
  flex: 1 1 0; min-width: 0; height: 100%; padding: 0 30px; border: 0; border-radius: 13px; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; text-align: left; transition: background .2s, box-shadow .2s;
}
.mk-sb-cell:hover { background: var(--line); }
.mk-sb.is-active .mk-sb-cell:hover { background: #dddddd; }
.mk-sb .mk-sb-cell.is-open, .mk-sb.is-active .mk-sb-cell.is-open:hover { background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.mk-sb-cell b { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.mk-sb-cell > span, .mk-sb-txt > span { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-sb-cell span.is-set { color: var(--ink); font-weight: 500; }
.mk-sb-cell input { border: 0; background: transparent; padding: 0; margin-top: 2px; font-size: 14px; color: var(--ink); box-shadow: none; border-radius: 0; text-overflow: ellipsis; }
.mk-sb-cell input:focus { box-shadow: none; }
.mk-sb-cell input::placeholder { color: var(--ink-2); }
.mk-sb-div { width: 1px; height: 32px; background: var(--line-2); flex: none; }
.mk-sb.is-active .mk-sb-div { background: transparent; }
.mk-sb-last { flex: 1.15 1 0; flex-direction: row; align-items: center; padding-right: 8px; gap: 6px; }
.mk-sb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-sb-clear { display: none; border: 0; background: none; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px; color: var(--ink); }
.mk-sb.is-active .mk-sb-clear { display: block; }
.mk-sb-go {
  height: 48px; min-width: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--rose-grad); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; flex: none; transition: padding .25s;
}
.mk-sb-go span { display: none; }
.mk-sb.is-active .mk-sb-go { padding: 0 20px 0 16px; }
.mk-sb.is-active .mk-sb-go span { display: inline; }

.mk-sb-panel {
  position: absolute; top: calc(100% + 12px); z-index: 60; background: #fff; border-radius: 32px; box-shadow: var(--shadow-lg);
  padding: 26px 30px 24px; max-height: calc(100vh - 220px); overflow: auto; animation: mk-drop .2s ease-out;
}
.mk-sb-panel[hidden] { display: none; }
@keyframes mk-drop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.mk-sb-panel.is-sector { left: 0; width: 440px; }
.mk-sb-panel.is-stack { left: 14%; width: 600px; }
.mk-sb-panel.is-size { right: 0; width: 420px; }
.mk-pl { margin: 0 0 12px; font-size: 12px; font-weight: 600; }
.mk-pnone { color: var(--ink-2); font-size: 14px; margin: 0; }
.mk-phint { color: var(--ink-2); font-size: 13px; margin: 16px 0 0; }
.mk-sectorlist { display: grid; gap: 2px; margin: 0 -12px; }
.mk-srow { display: flex; align-items: center; gap: 16px; padding: 8px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background .15s; }
.mk-srow:hover, .mk-srow.is-on { background: var(--chip); }
.mk-srow .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); flex: none; }
.mk-srow b { display: block; font-size: 15px; font-weight: 500; }
.mk-srow small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.mk-stackgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-schip { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r, 10px); padding: 10px 16px; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; transition: border-color .15s, background .15s; }
.mk-schip small { color: var(--ink-2); font-size: 12px; }
.mk-schip { align-items: center; padding: 6px 14px 6px 6px; }
.mk-schip .mk-tool { width: 26px; height: 26px; border-radius: 6px; }
.mk-schip.is-none { opacity: .4; }
.mk-pl2 { margin-top: 20px; }
.mk-stacklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.mk-stacklist li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.mk-stacklist .mk-tool { width: 36px; height: 36px; border-radius: 10px; }
.mk-schip:hover { border-color: var(--ink); }
.mk-schip.is-on { background: var(--chip); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-sizerow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.mk-sizerow:last-of-type { border-bottom: 0; }
.mk-sizerow b { display: block; font-size: 16px; font-weight: 500; }
.mk-sizerow small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.mk-check { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b0b0b0; flex: none; transition: all .15s; }
.mk-sizerow:hover .mk-check { border-color: var(--ink); }
.mk-sizerow.is-on .mk-check { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5 5.5-5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--ink); }

/* The compact search pill, shown once you scroll */
.mk-mini {
  display: none; align-items: center; height: 48px; padding: 0 8px 0 8px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05); transition: box-shadow .2s;
}
.mk-mini:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.mk-mini > span { padding: 0 16px; font-size: 14px; font-weight: 500; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.mk-mini > span#miniStack, .mk-mini > span#miniSize { color: var(--ink-2); font-weight: 400; }
.mk-mini i { width: 1px; height: 24px; background: var(--line-2); }
.mk-mini .go { width: 32px; height: 32px; padding: 0; border-radius: 8px; background: var(--rose-grad); color: #fff; display: grid; place-items: center; margin-left: 2px; }
.mk-mini-m { display: none !important; }
.mk-sb-close { display: none; }
.nav.is-compact:not(.is-expanded) .mk-tabs, .nav.is-compact:not(.is-expanded) .mk-navgap, .nav.is-compact:not(.is-expanded) .mk-sb { display: none; }
.nav.is-compact:not(.is-expanded) .mk-mini { display: inline-flex; }
.nav.is-expanded { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.mk-scrim.is-light { z-index: 40; background: rgba(0, 0, 0, .25); backdrop-filter: none; }

/* ---------- Layout ---------- */
main.mk { padding-top: var(--navh); min-height: 70vh; }
/* Hold the page open until marketplace.js draws into it, so the footer does not flash at the top and then drop. */
main.mk:empty { min-height: 100vh; min-height: 100svh; }
body.is-compact-route main.mk { padding-top: 73px; }
.mk-wrap { max-width: 1760px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Cards ---------- */
.mk-card { position: relative; min-width: 0; }
.mk-card-link { display: block; text-decoration: none; color: inherit; }
.mk-card-media { position: relative; }
.mk-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); background: #f1f1f1; overflow: hidden; }
.mk-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-img .mk-cover { display: block; width: 100%; height: 100%; font-family: inherit; }
.mk-dist { padding-top: 2px; }
.mk-dist-label { margin: 0 0 6px; height: 20px; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-dist-label b { font-weight: 600; }
.mk-dist-label span { color: var(--ink-2); margin-left: 8px; }
.mk-dist-bar { display: flex; gap: 3px; height: 16px; }
.mk-dist-bar i { min-width: 5px; border-radius: 5px; transition: opacity .15s, transform .15s; }
.mk-dist-bar:hover i { opacity: .35; }
.mk-dist-bar i:hover { opacity: 1; transform: scaleY(1.25); }
.mk-dist-bar.is-even i { opacity: .55; }
.mk-dist-bar.is-empty i { flex: 1; background: var(--chip); }
.mk-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; min-height: 40px; }
.mk-cardprice { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-cardprice.is-none { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.mk-card .mk-card-body h3 { min-height: 0; font-size: 18px; -webkit-line-clamp: 1; }
.mk-card .mk-card-body { padding-top: 6px; }
.mk-cardhead .mk-badge { position: static; box-shadow: none; background: var(--chip); flex: none; }
.mk-cardhead .mk-badge.is-ind { background: none; border: 1px solid var(--line, rgba(0,0,0,.14)); color: var(--muted, #6b7280); font-weight: 500; }
.mk-card .mk-heart, #shortlistBtn, .mk-savebig { display: none; }
.mk-badge {
  position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 6px; background: rgba(255, 255, 255, .96);
  font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.mk-heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .15s; }
.mk-heart:hover { transform: scale(1.08); }
.mk-heart svg { width: 24px; height: 24px; fill: rgba(37, 99, 235, .55); stroke: #fff; stroke-width: 2; overflow: visible; }
.mk-heart.is-on svg { fill: var(--rose); }
.mk-card-body { padding-top: 10px; }
.mk-card h3 { margin: 0; min-height: 2.6em; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-sub { margin: 2px 0 0; font-size: 15px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-prof { display: flex; min-width: 0; }
.mk-prof .ind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mk-prof { justify-content: space-between; gap: 10px; }
.mk-prof .emp { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 14px; }
.mk-tools.is-empty span { font-size: 13px; color: var(--muted); }
.mk-meta { margin: 6px 0 0; min-height: 1.45em; line-height: 1.45; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-meta b { color: var(--ink); font-weight: 600; }
.mk-tools { display: flex; align-items: center; gap: 4px; margin-top: 7px; height: 28px; overflow: hidden; }
.mk-tool { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--chip); color: #5c5c5c; display: grid; place-items: center; }
.mk-tool.is-brand { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mk-tool-more { height: 26px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--chip); }

/* ---------- Home rows ---------- */
.mk-home { padding-top: 6px; }
.mk-row { margin-top: 30px; }
.mk-home > .mk-row:first-child { margin-top: 12px; }
.mk-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mk-row-head h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.mk-row-head h2 a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mk-row-head h2 .chev { opacity: .9; transition: transform .2s; }
.mk-row-head h2 a:hover .chev { transform: translateX(3px); }
.mk-row-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.mk-arrows { display: flex; gap: 8px; flex: none; }
.mk-arrows button { width: 32px; height: 32px; border-radius: var(--r, 10px); border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s, box-shadow .2s; }
.mk-arrows button:hover:not(:disabled) { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.mk-arrows button:disabled { opacity: .35; cursor: default; }
.mk-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 2); gap: 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.mk-track::-webkit-scrollbar { display: none; }
.mk-track .mk-card { scroll-snap-align: start; }
.mk-picks { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.mk-picks .mk-row-head h2 { font-size: 26px; }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.mk-picks .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-inspire { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.mk-inspire h2 { margin: 0 0 20px; font-size: 22px; }
.mk-inspire-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 24px; }
.mk-inspire-grid a { text-decoration: none; display: block; padding: 4px 0; }
.mk-inspire-grid b { display: block; font-size: 14px; font-weight: 600; }
.mk-inspire-grid span { display: block; font-size: 14px; color: var(--ink-2); }
.mk-inspire-grid a:hover b { text-decoration: underline; }
.mk-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 64px 0 24px; padding: 40px 44px; border-radius: 24px; background: var(--chip); }
.mk-band h2 { margin: 0 0 6px; font-size: 26px; }
.mk-band p { margin: 0; color: var(--ink-2); max-width: 560px; }
.mk-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.mk-how { max-width: 1120px; margin: 0 auto; padding-top: 40px; }
.mk-how h1 { font-size: 32px; margin: 0 0 8px; }
.mk-how .lede { color: var(--ink-2); font-size: 18px; margin: 0 0 36px; }
.mk-steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mk-steps li { padding: 24px; border-radius: 20px; background: var(--chip); }
.mk-steps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 700; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.mk-steps h3 { margin: 0 0 6px; font-size: 18px; }
.mk-steps p, .mk-trust p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.mk-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 36px; border-top: 1px solid var(--line); }
.mk-trust h4 { margin: 0 0 6px; font-size: 16px; }

/* ---------- Browse ---------- */
.mk-browse { padding-top: 20px; }
.mk-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mk-results-bar h1 { margin: 0; font-size: 22px; }
.mk-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-pill { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r, 10px); padding: 9px 16px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.mk-pill em { font-style: normal; color: var(--ink-2); font-size: 12px; margin-left: 2px; }
.mk-pill:hover { border-color: var(--ink); }
.mk-pill.is-on { background: var(--chip); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.mk-sort select { width: auto; padding: 9px 36px 9px 16px; border-radius: var(--r, 10px); border-color: var(--line-2); font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 12 16.7 23.3a1 1 0 0 1-1.4 0L4 12' fill='none' stroke='%23222' stroke-width='4'/%3E%3C/svg%3E") right 14px center / 10px no-repeat; }
.mk-filterbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r, 10px); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.mk-filterbtn:hover { border-color: var(--ink); }
.mk-filterbtn span:not(:empty) { min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.mk-active { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 22px; }
.mk-active[hidden] { display: none; }
.mk-active button { border: 0; background: var(--chip); border-radius: var(--r, 10px); padding: 8px 14px; font-size: 14px; cursor: pointer; }
.mk-active button:hover { background: var(--line); }
.mk-active .mk-clear { background: none; text-decoration: underline; font-weight: 600; }
.mk-clear { border: 0; background: none; cursor: pointer; font-weight: 600; text-decoration: underline; font-size: 15px; padding: 8px 0; }
.mk-moreres { grid-column: 1 / -1; text-align: center; padding: 20px 0 0; }
.mk-moreres p { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.mk-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
.mk-empty h3 { font-size: 22px; margin: 0 0 8px; }
.mk-empty p { color: var(--ink-2); margin: 0 auto 22px; max-width: 420px; }
.mk-fgroup { padding: 24px 0; border-bottom: 1px solid var(--line); }
.mk-fgroup h4 { margin: 0 0 14px; font-size: 18px; }
.mk-fpills { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-drawer-foot { position: sticky; bottom: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); margin-top: 4px; }
.mk-drawer-foot .mk-clear { flex: none; white-space: nowrap; }
.mk-drawer-foot .btn { flex: 0 1 auto; min-width: 0; }

.mk-timer { white-space: nowrap; }
.mk-timer b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- Explore all (home) and browse: sidebar + results ---------- */
.mk-explore { padding-top: 48px; margin-top: 8px; border-top: 1px solid var(--line); }
.mk-explore-head h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.mk-explore-head p { margin: 0 0 28px; color: var(--ink-2); }
.mk-explore-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; align-items: start; }
.mk-fside { position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.mk-fside-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 4px; }
.mk-fside-head h3 { margin: 0; font-size: 18px; }
.mk-fside-head .mk-clear { font-size: 14px; }
.mk-sgroup { padding: 18px 0; border-top: 1px solid var(--line); }
.mk-sgroup h4 { margin: 0 0 10px; font-size: 15px; }
.mk-fcheck { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; line-height: 1.3; }
.mk-fcheck input { position: absolute; opacity: 0; pointer-events: none; }
.mk-fcheck .box { flex: none; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.mk-fcheck:hover .box { border-color: var(--ink); }
.mk-fcheck input:checked + .box { background: var(--ink); border-color: var(--ink); }
.mk-fcheck input:checked + .box::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.mk-fcheck input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.mk-fcheck .lab { flex: 1; min-width: 0; }
.mk-fcheck em { font-style: normal; color: var(--ink-2); font-size: 13px; }
.mk-fcheck.is-zero { color: #b0b0b0; }
.mk-fcheck > svg, .mk-fcheck > span.mk-sicon { flex: none; }
.mk-more { border: 0; background: none; padding: 6px 0 0; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mk-main .mk-results-bar { min-height: 40px; }
.mk-nres { margin: 0; font-size: 18px; }
h1.mk-nres { font-size: 22px; }
.mk-main .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-explore-body .mk-filterbtn { display: none; }
@media (max-width: 1128px) {
  .mk-explore-body { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 950px) {
  .mk-explore-body { grid-template-columns: minmax(0, 1fr); }
  .mk-fside { display: none; }
  .mk-explore-body .mk-filterbtn { display: inline-flex; }
}

/* ---------- Listing page ---------- */
.mk-detail { max-width: 1180px; padding-top: 22px; padding-bottom: 20px; }
.mk-dtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.mk-dtop h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.mk-fulltitle { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); max-width: 820px; }
.mk-dacts { display: flex; gap: 4px; flex: none; }
.mk-linkbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.mk-linkbtn span { text-decoration: underline; }
.mk-linkbtn:hover { background: var(--chip); }
.mk-savebig svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 3; }
.mk-savebig.is-on svg { fill: var(--rose); stroke: var(--rose); }
.mk-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 420px; border-radius: 16px; overflow: hidden; }
.mk-gallery .mk-img.is-main { grid-row: 1 / 3; aspect-ratio: auto; border-radius: 0; height: 100%; }
.mk-gallery { grid-template-columns: 2fr 2fr; grid-template-rows: 1fr; }
.mk-gallery .mk-img.is-main { grid-row: 1; }
.mk-gside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-mix { flex: 1; background: var(--chip); padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
.mk-mix-head { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-mix-head b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.mk-mix-head span { font-size: 13px; color: var(--ink-2); }
.mk-mix-head.is-small b { font-size: 18px; }
.mk-mix-bar { display: flex; gap: 3px; height: 8px; }
.mk-mix-bar i { display: block; flex-basis: 0; border-radius: 99px; min-width: 6px; }
.mk-mix-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.mk-mix-legend li { display: flex; align-items: center; gap: 6px; }
.mk-mix-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mk-mix-legend b { color: var(--ink); font-weight: 600; }
.mk-mix-types { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-mix-types span { background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.mk-mix-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mk-gstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-gtile { background: var(--chip); padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.mk-gtile span { font-size: 12px; color: var(--ink-2); }
.mk-gtile b { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 80px; margin-top: 32px; }
.mk-dmain > * { padding: 30px 0; border-bottom: 1px solid var(--line-2); }
.mk-dmain > *:first-child { padding-top: 0; }
.mk-dmain > *:last-child { border-bottom: 0; }
.mk-dsum h2 { margin: 0; font-size: 22px; }
.mk-dsum p { margin: 4px 0 0; font-size: 16px; }
.mk-pickbox { display: flex !important; align-items: center; gap: 20px; border: 1px solid var(--line-2) !important; border-radius: 14px; padding: 20px 24px !important; margin: 26px 0; }
.mk-laurel { font-size: 18px; font-weight: 700; white-space: nowrap; }
.mk-pickbox p { margin: 0; font-size: 15px; color: var(--ink-2); }
.mk-host { display: flex; align-items: center; gap: 16px; }
.mk-av { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.mk-av svg { width: 22px; height: 22px; display: block; }
.mk-host b { display: block; font-size: 16px; }
.mk-host small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.mk-high { list-style: none; margin: 0; padding-left: 0; padding-right: 0; display: grid; gap: 22px; }
.mk-high li { display: flex; gap: 24px; align-items: flex-start; }
.mk-high svg { flex: none; margin-top: 2px; }
.mk-high b { display: block; font-size: 16px; }
.mk-high p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.mk-block h2 { margin: 0 0 20px; font-size: 22px; }
.mk-block p { margin: 0 0 12px; line-height: 1.6; }
.mk-lead { font-size: 18px; font-weight: 500; }
.mk-agents { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.mk-agents h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.02em; }
.mk-agents h2 { font-size: 16px; margin: 28px 0 8px; }
.mk-agents-lede { font-size: 17px; color: var(--ink-2); margin: 0; }
.mk-agents-p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.55; }
.mk-agents-p a { color: var(--ink); }
.mk-agent-prompt { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 28px; }
.mk-agent-prompt h2 { margin: 0 0 4px; }
.mk-agent-prompt p { margin: 0; color: var(--ink-2); font-size: 14px; }
.mk-agent-prompt .btn { flex: none; }
.mk-agent-text { margin-top: 12px; }
@media (max-width: 640px) { .mk-agent-prompt { flex-direction: column; align-items: stretch; } }
.mk-code { margin: 0; padding: 14px 16px; border-radius: 12px; background: #16181d; color: #e8eaf0; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; cursor: copy; }
.mk-inside-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mk-tree { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.mk-tree li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding: 9px 16px; border-top: 1px solid var(--line); }
.mk-tree li:first-child { border-top: 0; }
.mk-tree li.is-root { background: #f7f7f8; font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); padding-top: 8px; padding-bottom: 8px; }
.mk-tree-f { display: flex; align-items: center; gap: 10px; flex: 1 1 14em; min-width: 0; padding-left: 14px; }
.mk-tree-f > span { min-width: 0; overflow-wrap: anywhere; }
.mk-tree-f svg { flex: none; color: var(--ink-2); }
.mk-tree em { font-style: normal; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; margin-left: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mk-inside-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.mk-inside-facts div { display: flex; gap: 8px; font-size: 14px; }
.mk-inside-facts dt { color: var(--ink-2); }
.mk-inside-facts dd { margin: 0; }
.mk-inside .fine { margin-top: 10px; }
.mk-offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.mk-offers li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; }
.mk-offers svg { flex: none; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chips span { border: 1px solid var(--line-2); border-radius: var(--r, 10px); padding: 8px 14px; font-size: 14px; }
.mk-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.mk-specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mk-specs dt { font-size: 14px; color: var(--ink-2); }
.mk-specs dd { margin: 2px 0 0; font-size: 15px; }
.mk-side { position: relative; }
.mk-side-card { position: sticky; top: 112px; border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.mk-side-title { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.mk-side-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b0b0b0; border-radius: 12px; margin-bottom: 16px; }
.mk-side-box div { padding: 10px 14px; min-width: 0; }
.mk-side-box div:first-child { border-right: 1px solid #b0b0b0; }
.mk-side-box .full { grid-column: 1 / -1; border-top: 1px solid #b0b0b0; }
.mk-side-box span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mk-side-box b { display: block; font-size: 14px; font-weight: 400; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-side-note { margin: 12px 0 18px; text-align: center; font-size: 14px; color: var(--ink-2); }
.mk-side-steps { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; font-size: 15px; }
.mk-side-steps li { display: flex; justify-content: space-between; gap: 12px; }
.mk-side-steps span { text-decoration: underline; }
.mk-side-nda { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--chip); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.mk-side-nda svg { flex: none; margin-top: 1px; }
.mk-side-nda a { color: var(--ink); font-weight: 600; }
.mk-side-nda.is-on { background: #e7f6ee; color: #0b5c2a; }
/* Listing checks on the listing page */
.mk-checks-sum { color: var(--ink-2); }
.mk-checks-sum b { color: var(--ink); }
.mk-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.mk-checks li { display: flex; gap: 12px; align-items: flex-start; }
.mk-checks-i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.mk-checks .is-ok .mk-checks-i { background: #e7f6ee; color: var(--ok); }
.mk-checks .is-next .mk-checks-i { background: var(--chip); color: var(--muted); }
.mk-checks li b { display: block; font-size: 15px; }
.mk-checks small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
@media (max-width: 700px) { .mk-checks ul { grid-template-columns: 1fr; } }
.mk-side-foot { text-align: center; font-size: 14px; color: var(--ink-2); margin: 18px 0 0; }
.mk-detail > .mk-row { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line-2); }
.mk-detail .mk-track { grid-auto-columns: calc((100% - 48px) / 2); }

/* ---------- Drawer (saved) ---------- */
.mk-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); backdrop-filter: blur(2px); z-index: 80; }
.mk-drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-lg); z-index: 90; overflow: auto; animation: mk-in .22s ease-out; }
.mk-scrim[hidden], .mk-drawer[hidden] { display: none; }
@keyframes mk-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.mk-drawer-inner { padding: 26px 26px 30px; }
.mk-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mk-drawer-head h2 { font: 700 26px/1.15 var(--head); letter-spacing: -.025em; margin: 0; }
.mk-x { border: 0; background: var(--chip); color: var(--ink); width: 38px; height: 38px; border-radius: var(--r, 10px); cursor: pointer; font-size: 18px; flex: none; display: grid; place-items: center; transition: background .15s; }
.mk-x:hover { background: var(--line-2); }
.mk-sl { list-style: none; margin: 0 0 20px; padding: 0; }
.mk-sl li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mk-sl li div { flex: 1; min-width: 0; }
.mk-sl a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.mk-sl a:hover { text-decoration: underline; }
.mk-sl small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.mk-sl button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 2px 0; }

/* ---------- Request form (modal) ---------- */
.mk-modal { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .35); backdrop-filter: blur(3px); display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; align-items: center; padding: 24px; }
.mk-modal[hidden] { display: none; }
.mk-modal-panel { width: 100%; min-width: 0; max-height: calc(100vh - 48px); background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; overflow: hidden; animation: mk-up .22s ease-out; }
@keyframes mk-up { from { transform: translateY(12px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.mk-modal-panel form { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; }
.rq-head { padding: 28px 34px 0; }
.rq-top { display: flex; align-items: center; gap: 14px; }
.rq-top h2 { font: 700 22px/1.2 var(--head); letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.rq-opt { font: 600 12px/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; }
.rq-n { font-size: 14px; font-weight: 500; color: var(--muted); }
.rq-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0 16px; }
.rq-bar i { height: 6px; border-radius: 999px; background: var(--line); transition: background .3s; }
.rq-bar i.on { background: var(--navy); }
.rq-for { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--chip); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-for span { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 8px; }
.rq-body { padding: 20px 34px 8px; overflow: auto; flex: 1; min-height: 0; }
.rq-sub { color: var(--ink-2); margin: 0 0 20px; font-size: 17px; }
.rq-f { margin-bottom: 20px; }
.rq-l { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.rq-l em { color: var(--req); font-style: normal; }
.rq-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.rq-f.invalid input, .rq-f.invalid select, .rq-f.invalid textarea { border-color: var(--req); background: #eef3fd; }
.rq-f.invalid .mk-asks span, .rq-f.invalid .rq-seg { border-color: var(--req); }
.mk-asks { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-asks label { cursor: pointer; position: relative; }
.mk-asks input { position: absolute; opacity: 0; pointer-events: none; }
.mk-asks span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; font-size: 14px; font-weight: 500;
  border-radius: var(--r, 10px); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); transition: background .12s, border-color .12s;
}
.mk-asks span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid #b9bdca; background: #fff; flex: none; transition: all .12s; }
.mk-asks input[type=checkbox] + span::before { border-radius: 5px; }
.mk-asks input[type=radio] + span::before { border-radius: 50%; }
.mk-asks label:hover span { border-color: #b9bdca; }
.mk-asks input:checked + span { background: var(--chip); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-asks input[type=checkbox]:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5 5.5-5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--navy); }
.mk-asks input[type=radio]:checked + span::before { border: 5px solid var(--navy); }
.mk-asks input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.rq-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 14px; background: var(--chip); border: 1px solid transparent; }
.rq-seg label { cursor: pointer; position: relative; }
.rq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rq-seg span { display: block; text-align: center; padding: 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); transition: background .15s, box-shadow .15s; }
.rq-seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.rq-seg input:focus-visible + span { outline: 2px solid var(--navy-2); }
.rq-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 34px 26px; border-top: 1px solid var(--line); }
.rq-foot .btn { min-width: 120px; padding: 15px 26px; font-size: 15px; }
.mk-done { text-align: center; padding: 30px 10px 36px; }
.mk-modal .mk-done { padding: 10px 34px 40px; }
.mk-done .tick { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: var(--r, 10px); background: #e7f6ee; color: var(--ok); font-size: 28px; font-weight: 700; }
.mk-done h3 { font: 700 26px/1.15 var(--head); letter-spacing: -.02em; margin: 0 0 8px; }
.mk-done p { color: var(--ink-2); margin: 0 auto 24px; max-width: 380px; }

/* Toast */
.mk-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 130; padding: 12px 20px; border-radius: var(--r, 10px); background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); }
.mk-toast[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--chip); border-top: 1px solid var(--line-2); margin-top: 56px; }
.footer-inner { max-width: 1760px; margin: 0 auto; padding: 0 var(--gut); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 44px 0 36px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 14px; }
.footer-cols a, .footer-cols button { display: block; margin: 0 0 12px; padding: 0; border: 0; background: none; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left; }
.footer-cols a:hover, .footer-cols button:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line-2); padding: 24px 0; font-size: 14px; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .mk-inspire-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1128px) {
  :root { --gut: 40px; }
  .mk-tabs .ti { display: none; }
  .mk-dgrid { gap: 48px; grid-template-columns: minmax(0, 1fr) 330px; }
  .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  :root { --gut: 24px; }
  .nav-top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .mk-tabs a { padding: 10px 8px; font-size: 15px; }
  .mk-textbtn { display: none; }
  .mk-sb-cell { padding: 0 20px; }
  .mk-sb-panel.is-stack { left: 10%; }
  .mk-dgrid { grid-template-columns: minmax(0, 1fr); }
  .mk-side-card { position: static; }
  .mk-gallery { height: 340px; }
  .mk-inspire-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-trust { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 744px) {
  :root { --gut: 16px; --navh: 134px; }
  .nav-top { display: flex; flex-wrap: wrap; height: auto; padding: 12px var(--gut) 0; gap: 10px; }
  .nav-top .logo { display: none; }
  .mk-mini { display: inline-flex !important; flex: 1; min-width: 0; height: 52px; padding: 0 6px 0 20px; }
  .mk-mini > span:not(.mk-mini-m):not(.go), .mk-mini i { display: none; }
  .mk-mini-m { display: flex !important; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; padding: 0 !important; max-width: none !important; }
  .mk-mini-m b { font-size: 14px; font-weight: 600; }
  .mk-mini-m small { font-size: 12px; color: var(--ink-2); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mk-mini .go { width: 38px; height: 38px; }
  .mk-navright { order: 2; }
  .mk-round { width: 52px; height: 52px; }
  .mk-tabs { order: 3; width: 100%; display: flex !important; justify-content: space-around; gap: 0; padding: 4px 0 0; }
  .mk-tabs a { flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 4px 10px; }
  .mk-tabs .ti { display: grid; width: 30px; height: 30px; background: none; }
  .mk-tabs a.is-active .ti { background: none; }
  .mk-tabs a.is-active::after { bottom: 0; left: 20%; right: 20%; }
  .nav .mk-sb { display: none; }
  .nav.is-expanded { position: fixed; inset: 0; overflow: auto; background: var(--chip); }
  .nav.is-expanded .mk-tabs { display: none !important; }
  .nav.is-expanded .mk-mini, .nav.is-expanded .mk-navright { display: none !important; }
  .nav.is-expanded .mk-sb-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r, 10px); border: 1px solid var(--line-2); background: #fff; font-size: 20px; cursor: pointer; }
  .nav.is-expanded .mk-sb {
    display: flex; flex-direction: column; align-items: stretch; height: auto; width: auto; max-width: none; margin: 12px var(--gut) 40px;
    background: none !important; border: 0; box-shadow: none; gap: 12px;
  }
  .nav.is-expanded .mk-sb-cell { flex: none; height: auto; min-height: 64px; padding: 16px 20px; border-radius: 20px; background: #fff !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
  .nav.is-expanded .mk-sb-cell b { font-size: 14px; }
  .nav.is-expanded .mk-sb-cell input, .nav.is-expanded .mk-sb-cell > span, .nav.is-expanded .mk-sb-txt > span { font-size: 16px; }
  .nav.is-expanded .mk-sb-div { display: none; }
  .nav.is-expanded .mk-sb-last { padding-right: 12px; }
  .nav.is-expanded .mk-sb-clear { display: block; }
  .nav.is-expanded .mk-sb-go span { display: inline; }
  .nav.is-expanded .mk-sb-go { padding: 0 20px 0 16px; }
  .mk-sb-panel { position: static; width: auto !important; max-height: none; border-radius: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); padding: 20px; order: var(--po, 0); }
  .mk-sb-panel.is-sector { order: 1; } .mk-sb-panel.is-stack { order: 3; } .mk-sb-panel.is-size { order: 5; }
  .mk-sb > [data-cell="sector"] { order: 0; } .mk-sb > [data-cell="stack"] { order: 2; } .mk-sb > [data-cell="size"] { order: 4; }
  body.is-compact-route main.mk { padding-top: var(--navh); }
  .mk-row-head h2 { font-size: 18px; }
  .mk-arrows { display: none; }
  .mk-grid, .mk-picks .mk-grid, .mk-main .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mk-track, .mk-detail .mk-track { grid-auto-columns: 86%; gap: 16px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
  .mk-grid, .mk-picks .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mk-inspire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .mk-steps { grid-template-columns: minmax(0, 1fr); }
  .mk-results-bar { align-items: flex-start; flex-direction: column; }
  .mk-sort span { display: none; }
  .mk-dtop { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mk-dtop h1 { font-size: 22px; }
  .mk-gallery { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; margin: 0 calc(-1 * var(--gut)); border-radius: 0; }
  .mk-gallery .mk-img.is-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .mk-gside { padding: 0 var(--gut); }
  .mk-mix { border-radius: 12px; padding: 18px; }
  .mk-mix-head b { font-size: 22px; }
  .mk-gtile { border-radius: 12px; padding: 12px 14px; }
  .mk-gtile b { font-size: 14px; }
  .mk-offers, .mk-specs, .mk-stacklist { grid-template-columns: minmax(0, 1fr); }
  .mk-pickbox { flex-direction: column; align-items: flex-start; gap: 6px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .mk-modal { padding: 0; grid-template-columns: minmax(0, 1fr); align-items: end; }
  .mk-modal-panel { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .rq-head { padding: 22px 18px 0; }
  .rq-body { padding: 16px 18px 4px; }
  .rq-foot { padding: 14px 18px 18px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 32px 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Geography: regions open into the countries listings name */
.mk-georow { display: flex; align-items: center; gap: 4px; }
.mk-georow .mk-fcheck { flex: 1; }
.mk-geo-tog { flex: none; width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.mk-geo-tog:hover { background: var(--chip); color: var(--ink); }
.mk-geo-tog svg { transition: transform .15s; }
.mk-geo-tog.is-open svg { transform: rotate(180deg); }
.mk-geo-sub { margin: 0 0 6px 30px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.mk-geo-sub .mk-fcheck { font-size: 13.5px; padding: 5px 0; }
.mk-flag { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -3px; }
.mk-pill .mk-flag { margin-right: 6px; }
.mk-active .mk-flag { margin-right: 5px; width: 14px; height: 14px; vertical-align: -2px; }
.mk-geo-sublab { margin: 14px 0 8px; font-size: 13px; color: var(--ink-2); }

/* ---------- Request data (#/request) ---------- */
.mk-ask { max-width: 560px; margin: 0 auto; padding: 40px 0 80px; }
.mk-ask h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.02em; }
.mk-ask-lede { margin: 0 0 28px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.mk-ask-form { display: grid; gap: 18px; }
.mk-ask-form label span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.mk-ask-form input, .mk-ask-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.mk-ask-form input:focus, .mk-ask-form textarea:focus { outline: none; border-color: var(--ink); }
.mk-ask-form textarea { resize: vertical; min-height: 140px; }
.mk-ask-form .hp { position: absolute; left: -9999px; }
.mk-ask-form .btn { justify-self: start; }
.mk-ask-done h2 { margin: 0 0 8px; }
.mk-ask-done p { color: var(--ink-2); margin: 0 0 20px; }
.mk-side-price { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-side-price b { font-size: 30px; font-weight: 700; }
.mk-side-price span { font-size: 14px; color: var(--muted); }

/* Listing page: data distribution hero (replaces the chart cover) */
.mk-disthero { background: #f6f6f3; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.mk-dh-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #5f6572; letter-spacing: .01em; }
.mk-dh-bar { display: flex; gap: 3px; height: 56px; }
.mk-dh-bar i { display: flex; align-items: center; border-radius: 6px; min-width: 6px; overflow: hidden; font-style: normal; }
.mk-dh-bar b { color: #fff; font-size: 15px; font-weight: 700; padding-left: 10px; }
.mk-dh-bar b.dk { color: #0b0b0b; }
.mk-dh-rows { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; }
.mk-dh-rows li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; align-items: center; gap: 12px; font-size: 14px; color: #16191f; }
.mk-dh-rows .k { display: inline-flex; align-items: center; gap: 8px; }
.mk-dh-rows .k i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mk-dh-rows .t { height: 10px; background: #e9e8e3; border-radius: 3px; overflow: hidden; }
.mk-dh-rows .t i { display: block; height: 100%; border-radius: 3px; }
.mk-dh-rows .v { color: #5f6572; font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
@media (max-width: 760px) {
  .mk-disthero { padding: 18px 16px; }
  .mk-dh-bar { height: 44px; }
  .mk-dh-rows li { grid-template-columns: 120px minmax(0, 1fr) 70px; font-size: 13px; }
}
.mk-gallery .mk-img.is-main.mk-disthero { aspect-ratio: auto; height: auto; min-height: 100%; }
/* Top-right seller call to action (replaces the Request data / Get started text buttons). */

/* Phone nav: logo on the left; a round search button and "Sell your data" on the right. The nav
   stays the same while scrolling, and tapping the search button opens the full search panel. */
.mk-sell, .mk-mini-short { display: none; }
@media (max-width: 744px) {
  :root { --navh: 64px; }
  .nav-top { flex-wrap: nowrap; align-items: center; padding: 10px var(--gut); gap: 8px; }
  .nav-top .logo { display: inline-flex; flex: none; margin-right: auto; }
  .nav-top .logo-mark { height: 13px; }
  .mk-mini { flex: none !important; width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: var(--r, 10px); }
  .mk-mini .mk-mini-m { display: none !important; }
  .mk-mini { border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .mk-mini .go { width: 38px; height: 38px; margin: 0; }
  .mk-navright { flex: none; gap: 6px; }
  .mk-round { display: none; }
  .mk-sell {
    display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r, 10px);
    background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .nav-top .logo { max-width: 74px; }
  .nav-top .logo-mark { height: 10px; }
  .mk-sell { padding: 0 10px; font-size: 13px; }
}

/* Market map card in Daily picks: phones only. */
.mk-mapcard { display: none; }
@media (max-width: 744px) {
  .mk-mapcard { display: block; }
  .mk-mapsvg { aspect-ratio: 34 / 21; border-radius: 12px; overflow: hidden; background: #f1f0ec; }
  .mk-mapsvg svg { display: block; width: 100%; height: 100%; }
  .mk-mapsvg text { font-family: inherit; }
  .mk-mapcard .mk-card-body { padding-top: 12px; }
  .mk-mapsub { margin: 4px 0 12px; color: var(--ink-2); font-size: 14px; }
  .mk-mapbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--r, 10px); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
}

/* Laptop: the blue market map sits beside Daily picks. Phones get it as the last Daily picks card. */
.mk-mapwide { padding-top: 0; min-width: 0; }
.mk-mapwide .mw-map { height: 220px; }
.mk-mapwide .mw { min-height: 330px; } /* its drawn height, held while the data loads */
.mk-agentbox { margin-top: 10px; padding: 14px 16px; flex-wrap: nowrap; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.mk-agentbox h3 { margin: 0; font-size: 16px; font-weight: 600; }
.mk-agentbox p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.mk-agentbox-t { flex: 1; min-width: 0; }
.mk-agentbox-acts { display: flex; gap: 8px; flex: none; }
.mk-agentbox:has(.mk-agentbox-cmd:not([hidden])) { flex-wrap: wrap; }
.mk-agentbox-acts .btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.mk-agentbox-cmd { flex-basis: 100%; margin: 0; font-size: 12.5px; cursor: pointer; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 744px) { .mk-mapwide { display: none; } }

/* ---------- Laptop home: two halves per band ----------
   Band 1: Daily picks (scrolls inside its half) | market map.
   Band 2: "What are you looking for?" | 1-minute samples. */
.mk-duo > * { min-width: 0; }
@media (min-width: 951px) {
  .mk-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 30px; }
  .mk-home > .mk-duo:first-child { margin-top: 12px; }
  .mk-duo > .mk-row { margin-top: 0; }
  .mk-duo .mk-track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
  /* Daily picks: two rows of cards so the half is as tall as the map beside it; it still scrolls sideways. */
  .mk-home > .mk-duo .mk-track { grid-template-rows: auto auto; row-gap: 32px; }
  .mk-duo-2 { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
  .mk-secrow { display: none; }
  /* No cleared samples yet: the search box takes the whole band. */
  .mk-duo-2.is-solo { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 951px) and (max-width: 1180px) {
  .mk-duo .mk-track { grid-auto-columns: 100%; }
}

/* What are you looking for? */
.mk-looking { margin-top: 30px; padding: 32px; border-radius: 24px; background: var(--chip); }
.mk-duo > .mk-looking { margin-top: 0; }
.mk-looking h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.mk-looking p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.mk-looking-form { position: relative; }
.mk-looking-form textarea {
  display: block; width: 100%; min-height: 148px; resize: vertical; box-sizing: border-box;
  padding: 18px 20px 64px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.mk-looking-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.mk-looking-form button { position: absolute; right: 12px; bottom: 12px; height: 42px; padding: 0 20px; border: 0; border-radius: var(--r, 10px); background: var(--rose-grad); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.mk-looking-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mk-looking-tips button { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r, 10px); background: #fff; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.mk-looking-tips button:hover { color: var(--ink); border-color: var(--ink); }

/* 1-minute sample tag on a card */
.mk-1min {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: 6px; border: 0; border-radius: 6px;
  background: #e8f0fc; color: #1c5cab; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; position: relative; z-index: 2;
}
.mk-1min:hover { background: #d6e5fa; }

/* Lab sign-in for a 1-minute sample */
.mk-gate[hidden] { display: none; }
.mk-gate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.mk-gate-card { position: relative; width: 100%; max-width: 440px; padding: 32px; border-radius: 24px; background: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.mk-gate-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: var(--r, 10px); background: var(--chip); font-size: 18px; line-height: 1; cursor: pointer; }
.mk-gate-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #1c5cab; }
.mk-gate-body h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; padding-right: 32px; }
.mk-gate-body p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.mk-gate-form { display: grid; gap: 10px; }
.mk-gate-form input { height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; font: inherit; font-size: 16px; outline: none; box-sizing: border-box; width: 100%; }
.mk-gate-form input:focus { border-color: var(--ink); }
.mk-gate-form button, .mk-gate-req { height: 48px; border: 0; border-radius: var(--r, 10px); background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0 20px; }
.mk-gate-form button:disabled { opacity: .5; cursor: default; }
.mk-gate-note { min-height: 1.4em; margin: 2px 0 0 !important; font-size: 13px !important; color: #b42318 !important; }
.mk-gate-ok { color: var(--ink) !important; }

/* The count above Explore all corpora is gone on the home page; the sort stays. */
.mk-explore .mk-nres { display: none; }
.mk-explore .mk-results-bar { justify-content: flex-end; }
@media (max-width: 744px) {
  .mk-looking { padding: 22px 18px; border-radius: 20px; }
  .mk-looking h2 { font-size: 20px; }
  .mk-gate-card { padding: 26px 20px; }
}

/* ---------- listing: builder sheet (top of #/listing/<ref>) ---------- */
.mk-dacts { align-items: center; }
.mk-dacts .mk-dreq { height: 40px; padding: 0 18px; font-size: 14px; margin-right: 8px; }
.mk-sheet { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 40px; }
.mk-sheet-main { padding: 26px 28px 28px; min-width: 0; }
.mk-sheet-lead { margin: 0 0 18px; font-size: 18px; line-height: 1.45; font-weight: 500; }
.mk-sheet-mix .mk-dist-bar { height: 14px; }
.mk-sheet-mix .mk-dist-label { min-height: 20px; }
.mk-sheet-h { margin: 22px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mk-sheet-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.mk-sheet-parts li { min-width: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mk-sheet-parts li b { font-weight: 600; white-space: nowrap; }
.mk-sheet-sys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-sheet-sys li { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 6px; }
.mk-sheet-sys .mk-tool { width: 24px; height: 24px; }
.mk-sheet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-sheet-tags span, .mk-sheet-tags a { font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.mk-sheet-side { padding: 22px 26px; background: var(--chip); min-width: 0; }
.mk-sheet-side > .mk-sheet-h:first-child { margin-top: 0; }
.mk-sheet-facts { margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-content: start; }
.mk-sheet-facts div { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.07); min-width: 0; }
.mk-sheet-facts dt { font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.mk-sheet-facts dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mk-sheet-note { grid-column: 1 / -1; margin: 12px 0 0; font-size: 12px; color: var(--ink-2); }
@media (max-width: 1100px) { .mk-sheet { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .mk-sheet-main { padding: 20px 18px; }
  .mk-sheet-side { padding: 16px 18px; }
  .mk-sheet-parts { grid-template-columns: 1fr; }
  .mk-sheet-lead { font-size: 16px; }
  .mk-dacts .mk-dreq { margin-right: 0; }
}
.mk-sheet-mix .mk-sheet-h { margin-top: 0; }
.mk-sheet-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.mk-sheet-legend li { display: flex; align-items: center; gap: 6px; }
.mk-sheet-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mk-sheet-legend small { color: var(--ink-2); font-size: 12px; }

/* ---------- ticks on cards and the request bar ---------- */
.mk-cardhead { position: relative; }
.mk-ptick { margin-left: auto; flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.mk-ptick span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.mk-ptick:hover span { border-color: var(--ink-2); }
.mk-ptick.is-on span { background: var(--rose); border-color: var(--rose); }
.mk-ptick.is-on span::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.mk-ptick:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.mk-cardhead .mk-1min + .mk-ptick { margin-left: 8px; }
.mk-pickbar { position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); }
.mk-pickbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: var(--r, 10px); background: var(--ink, #222); color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.mk-pickbar-in p { margin: 0; font-size: 14px; }
.mk-pickbar-in .acts { display: flex; align-items: center; gap: 6px; }
.mk-pickbar-in .mk-linkbtn { color: #fff; }
.mk-pickbar-in .btn { height: 40px; padding: 0 18px; font-size: 14px; }
body.has-pickbar .mk-wrap { padding-bottom: 96px; }
@media (max-width: 720px) {
  .mk-pickbar { bottom: 12px; }
  .mk-pickbar-in { border-radius: 18px; padding: 10px 10px 10px 16px; }
  .mk-pickbar-in [data-pb="list"] { display: none; }
}

/* By the numbers and the history strip, top of the listing sheet's side column */
.mk-nums { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-nums li { background: #fff; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.mk-nums b { display: block; font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.mk-nums span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.3; overflow-wrap: anywhere; }
.mk-span { margin: 0 0 14px; }
.mk-span-bar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #cfe0fb, #2563eb); margin: 10px 0 6px; }
.mk-span-bar.is-live i { position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.mk-span-ticks { position: relative; height: 16px; font-size: 12px; color: var(--ink-2); }
.mk-span-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.mk-span-ticks span:first-child { transform: none; }
.mk-span-ticks span:last-child { transform: translateX(-100%); }

/* ---------- Explore as a list (#results): one line per corpus ---------- */
.mk-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); min-width: 0; max-width: 100%; container-type: inline-size; }
/* Columns: tick, corpus, data mix, systems, history, volume, team, availability, price. All fluid, so a
   row always fits the width it has; narrower lists drop the least useful columns instead of scrolling. */
.mk-lhead, .mk-lrow-link { display: grid; grid-template-columns: 28px minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, .6fr) minmax(0, 1.1fr) minmax(0, .6fr) minmax(0, .85fr) minmax(0, .8fr); gap: 0 12px; align-items: center; }
.mk-lhead { padding: 10px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); position: sticky; top: var(--nb, 72px); background: #fff; z-index: 2; }
.mk-lrow { border-bottom: 1px solid var(--line); }
.mk-lrow-link { padding: 10px 8px; text-decoration: none; color: inherit; font-size: 13.5px; border-radius: 10px; }
.mk-lrow-link:hover { background: var(--chip, #f5f5f5); }
.mk-lcell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ltick .mk-ptick { margin: 0; }
.mk-lname { display: flex; flex-direction: column; gap: 1px; white-space: normal; }
.mk-lname b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-lname small { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-lname .mk-1min { align-self: flex-start; margin-top: 3px; }
.mk-lmix { display: flex; flex-direction: column; gap: 4px; }
.mk-lmix-bar { display: flex; gap: 2px; height: 8px; }
.mk-lmix-bar i { display: block; min-width: 3px; border-radius: 3px; }
.mk-lmix-bar.is-empty i { flex: 1; background: var(--line); }
.mk-lmix small { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-lsys { display: flex; align-items: center; gap: 3px; }
.mk-lsys .mk-tool { width: 22px; height: 22px; flex: none; }
.mk-lsys .mk-tool svg, .mk-lsys .mk-tool img { width: 15px; height: 15px; }
.mk-lsys em, .mk-lsys small { font-style: normal; font-size: 12px; color: var(--ink-2); margin-left: 2px; }
.mk-lvol { font-weight: 600; }
.mk-lprice { color: var(--ink-2); }
.mk-lprice b { color: var(--ink); }
.mk-list .mk-moreres, .mk-list .mk-empty { margin-top: 24px; }
@container (max-width: 1040px) {
  .mk-lhead, .mk-lrow-link { grid-template-columns: 28px minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, .6fr) minmax(0, 1.1fr) minmax(0, .8fr); }
  .mk-lhead span:nth-child(7), .mk-lrow-link > :nth-child(7), .mk-lhead span:nth-child(8), .mk-lrow-link > :nth-child(8) { display: none; }
}
@container (max-width: 820px) {
  .mk-lhead, .mk-lrow-link { grid-template-columns: 28px minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .8fr); }
  .mk-lhead span:nth-child(4), .mk-lrow-link > :nth-child(4), .mk-lhead span:nth-child(5), .mk-lrow-link > :nth-child(5) { display: none; }
}
@container (max-width: 600px) {
  .mk-lhead { display: none; }
  .mk-lrow-link { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 4px; }
  .mk-lrow-link > :nth-child(3) { grid-column: 2 / -1; }
  .mk-lrow-link > :nth-child(9) { display: none; }
  .mk-lrow-link > :nth-child(6) { grid-row: 1; grid-column: 3; font-size: 12.5px; max-width: 130px; }
}

/* Sign-in: a nav button, and one card for Google or an emailed code. */
.mk-me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin-left: 4px; border: 1px solid var(--line-2); border-radius: var(--r, 10px); background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s; }
.mk-me:hover { background: var(--chip); }
.mk-me span { overflow: hidden; text-overflow: ellipsis; }
.mk-me.is-in { background: var(--chip); border-color: transparent; }
.mk-sig-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; transition: background .2s; }
.mk-sig-google:hover { background: var(--chip); }
.mk-sig-google:disabled { opacity: .6; cursor: default; }
.mk-sig-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3, #6a6a6a); font-size: 13px; }
.mk-sig-or::before, .mk-sig-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mk-gate-body .mk-sig-fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-3, #6a6a6a); }
.mk-sig-back, .mk-sig-long { border: 0; background: none; padding: 0; margin-top: 12px; font: inherit; font-size: 13px; color: #1c5cab; text-decoration: underline; cursor: pointer; }
.mk-sig-long { margin: 0; }
.mk-qr textarea { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; font: inherit; font-size: 15px; resize: vertical; outline: none; width: 100%; box-sizing: border-box; }
.mk-qr textarea:focus { border-color: var(--ink); }
.mk-qr-list { margin: -6px 0 16px; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 744px) { .mk-me { width: 36px; height: 36px; padding: 0; margin: 0; justify-content: center; } .mk-me span { display: none; } }

/* ---------- Phones: nothing wider than the screen, and requesting is always one tap away ---------- */
.mk-detail, .mk-dtop > div:first-child { min-width: 0; }
.mk-dtop h1, .mk-fulltitle { overflow-wrap: anywhere; }
.mk-mbar { display: none; }
@media (max-width: 720px) {
  .mk-sheet-parts li { align-items: baseline; }
  .mk-sheet-parts li span { min-width: 0; }
  .mk-sheet-parts li b { white-space: normal; text-align: right; max-width: 48%; overflow-wrap: break-word; }
  .mk-sheet-facts { grid-template-columns: minmax(0, 1fr); }
  .mk-span-ticks span:nth-child(even) { display: none; }
  .mk-dacts { flex-wrap: wrap; row-gap: 8px; }
  /* The buttons at the top move to a bar pinned to the bottom of the screen. */
  .mk-dacts .mk-dreq { display: none; }
  .mk-mbar {
    display: flex; gap: 8px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mk-mbar .btn { flex: 1; height: 48px; font-size: 15px; justify-content: center; }
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .mk-pickbar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .nav-top { gap: 6px; }
  .mk-sell { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 350px) { .mk-sell { display: none !important; } }

/* Licence choice in the one-click request: two tiles, non-exclusive ticked by default. */
.mk-qr-lic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-qr-lic label { position: relative; cursor: pointer; }
.mk-qr-lic input { position: absolute; opacity: 0; pointer-events: none; }
.mk-qr-lic span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mk-qr-lic b { font-size: 14.5px; }
.mk-qr-lic small { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.mk-qr-lic input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-qr-lic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.mk-gate-body .mk-qr-lic-only { margin: 0; font-size: 13px; color: var(--ink-2); }
.mk-side-box .full b { white-space: normal; }
.mk-side-prices { margin: 0 0 12px; display: grid; gap: 6px; }
.mk-side-prices .mk-side-price { margin: 0; }
.mk-side-price.is-ex b { font-size: 22px; }
.mk-side-ex { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.mk-side-add, .mk-side-contact { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mk-side-add.is-on { border-color: var(--ink); }
.mk-contact { display: inline-flex; align-items: center; gap: 6px; }
.mk-mbar .mk-mbar-mail { flex: 0 0 auto; width: 52px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mk-mbar .btn { min-width: 0; padding: 0 10px; white-space: nowrap; font-size: 14px !important; }
/* The compact nav's height, for sticky headers. Fixed here so scrolling never rewrites it. */
:root { --nb: 73px; }
@media (max-width: 744px) { :root { --nb: 61px; } }
/* ---- 4 Nov polish ---- */
.mk-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.mk-back:hover { color: var(--ink); }
.mk-lname-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-lname-top b { min-width: 0; }
.mk-lname-top .mk-1min { flex: none; margin: 0; padding: 2px 7px; font-size: 11px; }
/* The toast and the request bar never sit on top of each other or of the page's last lines. */
body.has-pickbar .mk-toast { bottom: 104px; }
body.has-pickbar main.mk { padding-bottom: 96px; }
.mk-pickbar-in .acts { flex-wrap: nowrap; }
.mk-track { align-items: start; }
/* Phones: the market-map tile at the end of a row is kept to the height of the cards beside it. */
.mk-track .mk-mapcard .mk-mapsvg { aspect-ratio: auto; height: 120px; }
.mk-track .mk-mapcard .mk-mapsvg svg { height: 120px; }
/* ---- For environment builders ---- */
.mk-env { margin: 28px 0 8px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fbfaf8; }
.mk-env-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.mk-env-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mk-env-head h2 { margin: 0; font-size: 22px; }
.mk-env-stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.mk-env-stats > div { min-width: 150px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mk-env-stats dt { font-size: 11.5px; color: var(--ink-2); }
.mk-env-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.mk-env-stats small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); margin-top: 1px; max-width: 190px; }
.mk-env-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-env-card { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.mk-env-card.is-wide { grid-column: 1 / -1; }
.mk-env-card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mk-env-card p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.mk-env-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.mk-env-list li { padding-left: 14px; position: relative; }
.mk-env-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.mk-env-list.is-check li::before { width: 8px; height: 4px; border-radius: 0; background: none; border-left: 1.6px solid #2a7a3a; border-bottom: 1.6px solid #2a7a3a; transform: rotate(-45deg); top: .45em; left: 1px; }
.mk-env-traces { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mk-env-chain { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; font-size: 13px; }
.mk-env-chain li { padding: 4px 10px; border-radius: 999px; background: #f2f1ee; white-space: nowrap; }
.mk-env-chain li + li { margin-left: 18px; position: relative; }
.mk-env-chain li + li::before { content: "→"; position: absolute; left: -15px; top: 4px; color: var(--ink-2); }
.mk-env-note { margin-top: 10px !important; font-size: 12.5px !important; color: var(--ink-2); }
.mk-env-card.is-task { grid-column: 1 / -1; background: #f3f6fd; border-color: #dbe5f8; }
.mk-env-prompt { font-size: 15.5px !important; font-weight: 500; }
.mk-env-graded { margin-top: 10px !important; font-size: 13.5px !important; color: var(--ink-2); }
.mk-env-graded b { color: var(--ink); margin-right: 4px; }
.mk-env > .fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 900px) {
  .mk-env { padding: 18px; }
  .mk-env-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-env-card.is-wide, .mk-env-card.is-task { grid-column: auto; }
  .mk-env-stats > div { min-width: 0; flex: 1 1 140px; }
}
/* ---- Licensing and trust ---- */
.mk-legal { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-2, #e6e3de); }
.mk-legal h2 { margin: 0; font-size: 22px; }
.mk-legal-sub { margin: 4px 0 20px; color: var(--ink-2); font-size: 15px; }
.mk-legal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; }
.mk-legal-card { position: relative; overflow: hidden; padding: 108px 22px 22px; border-radius: 12px; background: #f6f5f2; display: flex; flex-direction: column; justify-content: flex-start; }
.mk-legal-card svg { position: absolute; right: 14px; top: 14px; width: 96px; height: auto; color: #cfccc5; }
.mk-legal-n { position: absolute; left: 22px; top: 18px; font-size: 13px; color: #b5b1aa; }
.mk-legal-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; position: relative; }
.mk-legal-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); position: relative; }
.mk-legal-card a { color: inherit; }
@media (max-width: 900px) { .mk-legal-grid { grid-template-columns: minmax(0, 1fr); } .mk-legal-card { padding-top: 92px; } .mk-legal-card svg { width: 80px; } }

/* Approved buyers (marketplace/buyer.js): 1-minute sample viewer, account, catalogue */
.mk-side-price.is-ask b { font-size: 22px; }
.mk-side-excl { margin: -4px 0 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mk-side-req2 { margin-top: 8px; }
.mk-buyerbtn.is-on { background: var(--chip); }
.mk-gate-card.is-wide { max-width: 920px; }
.mk-gate-wait { color: var(--muted) !important; }
.mk-gate-req { margin-top: 2px; }
.mk-gate-line { height: 48px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.mk-gate-form textarea { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; font: inherit; font-size: 15px; resize: vertical; outline: none; width: 100%; box-sizing: border-box; }
.mk-gate-form textarea:focus { border-color: var(--ink); }
.mk-smp-wrap { max-height: 46vh; overflow: auto; margin: 0 0 10px; border: 1px solid var(--line-2); border-radius: 14px; }
.mk-smp { border-collapse: collapse; font-size: 12.5px; line-height: 1.35; min-width: 100%; }
.mk-smp th, .mk-smp td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-smp th { position: sticky; top: 0; background: #f6f6f4; font-weight: 600; }
.mk-smp-cap, .mk-smp-file { margin: 0 0 14px !important; font-size: 13px !important; color: var(--muted) !important; }
.mk-smp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-smp-fine { margin: 0 !important; font-size: 12.5px !important; color: var(--muted) !important; }
.mk-acct-status { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.mk-acct-status li { padding-left: 24px; position: relative; color: var(--ink-2); }
.mk-acct-status li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #c5cbd5; }
.mk-acct-status li.is-ok::before { background: #2e9a62; }
.mk-acct-h { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 600; color: var(--ink) !important; }
.mk-acct-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: 180px; overflow: auto; display: grid; gap: 6px; font-size: 14px; }
.mk-acct-list li { display: flex; justify-content: space-between; gap: 10px; }
.mk-acct-list small { color: var(--muted); }
.mk-acct-empty { font-size: 14px !important; }
.mk-acct-note { margin-bottom: 14px; }
@media (max-width: 640px) { .mk-smp-acts > * { flex: 1 1 100%; } }
.mk-gate { grid-template-columns: minmax(0, 1fr); }
.mk-gate-card { min-width: 0; max-height: calc(100vh - 32px); overflow: auto; justify-self: center; }
.mk-catbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--r, 10px); background: #f6f6f4; }
.mk-catbar h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.mk-catbar p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 640px; }
@media (max-width: 640px) { .mk-catbar { padding: 16px; } .mk-catbar .btn { width: 100%; } }
/* A priced card with a badge and a sample tag wraps instead of running into the next card. */
.mk-cardhead { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.mk-cardhead .mk-1min { margin-left: 0; }

/* Catalogue: a slim bar at the top (Erik, 5 Nov). */
.mk-catbar { padding: 10px 12px 10px 18px; margin: 0 0 18px; gap: 12px; }
.mk-catbar p { font-size: 15px; color: var(--ink-2); }
.mk-catbar p b { color: var(--ink); font-weight: 600; }
.mk-catbar .btn { padding: 9px 16px; font-size: 14.5px; }

/* Compact cards for the priced and sample rows, so far more listings show at once (Erik, 5 Nov).
   The market map beside them keeps its size. */
.mk-compact .mk-track { grid-auto-columns: 200px; gap: 16px; }
.mk-duo .mk-compact .mk-track { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; row-gap: 20px; }
.mk-compact .mk-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--r, 10px); background: #fff; }
.mk-compact .mk-dist-label { display: none; }
.mk-compact .mk-dist-bar { height: 8px; gap: 2px; }
.mk-compact .mk-dist-bar i { min-width: 3px; border-radius: 3px; }
.mk-compact .mk-cardhead { margin-top: 8px; min-height: 0; gap: 6px; }
.mk-compact .mk-cardprice { font-size: 20px; }
.mk-compact .mk-cardprice.is-none { font-size: 14px; }
.mk-compact .mk-cardhead .mk-badge { font-size: 11px; padding: 2px 6px; }
.mk-compact .mk-1min { height: 20px; padding: 0 7px; font-size: 11px; }
.mk-compact .mk-ptick { width: 24px; height: 24px; }
.mk-compact .mk-ptick span { width: 16px; height: 16px; }
.mk-compact .mk-card .mk-card-body { padding-top: 4px; }
.mk-compact .mk-card .mk-card-body h3 { font-size: 14.5px; line-height: 1.3; }
.mk-compact .mk-sub { font-size: 12.5px; }
.mk-compact .mk-sub .emp { display: none; }
.mk-compact .mk-tools { display: none; }
.mk-compact .mk-meta { font-size: 12.5px; margin-top: 4px; }
@media (min-width: 951px) and (max-width: 1180px) { .mk-duo .mk-compact .mk-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .mk-compact .mk-track, .mk-duo .mk-compact .mk-track { grid-auto-columns: 46%; gap: 10px; } .mk-catbar p { flex: 1 1 100%; } }
@media (min-width: 951px) { .mk-duo .mk-compact .mk-track { grid-template-rows: auto auto auto; } }
@media (max-width: 640px) {
  .mk-compact .mk-cardhead .mk-badge { display: none; }
  .mk-compact .mk-cardhead { padding-right: 26px; }
  .mk-compact .mk-ptick { position: absolute; top: 0; right: 0; }
}

/* ---------- Phones (Erik, 5 Nov): small borderless cards that scroll along, more to a screen ---------- */
.mk-pickbar-in p { white-space: nowrap; }
@media (max-width: 640px) {
  .mk-pickbar-in .pb-more { display: none; }
  .mk-pickbar-in { padding: 8px 8px 8px 16px; }
  .mk-home .mk-row { margin-top: 28px; }
  .mk-home .mk-row-head { margin-bottom: 10px; }
  .mk-home .mk-row-head h2 { font-size: 18px; }
  .mk-home .mk-row-head p { font-size: 13.5px; }
  .mk-home .mk-arrows { display: none; }
  .mk-home .mk-track, .mk-home .mk-compact .mk-track { grid-auto-columns: 40%; gap: 14px; grid-template-rows: none; }
  .mk-home .mk-card, .mk-home .mk-compact .mk-card { padding: 0; border: 0; background: none; border-radius: 0; }
  .mk-home .mk-dist-label { display: none; }
  .mk-home .mk-dist-bar { height: 6px; gap: 2px; }
  .mk-home .mk-dist-bar i { min-width: 3px; border-radius: 3px; }
  .mk-home .mk-cardhead { margin-top: 8px; min-height: 0; gap: 4px; padding-right: 24px; flex-wrap: wrap; }
  .mk-home .mk-cardprice { font-size: 18px; }
  .mk-home .mk-cardprice.is-none { font-size: 13px; }
  .mk-home .mk-cardhead .mk-badge { display: none; }
  .mk-home .mk-1min { height: 18px; padding: 0 6px; font-size: 10.5px; margin: 0; }
  .mk-home .mk-ptick { position: absolute; top: 0; right: 0; width: 22px; height: 22px; }
  .mk-home .mk-ptick span { width: 16px; height: 16px; }
  .mk-home .mk-card .mk-card-body { padding-top: 2px; }
  .mk-home .mk-card .mk-card-body h3 { font-size: 13.5px; line-height: 1.3; }
  .mk-home .mk-sub { font-size: 12px; }
  .mk-home .mk-sub .emp, .mk-home .mk-tools { display: none; }
  .mk-home .mk-meta { font-size: 12px; margin-top: 2px; }
  /* The market map card stays, sized to the row so it leaves no gap. */
  .mk-home .mk-track .mk-mapcard .mk-mapsvg, .mk-home .mk-track .mk-mapcard .mk-mapsvg svg { height: 70px; }
  .mk-home .mk-track .mk-mapcard .mk-card-body h3 { font-size: 13.5px; }
  .mk-home .mk-track .mk-mapcard .mk-mapsub { display: none; }
  .mk-catbar { padding: 12px; margin-bottom: 4px; }
  .mk-catbar p { font-size: 14px; }
}

/* Locked marketplace (signed out, or not qualified yet): marketplace.js gateView() */
body.is-gated #shortlistBtn, body.is-gated .mk-navright a[href="#/request"] { display: none !important; }
.mk-lock { max-width: 1120px; margin: 0 auto; padding: 56px 24px 72px; }
.mk-lock-hero { max-width: 760px; }
.mk-lock-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3b82f6; }
.mk-lock-hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.mk-lock-hero > p { margin: 0; font-size: 17px; line-height: 1.6; opacity: .78; }
.mk-lock-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.mk-lock-btn, .mk-lock-line { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.mk-lock-btn { color: #fff; background: #3b82f6; }
.mk-lock-btn:hover { background: #2563eb; }
.mk-lock-line { color: inherit; border: 1px solid rgba(127, 127, 127, .35); }
.mk-lock-how { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; padding: 0; counter-reset: h; }
.mk-lock-how li { padding: 14px 16px; border: 1px solid rgba(127, 127, 127, .22); border-radius: 14px; counter-increment: h; }
.mk-lock-how li::before { content: counter(h); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #93c5fd; background: rgba(59, 130, 246, .16); }
.mk-lock-how b { display: block; font-size: 14px; }
.mk-lock-how span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; opacity: .7; }
.mk-lock-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.mk-lock-steps li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid rgba(127, 127, 127, .22); border-radius: 12px; }
.mk-lock-steps li > span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid rgba(127, 127, 127, .4); }
.mk-lock-steps li.is-ok > span { color: #08080a; background: #34d399; border-color: #34d399; }
.mk-lock-steps b { display: block; font-size: 14px; }
.mk-lock-steps small { display: block; margin-top: 2px; font-size: 13px; opacity: .7; line-height: 1.45; }
.mk-lock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 44px 0 0; border: 1px solid rgba(127, 127, 127, .22); border-radius: 16px; overflow: hidden; background: rgba(127, 127, 127, .22); }
.mk-lock-stats > div { padding: 18px 20px; background: var(--mk-bg, #0b0b0e); }
.mk-lock-stats b { display: block; font-size: 28px; letter-spacing: -.02em; }
.mk-lock-stats span { display: block; margin-top: 2px; font-size: 13px; opacity: .65; }
.mk-lock-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.mk-lock-cats span { padding: 5px 11px; border-radius: 99px; font-size: 13px; background: rgba(127, 127, 127, .14); }
.mk-lock-wall { position: relative; margin: 28px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(127, 127, 127, .22); }
.mk-lock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; filter: blur(6px); opacity: .5; user-select: none; pointer-events: none; }
.mk-lock-ghost { height: 168px; border-radius: 14px; background: linear-gradient(160deg, rgba(127, 127, 127, .2), rgba(127, 127, 127, .06)); }
.mk-lock-ghost i { display: block; height: 10px; margin: 16px 16px 0; border-radius: 6px; background: rgba(127, 127, 127, .3); }
.mk-lock-ghost i:nth-child(2) { width: 55%; } .mk-lock-ghost i:nth-child(3) { width: 35%; margin-top: 60px; }
.mk-lock-veil { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(8, 8, 10, .6), rgba(8, 8, 10, .15)); }
.mk-lock-veil b { padding: 10px 16px; border-radius: 99px; font-size: 14px; color: #f4f4f5; background: rgba(8, 8, 10, .7); border: 1px solid rgba(255, 255, 255, .12); }
.mk-lock-fine { margin: 22px 0 0; font-size: 14px; opacity: .7; }
.mk-lock-fine a { color: inherit; }
@media (max-width: 860px) {
  .mk-lock { padding: 32px 18px 56px; }
  .mk-lock-how, .mk-lock-stats { grid-template-columns: 1fr 1fr; }
  .mk-lock-grid { grid-template-columns: 1fr 1fr; }
}

