/* grepped.ai/map. The marketplace design system (marketplace/polish.css): Inter and Inter Tight, one primary
   colour (Grepped cobalt) for actions and selection, neutral everything else. The data mix keeps its colours
   (the same kind colours as the listing chart and the covers): there colour is data. */
:root {
  --brand: #2f3fc6; --brand-hover: #2533a8; --brand-tint: #eef0fc; --brand-ring: rgba(47, 63, 198, .22);
  --ink: #16151a; --ink-2: #5c5b62; --muted: #8d8c93; --line: #ececee; --line-2: #dcdce0; --chip: #f4f4f6; --hover: #f7f7f8;
  --canvas: #f5f5f7; --region: rgba(232, 232, 237, .62);
  --shadow-sm: 0 1px 2px rgba(22, 21, 26, .05);
  --shadow: 0 1px 2px rgba(22, 21, 26, .04), 0 8px 24px rgba(22, 21, 26, .08);
  --shadow-lg: 0 2px 6px rgba(22, 21, 26, .06), 0 18px 44px rgba(22, 21, 26, .16);
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif; --head: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--canvas); overflow: hidden; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }

/* ---------- the canvas ---------- */
.mm-stage {
  position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background-color: var(--canvas);
  background-image: radial-gradient(circle, #d3d3da 1.05px, transparent 1.25px);
}
.mm-stage:active { cursor: grabbing; }
.mm-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .5s ease; }
body.is-ready .mm-world { opacity: 1; }
.mm-world.is-moving { will-change: transform; }
.mm-fail { position: fixed; top: 45%; left: 0; right: 0; text-align: center; color: var(--ink-2); }

/* A sector region */
.mm-cluster { position: absolute; border-radius: 40px; background: var(--region); box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .05); transition: opacity .25s; }
.mm-c-head { position: absolute; left: 30px; top: 26px; right: 30px; display: flex; align-items: baseline; gap: 14px; cursor: pointer; }
.mm-c-head h2 { margin: 0; font-family: var(--head); font-size: 32px; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.mm-c-head > span { color: var(--muted); font-size: 17px; font-weight: 500; white-space: nowrap; }
.mm-c-head .mm-bar { margin-left: auto; width: 180px; height: 8px; align-self: center; }

/* Stacked mix bar, used on cards, regions, badges and the panel */
.mm-bar { display: flex; height: 5px; border-radius: 99px; overflow: hidden; gap: 1.5px; background: transparent; }
.mm-bar i { display: block; min-width: 2px; }
.mm-bar.is-none { background: repeating-linear-gradient(90deg, #e3e3e7 0 4px, transparent 4px 7px); }

/* ---------- a mini card ---------- */
.mm-card {
  position: absolute; width: 208px; height: 156px; padding: 13px 14px 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), 0 1px 2px rgba(22, 21, 26, .05), 0 4px 12px rgba(22, 21, 26, .04);
  display: flex; flex-direction: column; cursor: grab; outline: none;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), opacity .25s;
}
.mm-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(22, 21, 26, .08), 0 4px 10px rgba(22, 21, 26, .07), 0 14px 30px rgba(22, 21, 26, .10); }
.mm-card:focus-visible { box-shadow: 0 0 0 3px var(--brand-ring), 0 0 0 1px var(--brand); }
.mm-card.is-sel { box-shadow: 0 0 0 2.5px var(--brand), 0 14px 32px rgba(47, 63, 198, .18); transform: translateY(-3px); }
.mm-card.is-lifted { opacity: .28; transform: scale(.96); box-shadow: 0 0 0 1.5px var(--line-2); }
.mm-card.is-lifted > * { visibility: hidden; }
.mm-card.is-lifted::after { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--line-2); border-radius: 10px; }
.mm-fill { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .3s; }
/* The data mix as a line: one stacked bar, the same chart as the listing page, with the top kinds under it */
.mm-c-mix { display: grid; gap: 7px; }
.mm-c-mix > .mm-bar { height: 10px; gap: 2px; border-radius: 4px; }
.mm-c-mix > .mm-bar i { border-radius: 2px; }
.mm-donut { flex: none; display: block; }
.mm-kinds { list-style: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 1px 10px; max-height: 31px; overflow: hidden; }
.mm-kinds li { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); line-height: 1.35; white-space: nowrap; min-width: 0; }
.mm-kinds li i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.mm-kinds li span { overflow: hidden; text-overflow: ellipsis; }
.mm-kinds li b { margin-left: 1px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.mm-kinds li.is-none span { color: var(--muted); white-space: normal; }
.mm-card h3 {
  margin: 10px 0 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.008em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mm-c-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mm-price { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mm-price.is-on b { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mm-price.is-on small { font-size: 11px; color: var(--muted); }
.mm-price.is-lock { align-items: center; color: var(--ink-2); background: var(--chip); border-radius: 7px; padding: 3px 7px 3px 5px; font-weight: 500; font-size: 11.5px; }
.mm-price.is-lock[data-signin] { cursor: pointer; }
.mm-price.is-lock[data-signin]:hover { color: var(--brand); background: var(--brand-tint); }
.mm-price svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mm-add {
  width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.mm-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.mm-add:active { transform: scale(.92); }
.mm-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mm-add .p-check { display: none; }
.mm-card.is-in .mm-add { background: var(--brand); border-color: var(--brand); color: #fff; }
.mm-card.is-in .mm-add .p-plus { display: none; }
.mm-card.is-in .mm-add .p-check { display: block; }
.mm-card.is-in::before {
  content: ""; position: absolute; inset: -1px; border-radius: 17px; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(47, 63, 198, .45);
}

/* ---------- zoom levels ---------- */
/* Mid: chart, title and price */
.mm-stage.is-mid .mm-kinds { display: none; }
.mm-stage.is-mid .mm-c-mix > .mm-bar { height: 16px; }
.mm-stage.is-mid .mm-card h3 { font-size: 16px; -webkit-line-clamp: 3; margin-top: 8px; }
.mm-stage.is-mid .mm-card:hover { transform: none; }
.mm-stage.is-mid .mm-c-head h2 { font-size: 40px; }
.mm-stage.is-mid .mm-c-head > span { font-size: 22px; }
/* Far: a mosaic, one tile per listing in its data-mix colours, and a badge per sector */
.mm-stage.is-far .mm-card { box-shadow: none; transform: none; transition: none; }
.mm-stage.is-far .mm-card > *:not(.mm-fill) { visibility: hidden; }
.mm-stage.is-far .mm-fill { opacity: 1; transition: none; }
.mm-stage.is-far .mm-card.is-in .mm-fill { box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .85); }
.mm-stage.is-far .mm-card.is-in::before { box-shadow: 0 0 0 10px var(--brand); }
.mm-stage.is-far .mm-c-head { visibility: hidden; }
.mm-stage.is-far .mm-cluster { background: rgba(225, 225, 231, .7); }
.mm-badges { position: absolute; inset: 0; pointer-events: none; }
.mm-badge {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; row-gap: 6px;
  padding: 9px 13px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, box-shadow .15s;
  max-width: 220px; text-align: left;
}
.mm-badge b { font-family: var(--head); font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-badge small { color: var(--muted); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-badge .mm-bar { grid-column: 1 / -1; height: 4px; }
.mm-badge:hover { box-shadow: var(--shadow-lg); }
.mm-stage.is-far .mm-badge { opacity: 1; visibility: visible; }

/* Search: matches stay, the rest fade back */
.mm-stage.is-filtering .mm-card:not(.is-hit) { opacity: .16; }
.mm-stage.is-filtering .mm-cluster:not(.has-hit) { opacity: .45; }
.mm-stage.is-filtering .mm-badge:not(.has-hit) { opacity: .5; }
.mm-stage.is-filtering.is-far .mm-card.is-hit .mm-fill { box-shadow: 0 0 0 8px #fff, 0 0 0 16px var(--ink); }

/* ---------- header ---------- */
.mm-top {
  position: fixed; left: 12px; right: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 20; height: 52px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow);
}
.mm-logo img { height: 17px; display: block; }
.mm-title { font-family: var(--head); font-weight: 650; font-size: 15px; letter-spacing: -.01em; padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 18px; }
.mm-search {
  flex: 1; min-width: 0; max-width: 420px; margin-left: 10px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--chip); border-radius: 10px; transition: background .15s, box-shadow .15s;
}
.mm-search:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px var(--brand-ring); }
.mm-search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.mm-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); }
.mm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mm-search-n { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-chip {
  height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.mm-chip:hover { background: var(--hover); }
.mm-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.mm-link { margin-left: auto; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 6px; }
.mm-link:hover { color: var(--ink); }
.mm-acct { height: 36px; min-width: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(22, 21, 26, .12), inset 0 1px 0 rgba(255, 255, 255, .12); }
.mm-acct:hover { background: var(--brand-hover); }
.mm-acct.is-in { padding: 0; width: 36px; border-radius: 50%; }

/* Sectors list */
.mm-pop {
  position: fixed; z-index: 30; top: calc(max(12px, env(safe-area-inset-top)) + 60px); left: 50%; transform: translateX(-50%);
  width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 180px)); overflow: auto; padding: 8px;
  background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow-lg); animation: mm-pop .18s var(--ease);
}
@keyframes mm-pop { from { opacity: 0; transform: translate(-50%, -6px); } }
.mm-pop-h { margin: 8px 10px 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mm-pop ul { list-style: none; margin: 0; padding: 0; }
.mm-pop li button {
  width: 100%; border: 0; background: none; border-radius: 10px; padding: 9px 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; text-align: left;
}
.mm-pop li button:hover { background: var(--hover); }
.mm-pop li span { font-weight: 500; font-size: 14px; }
.mm-pop li small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mm-pop li .mm-bar { grid-column: 1 / -1; height: 4px; }
.mm-pop-all { width: 100%; margin-top: 4px; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 10px 8px; text-align: left; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- map controls ---------- */
.mm-zoom {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow); overflow: hidden;
}
.mm-zoom button { width: 38px; height: 38px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.mm-zoom button + button { border-top: 1px solid var(--line); }
.mm-zoom button:hover { background: var(--hover); color: var(--ink); }
.mm-zoom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.has-detail .mm-zoom { right: 412px; }

.mm-mini {
  position: fixed; left: 16px; bottom: 16px; z-index: 15; width: 176px; height: 124px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow); cursor: crosshair; touch-action: none;
}
.mm-mini svg { width: 100%; height: 100%; display: block; }
.mm-legend {
  position: fixed; left: 16px; bottom: 152px; z-index: 15; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 176px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow-sm); font-size: 11.5px; color: var(--ink-2);
}
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mm-legend i { width: 8px; height: 8px; border-radius: 2px; }

.mm-hint {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 14; margin: 0; padding: 9px 14px; border-radius: 12px;
  background: rgba(22, 21, 26, .86); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.mm-hint.is-out { opacity: 0; transform: translate(-50%, 8px); }

/* ---------- the buy bucket ---------- */
.mm-bucket {
  position: fixed; right: 16px; bottom: 16px; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; min-width: 230px;
  border: 0; border-radius: 20px; background: #fff; text-align: left; box-shadow: 0 0 0 1px rgba(22, 21, 26, .07), var(--shadow-lg);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s; transform-origin: 100% 100%;
}
.mm-bucket:hover { transform: translateY(-2px); }
.mm-bucket-ico { position: relative; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); display: grid; place-items: center; flex: none; transition: background .2s, transform .25s var(--ease); }
.mm-bucket-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.mm-bucket-ico .b-handle { transform-origin: 24px 17px; transition: transform .3s var(--ease); }
.mm-bucket-ico i {
  position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff;
  font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums;
}
.mm-bucket:not(.has-items) .mm-bucket-ico i { background: #b4b4bb; }
.mm-bucket-t { display: grid; gap: 1px; min-width: 0; }
.mm-bucket-t b { font-family: var(--head); font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.mm-bucket-t small { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-bucket-dots { display: flex; margin-left: auto; padding-left: 6px; }
.mm-bucket-dots i { width: 18px; height: 18px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; margin-left: -6px; }
/* While a card is in the air */
body.is-dragging .mm-bucket { transform: scale(1.06); box-shadow: 0 0 0 2px var(--brand), 0 0 0 8px rgba(47, 63, 198, .12), var(--shadow-lg); animation: mm-breathe 1.2s ease-in-out infinite; }
body.is-dragging .mm-bucket-ico .b-handle { transform: rotate(-24deg) translateY(-2px); }
@keyframes mm-breathe { 50% { box-shadow: 0 0 0 2px var(--brand), 0 0 0 14px rgba(47, 63, 198, .08), var(--shadow-lg); } }
.mm-bucket.is-over { transform: scale(1.13) !important; background: var(--brand); color: #fff; animation: none !important; }
.mm-bucket-drop, .mm-bucket-drop span { display: none; }
body.is-dragging #bucketS { display: none; }
body.is-dragging .mm-bucket-drop { display: block; color: var(--brand); font-weight: 600; }
body.is-dragging .mm-bucket-drop .d1 { display: inline; }
.mm-bucket.is-over .mm-bucket-drop { color: #fff; }
.mm-bucket.is-over .mm-bucket-drop .d1 { display: none; }
.mm-bucket.is-over .mm-bucket-drop .d2 { display: inline; }
.mm-bucket.is-over .mm-bucket-ico { background: rgba(255, 255, 255, .16); transform: scale(1.08); }
.mm-bucket.is-over .mm-bucket-ico svg { stroke: #fff; }
.mm-bucket.is-over .mm-bucket-ico .b-handle { transform: rotate(-40deg) translateY(-3px); }
.mm-bucket.is-bump .mm-bucket-ico { animation: mm-bump .5s var(--ease); }
@keyframes mm-bump { 30% { transform: scale(1.22) rotate(-6deg); } 60% { transform: scale(.94) rotate(3deg); } }
body.is-dragging .mm-card:hover { transform: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

/* The card in the air */
.mm-ghostlayer { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.mm-ghost { position: absolute !important; margin: 0; cursor: grabbing; transition: transform .16s var(--ease), box-shadow .2s, opacity .2s; will-change: transform; }
.mm-ghost.is-up { box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), 0 24px 50px rgba(22, 21, 26, .26), 0 6px 14px rgba(22, 21, 26, .10); transition: transform .06s linear, box-shadow .2s; }
.mm-ghost.is-over { box-shadow: 0 0 0 2.5px var(--brand), 0 20px 40px rgba(47, 63, 198, .3); }
.mm-ghost.is-drop { transition: transform .3s cubic-bezier(.5, 0, .75, 0), opacity .3s; opacity: .3; }
.mm-ghost.is-back { transition: transform .28s var(--ease), box-shadow .28s; box-shadow: var(--shadow-sm); }
.mm-ghost.is-fly { transition: transform .45s cubic-bezier(.5, 0, .3, 1), opacity .45s; box-shadow: var(--shadow-lg); }
.mm-ghost .mm-fill { display: none; }
.mm-ghost > * { visibility: visible !important; }

/* ---------- the selected card's panel ---------- */
.mm-detail {
  position: fixed; z-index: 22; right: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 64px); bottom: 104px; width: 380px;
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px rgba(22, 21, 26, .06), var(--shadow-lg); overflow: hidden;
}
.mm-detail.is-in { animation: mm-slide .32s var(--ease); }
@keyframes mm-slide { from { opacity: 0; transform: translateX(24px); } }
.mm-d-close { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(255, 255, 255, .9) !important; box-shadow: var(--shadow-sm); }
.mm-d-cover { flex: none; background: #f6f6f3; aspect-ratio: 4 / 3; max-height: 36%; display: grid; place-items: center; overflow: hidden; }
.mm-d-cover svg { width: 100%; height: 100%; display: block; }
.mm-d-body { flex: 1; overflow: auto; padding: 16px 20px 8px; }
.mm-d-cat { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.mm-detail h2 { margin: 0; font-family: var(--head); font-size: 21px; line-height: 1.22; letter-spacing: -.02em; font-weight: 650; }
.mm-d-price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mm-d-price b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mm-d-price span { color: var(--muted); font-size: 12.5px; }
.mm-d-price.is-ask span { color: var(--ink-2); font-size: 13.5px; }
.mm-d-head { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.mm-d-mix { margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--hover); }
.mm-d-mix .mm-bar { height: 8px; }
.mm-d-mix ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.mm-d-mix li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.mm-d-mix li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mm-d-mix li b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mm-d-facts { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mm-d-facts li { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: var(--chip); color: var(--ink-2); }
.mm-d-acts { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-d-acts .mm-linkbtn { grid-column: 1 / -1; justify-self: center; }

/* ---------- buttons ---------- */
.mm-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; letter-spacing: -.005em;
  box-shadow: 0 1px 2px rgba(22, 21, 26, .12), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .15s, transform .1s;
}
.mm-cta:hover { background: var(--brand-hover); }
.mm-cta:active { transform: scale(.98); }
.mm-cta:disabled { background: var(--line-2); box-shadow: none; }
.mm-cta.is-line { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.mm-cta.is-line:hover { background: var(--hover); }
.mm-cta.is-on { background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(47, 63, 198, .3); }
.mm-cta.is-on::before { content: ""; width: 14px; height: 8px; border-left: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.mm-linkbtn { border: 0; background: none; padding: 6px 4px; color: var(--brand); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.mm-linkbtn:hover { text-decoration: underline; }
.mm-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--chip); color: var(--ink-2); font-size: 20px; line-height: 1; display: grid; place-items: center; flex: none; }
.mm-x:hover { background: var(--line); color: var(--ink); }
.mm-ghostbtn { display: block; width: 100%; margin-top: 6px; border: 0; background: none; padding: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; border-radius: 10px; }
.mm-ghostbtn:hover { background: var(--hover); }
.mm-ghostbtn.is-strong { color: var(--brand); font-weight: 600; }

/* ---------- sheets ---------- */
.mm-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(22, 21, 26, .32); display: flex; align-items: center; justify-content: center; padding: 16px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: mm-fade .2s;
}
@keyframes mm-fade { from { opacity: 0; } }
.mm-sheet {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-lg); animation: mm-rise .28s var(--ease);
}
@keyframes mm-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.mm-kicker { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mm-sheet-h { margin: 0; font-family: var(--head); font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.mm-sheet-s { margin: 8px 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.mm-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.mm-note:empty { display: none; }
.mm-form { display: grid; gap: 8px; }
.mm-form input { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.mm-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.mm-status { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 8px; }
.mm-status li { padding: 10px 12px 10px 34px; border-radius: 12px; background: var(--hover); font-size: 14px; color: var(--ink-2); position: relative; }
.mm-status li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #c4c4ca; }
.mm-status li.ok { color: var(--ink); }
.mm-status li.ok::before { background: #1f9d63; }
.mm-done-cover { margin: -22px -22px 16px; aspect-ratio: 4 / 3; max-height: 240px; background: #f6f6f3; overflow: hidden; border-radius: 22px 22px 0 0; }
.mm-done-cover svg { width: 100%; height: 100%; display: block; }
.mm-done .mm-cta { width: 100%; }

/* The bucket sheet */
.mm-b-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mm-b-head > div { flex: 1; min-width: 0; }
.mm-b-head .mm-sheet-s { margin: 2px 0 0; font-size: 13.5px; }
.mm-b-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); display: grid; place-items: center; flex: none; }
.mm-b-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mm-b-list { list-style: none; margin: 0 -6px; padding: 0; max-height: 46vh; overflow: auto; }
.mm-b-list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; animation: mm-fade .25s; }
.mm-b-list li:hover { background: var(--hover); }
.mm-b-list li > div { flex: 1; min-width: 0; }
.mm-b-t { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-b-t:hover { color: var(--brand); }
.mm-b-list li .mm-bar { margin-top: 7px; height: 6px; gap: 1.5px; }
.mm-b-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-b-list .mm-x { width: 28px; height: 28px; font-size: 17px; background: none; }
.mm-b-list .mm-x:hover { background: var(--line); }
.mm-b-empty { display: block !important; padding: 26px 18px !important; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.5; border: 1.5px dashed var(--line-2); margin: 0 6px; }
.mm-b-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.mm-b-total b { font-size: 20px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mm-sheet.mm-bag .mm-cta { width: 100%; margin-top: 16px; }

.mm-toast {
  position: fixed; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 64px); transform: translateX(-50%); z-index: 60; padding: 9px 14px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-toast.is-in { animation: mm-toast .3s var(--ease); }
@keyframes mm-toast { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .mm-link { display: none; }
  .mm-search { margin-left: 4px; }
  .mm-chip span { display: none; }
  .mm-chip { padding: 0; width: 36px; justify-content: center; }
  .mm-acct { margin-left: auto; }
}
@media (max-width: 640px) {
  .mm-top { left: 8px; right: 8px; top: max(8px, env(safe-area-inset-top)); padding: 0 6px 0 12px; gap: 8px; border-radius: 14px; }
  .mm-title { display: none; }
  .mm-logo img { height: 14px; }
  .mm-search { height: 38px; padding: 0 10px; }
  .mm-search input { font-size: 16px; }
  .mm-badge { padding: 7px 10px 8px; border-radius: 12px; row-gap: 5px; column-gap: 6px; }
  .mm-badge b { font-size: 13px; }
  .mm-badge small { font-size: 11.5px; }
  .mm-search { max-width: none; }
  .mm-search-n { display: none; }
  .mm-zoom, .mm-mini, .mm-legend { display: none; }
  .mm-hint { bottom: calc(96px + env(safe-area-inset-bottom)); white-space: normal; width: max-content; max-width: calc(100vw - 40px); }
  .mm-bucket {
    left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); min-width: 0; border-radius: 20px; padding: 9px 14px 9px 9px; transform-origin: 50% 100%;
  }
  body.is-dragging .mm-bucket { transform: scale(1.03); }
  .mm-bucket.is-over { transform: scale(1.06) !important; }
  .mm-pop { top: calc(max(8px, env(safe-area-inset-top)) + 58px); }
  .mm-toast { top: calc(max(8px, env(safe-area-inset-top)) + 58px); }
  /* The panel becomes a sheet over the bucket */
  .mm-detail { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 64vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
  .mm-detail.is-in { animation: mm-up .34s var(--ease); }
  @keyframes mm-up { from { transform: translateY(40%); opacity: 0; } }
  .mm-d-cover { display: none; }
  .mm-d-body { padding-top: 18px; }
  .mm-detail h2 { font-size: 19px; padding-right: 36px; }
  .mm-overlay { align-items: flex-end; padding: 0; }
  .mm-sheet { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); max-height: 88vh; }
  .mm-done-cover { border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Exclusive price under the main price, smaller and greyed out, as on the November buyer PDF (Erik, 7 Nov). */
.mm-price.is-on { flex-direction: column; align-items: flex-start; gap: 1px; }
.mm-p-main { display: inline-flex; align-items: baseline; gap: 5px; }
.mm-price.is-on .mm-exprice, .mm-exprice { font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-price.is-on .mm-exprice b, .mm-exprice b { font-size: 12px; font-weight: 600; color: var(--muted); }
.mm-d-price .mm-exprice { flex-basis: 100%; font-size: 12.5px; }
.mm-d-price .mm-exprice b { font-size: 16px; }
