/* Market panel (js/market.js) — same ink/gold card as the clan panel. */
.mk-backdrop {
  display: none; position: fixed; inset: 0; z-index: 4100;
  background: rgba(8,5,2,.62); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.mk-backdrop.open { display: flex; animation: fadeIn .2s ease; }

.mk-card {
  position: relative;
  /* Fixed size: switching tabs never resizes the window. */
  width: 720px; max-width: 95vw; height: min(760px, 88vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, #1c1610 0%, #110e09 100%);
  border: 1px solid rgba(200,148,26,.3);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  color: #f2e6c9; font-family: 'Crimson Pro', Georgia, serif;
}

.mk-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(200,148,26,.18);
}
.mk-head-icon { font-size: 26px; }
.mk-head-text { flex: 1; min-width: 0; }
.mk-title {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: #f4c95d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-sub { font-size: 13px; color: rgba(192,221,151,.65); }
.mk-close {
  background: transparent; border: none; cursor: pointer;
  color: rgba(244,201,93,.6); font-size: 18px; padding: 6px; line-height: 1;
}
.mk-close:hover { color: #f4c95d; }

.mk-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid rgba(200,148,26,.12);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mk-tabs::-webkit-scrollbar { display: none; }
.mk-tabs:empty { display: none; }
.mk-tab {
  background: none; border: none; cursor: pointer;
  padding: 10px 12px 9px; font: inherit; font-size: 14px;
  color: rgba(242,230,201,.6); border-bottom: 2px solid transparent;
  flex: 0 0 auto; white-space: nowrap;
}
.mk-tab.on { color: #f4c95d; border-bottom-color: #f4c95d; }

.mk-body { flex: 1; overflow-y: auto; padding: 14px 18px 18px; -webkit-overflow-scrolling: touch; }
.mk-sec { padding: 12px 0; border-bottom: 1px solid rgba(200,148,26,.1); }
.mk-sec:last-child { border-bottom: none; }
.mk-sec h3 {
  margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 15px;
  color: #e8d0a0; letter-spacing: .02em;
}
.mk-muted { color: rgba(242,230,201,.55); }
.mk-small { font-size: 12.5px; }
.mk-empty { text-align: center; font-style: italic; color: rgba(242,230,201,.6); padding: 18px 8px; list-style: none; }
.mk-warn { margin: 6px 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px;
  background: rgba(196,92,58,.12); border: 1px solid rgba(196,92,58,.35); color: #f0b49a; }
.mk-warn-text { color: #f0a080; font-size: 13px; }

/* Buttons */
.mk-btn {
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 8px;
  background: rgba(255,255,255,.04); color: #f2e6c9;
  border: 1px solid rgba(200,148,26,.3);
}
.mk-btn:hover:not(:disabled) { border-color: rgba(244,201,93,.6); }
.mk-btn:disabled { opacity: .45; cursor: default; }
.mk-btn-primary { background: linear-gradient(180deg, #c8941a, #9a6f12); color: #1c1308; border-color: #e0b043; font-weight: 600; }
.mk-btn-danger { color: #f0a080; border-color: rgba(196,92,58,.45); }
.mk-btn-sm { padding: 5px 10px; font-size: 13px; }
.mk-wide { width: 100%; margin-top: 10px; }
.mk-link { background: none; border: none; padding: 0; font: inherit; color: #f4c95d; cursor: pointer; text-decoration: underline dotted; }

/* Locked view */
.mk-lock { text-align: center; padding: 6px 4px 12px; border-bottom: 1px solid rgba(200,148,26,.1); }
.mk-lock-img { width: 120px; height: auto; max-height: 110px; object-fit: contain; }
.mk-lock-icon { font-size: 48px; }
.mk-lock h3 { margin: 6px 0; font-family: 'Playfair Display', serif; color: #f4c95d; font-size: 18px; }
.mk-lock p { margin: 6px auto; max-width: 460px; font-size: 14px; }
.mk-req { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 0; font-size: 14px; }
.mk-req > span:first-child { width: 18px; font-weight: 700; }
.mk-req.ok > span:first-child { color: #9fd47a; }
.mk-req.no > span:first-child { color: #f0a080; }
.mk-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.mk-levels { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.mk-levels th, .mk-levels td { padding: 5px 6px; text-align: left; border-bottom: 1px solid rgba(200,148,26,.08); }
.mk-levels th { color: rgba(232,208,160,.75); font-weight: 600; }
.mk-levels tr.on td { color: #f4c95d; background: rgba(244,201,93,.06); }

/* Buy */
.mk-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mk-toolbar select, .mk-form select, .mk-form input, .mk-mine-act select, .mk-field select {
  font: inherit; font-size: 14px; color: #f2e6c9;
  background: #17120c; border: 1px solid rgba(200,148,26,.3); border-radius: 8px; padding: 6px 8px;
}
.mk-filter-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 3px 4px 3px 10px;
  border-radius: 999px; background: rgba(244,201,93,.1); border: 1px solid rgba(244,201,93,.35); font-size: 13px; }
.mk-filter-chip button { background: none; border: none; color: #f4c95d; cursor: pointer; padding: 2px 6px; }
.mk-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-order, .mk-mine, .mk-trip {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(200,148,26,.14);
}
.mk-order.paused { opacity: .72; }
.mk-order-main, .mk-trip-main { flex: 1; min-width: 0; }
.mk-order-line { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-order-meta { font-size: 13px; color: rgba(242,230,201,.7); margin-top: 2px; }
.mk-for { color: rgba(242,230,201,.5); }
.mk-res { font-weight: 600; }
.mk-gold { color: #f4c95d; font-weight: 600; }
.mk-paused { color: #e8c07a; }

/* Sell */
.mk-form { display: flex; flex-direction: column; gap: 10px; }
.mk-caps { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(242,230,201,.7); }
.mk-caps b { color: #f4c95d; }
.mk-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mk-field em { font-style: normal; font-size: 12.5px; }
.mk-summary { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: rgba(192,221,151,.06); border: 1px solid rgba(192,221,151,.15); }
.mk-summary:empty { display: none; }
.mk-cands { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.mk-cand { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.02); border: 1px solid rgba(200,148,26,.1); }
.mk-cand.busy { opacity: .5; cursor: default; }
.mk-cand-name { font-weight: 600; }

/* Caravans */
.mk-mine { flex-direction: column; align-items: stretch; }
.mk-mine.closed { opacity: .6; }
.mk-status { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(200,148,26,.3); }
.mk-status-active { color: #9fd47a; border-color: rgba(159,212,122,.4); }
.mk-merchants { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.mk-merchant { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.04); }
.mk-merchant.road { background: rgba(244,201,93,.1); }
.mk-merchant button { background: none; border: none; color: rgba(240,160,128,.8); cursor: pointer; padding: 0 2px; }
.mk-mine-act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.mk-trip-icon { font-size: 22px; }
.mk-trip.done { opacity: .6; }
.mk-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); margin: 6px 0 3px; overflow: hidden; }
.mk-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #9a6f12, #f4c95d); transition: width 1s linear; }

/* Confirm sheet */
.mk-sheet-wrap { display: none; position: absolute; inset: 0; background: rgba(8,5,2,.55); align-items: flex-end; justify-content: center; }
.mk-sheet-wrap.open { display: flex; }
.mk-sheet { width: 100%; padding: 16px 18px 18px; background: #18130d; border-top: 1px solid rgba(200,148,26,.35); border-radius: 14px 14px 0 0; }
.mk-sheet h3 { margin: 0 0 10px; font-family: 'Playfair Display', serif; color: #f4c95d; font-size: 17px; }
.mk-sum { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-bottom: 10px; }
.mk-sum div { display: flex; justify-content: space-between; gap: 12px; }
.mk-sum span { color: rgba(242,230,201,.6); }
.mk-sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

@media (max-width: 600px) {
  .mk-card { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
  .mk-order { flex-direction: column; align-items: stretch; }
  .mk-order-act .mk-btn { width: 100%; }
  .mk-levels { font-size: 12px; }
}

/* Entry points elsewhere: citizen profile + world-map town panel */
.cp-market-btn {
  margin-left: 8px; font: inherit; font-size: 12.5px; cursor: pointer;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(244,201,93,.12); color: #f4c95d; border: 1px solid rgba(244,201,93,.4);
}
.sett-trade-note { margin-top: 8px; font-size: 12.5px; color: rgba(242,230,201,.55); font-style: italic; }

/* ⓘ level popover (header) */
.mk-info {
  margin-left: 6px; width: 18px; height: 18px; padding: 0; line-height: 16px;
  border-radius: 50%; cursor: help; font-size: 12px; vertical-align: 1px;
  background: rgba(244,201,93,.1); color: #f4c95d; border: 1px solid rgba(244,201,93,.45);
}
.mk-pop {
  display: none; position: absolute; z-index: 3; top: 112px; left: 18px; right: 18px;
  pointer-events: none;   /* hover tooltip: never blocks the tabs underneath */
  max-width: 460px; padding: 12px 14px 8px; border-radius: 10px;
  background: #18130d; border: 1px solid rgba(244,201,93,.4); box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.mk-pop.open { display: block; animation: fadeIn .15s ease; }
.mk-pop.pinned { pointer-events: auto; }
.mk-pop-title { font-family: 'Playfair Display', serif; color: #f4c95d; font-size: 14px; margin-bottom: 6px; }

/* Items (Market phase 3) */
.mk-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(200,148,26,.2); align-self: flex-start; }
.mk-mode button { font: inherit; font-size: 13.5px; cursor: pointer; padding: 5px 12px; border-radius: 7px; border: none; background: none; color: rgba(242,230,201,.65); }
.mk-mode button.on { background: rgba(244,201,93,.16); color: #f4c95d; }
.mk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.mk-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 6px; text-align: left;
  font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(200,148,26,.15); color: #f2e6c9;
}
.mk-item.on { border-color: #f4c95d; background: rgba(244,201,93,.1); }
.mk-item.off { opacity: .45; cursor: not-allowed; }
.mk-item-icon { font-size: 18px; grid-row: span 2; }
.mk-item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-item-qty { font-size: 12px; color: rgba(242,230,201,.6); }
.mk-item-why { grid-column: 2 / 4; font-size: 11px; color: #f0a080; }
.mk-item-meta { text-transform: capitalize; }

/* Search + categories (Market v2) */
.mk-search { position: relative; margin-bottom: 8px; }
.mk-search-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; color: #f2e6c9;
  background: #17120c; border: 1px solid rgba(200,148,26,.35); border-radius: 9px; padding: 8px 12px;
}
.mk-search-input:focus { outline: none; border-color: #f4c95d; box-shadow: 0 0 0 2px rgba(244,201,93,.15); }
.mk-suggest {
  display: none; position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
  list-style: none; background: #1b150e; border: 1px solid rgba(244,201,93,.4); border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55); max-height: 280px; overflow-y: auto;
}
.mk-suggest.open { display: block; }
.mk-suggest li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.mk-suggest li.on, .mk-suggest li:hover { background: rgba(244,201,93,.12); }
.mk-suggest li small { margin-left: auto; color: rgba(242,230,201,.55); text-transform: capitalize; }
/* 10 buttons fit the 720px window without scrolling; phones wrap to two rows. */
.mk-cats { display: flex; gap: 4px; margin-bottom: 8px; }
.mk-cat {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 54px;
  font: inherit; cursor: pointer; padding: 6px 6px 4px; border-radius: 9px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(200,148,26,.18); color: rgba(242,230,201,.75);
}
.mk-cat:hover { border-color: rgba(244,201,93,.5); }
.mk-cat.on { background: rgba(244,201,93,.14); border-color: #f4c95d; color: #f4c95d; }
.mk-cat-icon { font-size: 20px; line-height: 1.1; }
.mk-cat-label { font-size: 11px; }

/* Ironhaven tab */
.mk-ih-head { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: rgba(120,140,180,.08); border: 1px solid rgba(150,170,210,.25); font-size: 14px; }
.mk-ih-crest { font-size: 30px; }
.mk-wants { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mk-want { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px;
  background: rgba(244,201,93,.07); border: 1px dashed rgba(244,201,93,.4); }
.mk-want-icon { font-size: 22px; }
.mk-want-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #c8941a; color: #1c1308; font-weight: 700; }
.mk-ih-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(200,148,26,.14); }
.mk-ih-row.off { opacity: .5; }
.mk-ih-row.wanted { border-color: rgba(244,201,93,.45); }
.mk-ih-row.focus { box-shadow: 0 0 0 2px #f4c95d; }
.mk-ih-main { flex: 1; min-width: 0; }
.mk-ih-qty { width: 64px; font: inherit; font-size: 14px; color: #f2e6c9; background: #17120c;
  border: 1px solid rgba(200,148,26,.3); border-radius: 7px; padding: 4px 6px; }
.mk-better { color: #9fd47a; margin-left: 4px; }

/* Item stalls (Market v2) */
.mk-stall-icon { font-size: 26px; width: 34px; text-align: center; }
.mk-collect { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mk-collect input, .mk-collect select { font: inherit; font-size: 14px; color: #f2e6c9; background: #17120c;
  border: 1px solid rgba(200,148,26,.3); border-radius: 8px; padding: 6px 8px; }
@media (max-width: 600px) { .mk-collect { grid-template-columns: 1fr; } }

/* Shops tab (Market v2) */
.mk-shops { display: flex; flex-direction: column; gap: 10px; }
.mk-shop { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(200,148,26,.18); }
.mk-shop.closed { border-style: dashed; }
.mk-shop.off { opacity: .65; }
.mk-shop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mk-shop-head > div { flex: 1; }
.mk-shop-icon { font-size: 26px; }
.mk-keeper { margin: 6px 0; }

/* Resource icons as images (Windows 10 can't draw 🪵 🪨 🪙) */
.mk-ico { width: 16px; height: 16px; vertical-align: -3px; image-rendering: pixelated; }
.mk-ico-lg { width: 22px; height: 22px; vertical-align: middle; }
.mk-cat-icon { display: inline-flex; align-items: center; justify-content: center; height: 24px; }
@media (max-width: 600px) {
  .mk-cats { flex-wrap: wrap; }
  .mk-cat { flex: 1 0 calc(20% - 4px); min-width: 0; }
}

/* NPC village traders */
.mk-npc-row { border-color: rgba(150,200,140,.28); background: rgba(150,200,140,.04); }
.mk-npc-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px;
  background: rgba(150,200,140,.18); color: #b6e09c; border: 1px solid rgba(150,200,140,.45); }
.mk-npc-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(242,230,201,.7);
  margin: -2px 0 8px; cursor: pointer; }

/* A porter that just left — highlighted in Caravans for a moment. */
.mk-trip.mk-trip-new { box-shadow: 0 0 0 2px #f4c95d inset; animation: mk-new-run 2.4s ease-out 1; }
@keyframes mk-new-run { 0% { background: rgba(244, 201, 93, .26); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .mk-trip.mk-trip-new { animation: none; } }

/* Prices & the Ledger (js/market.js — prices/ledger section).
   Chart marks: price #bf8a2c, earned #2f9e86, spent #d0703c (validated on #17120c).
   Text stays in text colours; marks carry the colour. */
.mk-pb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(242,230,201,.75); }
.mk-pb:empty { display: none; }
.mk-spark { flex: 0 0 auto; }
.mk-pd { font-size: 12px; color: rgba(242,230,201,.7); white-space: nowrap; }
.mk-pd.below::first-letter, .mk-pd.above::first-letter { font-size: 10px; }
.mk-seg { display: inline-flex; border: 1px solid rgba(200,148,26,.3); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.mk-seg button { background: none; border: none; color: #f2e6c9; font: inherit; font-size: 13px; padding: 6px 14px; cursor: pointer; }
.mk-seg button.on { background: rgba(244,201,93,.16); color: #f4c95d; font-weight: 600; }
.mk-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 14px 0 6px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(242,230,201,.6); }
.mk-h .mk-small, .mk-h .mk-chips { text-transform: none; letter-spacing: 0; }
.mk-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mk-tile { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(200,148,26,.18); }
.mk-tile-l { font-size: 12px; color: rgba(242,230,201,.6); }
.mk-tile-v { font-size: 20px; font-weight: 600; color: #f2e6c9; }
.mk-key { display: inline-flex; align-items: center; gap: 4px 10px; text-transform: none; letter-spacing: 0; font-size: 12px; color: rgba(242,230,201,.75); }
.mk-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.mk-chart-box { width: 100%; min-height: 60px; }
.mk-chart { display: block; overflow: visible; }
.mk-chart .mk-ax { fill: rgba(242,230,201,.55); font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-chart .mk-lbl { fill: #f2e6c9; font-size: 12px; font-weight: 600; }
.mk-chart .mk-hl { filter: brightness(1.25); }
.mk-chart circle.mk-hl { r: 6; }
.mk-tip { position: fixed; z-index: 100050; display: none; pointer-events: none; white-space: pre-line; max-width: 240px;
  padding: 6px 9px; border-radius: 8px; background: #241b10; border: 1px solid rgba(200,148,26,.45); color: #f2e6c9; font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.mk-table-view { margin: 4px 0 6px; font-size: 12.5px; }
.mk-table-view summary { cursor: pointer; color: rgba(242,230,201,.65); }
.mk-table-view table { width: 100%; border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mk-table-view th, .mk-table-view td { text-align: right; padding: 3px 6px; border-bottom: 1px solid rgba(242,230,201,.08); }
.mk-table-view th:first-child, .mk-table-view td:first-child { text-align: left; }
.mk-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mk-chipbtn { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(200,148,26,.3); background: none; color: #f2e6c9; font: inherit; font-size: 12.5px; cursor: pointer; }
.mk-chipbtn.on { background: rgba(244,201,93,.16); border-color: #f4c95d; color: #f4c95d; }
.mk-led-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.025);
  border: 1px solid rgba(200,148,26,.14); margin-bottom: 6px; list-style: none; }
.mk-led-icon { font-size: 22px; width: 28px; text-align: center; }
.mk-led-main { flex: 1; min-width: 0; }
.mk-led-gold { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.mk-net.in::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #2f9e86; margin-right: 5px; vertical-align: 1px; }
.mk-net.out::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #d0703c; margin-right: 5px; vertical-align: 1px; }
.mk-net { color: #f2e6c9; }
.mk-st { font-size: 12px; }
.mk-st.road { color: #f4c95d; }
.mk-more { display: block; margin: 8px auto; }
.mk-price-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: flex-end; margin-bottom: 6px; }
.mk-price-title { font-size: 18px; font-family: 'IM Fell English', Georgia, serif; color: #f4c95d; }
.mk-movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk-mover { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 64px 70px 120px; gap: 8px; align-items: center; text-align: left;
  padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(200,148,26,.14); background: rgba(255,255,255,.025); color: #f2e6c9; font: inherit; font-size: 13px; cursor: pointer; }
.mk-mover.on { border-color: #f4c95d; background: rgba(244,201,93,.08); }
.mk-mover-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mover-p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-mover-v { text-align: right; font-size: 12px; }
@media (max-width: 600px) {
  .mk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-mover { grid-template-columns: minmax(0, 1fr) 56px 64px; }
  .mk-mover-v { grid-column: 1 / -1; text-align: left; }
}

/* Ledger: how this works (first visit opens it) */
.mk-help { margin: 0 0 10px; padding: 6px 10px; border-radius: 10px; background: rgba(244,201,93,.06); border: 1px solid rgba(244,201,93,.2); font-size: 13px; }
.mk-help summary { cursor: pointer; color: #f4c95d; }
.mk-help ul { margin: 6px 0 2px; padding-left: 18px; color: rgba(242,230,201,.85); }
.mk-help li { margin: 3px 0; }

/* Village special requests (Wanted tab) */
.mk-req-row { border-color: rgba(244,201,93,.55) !important; background: linear-gradient(90deg, rgba(244,201,93,.09), rgba(255,255,255,.02)) !important; }
.mk-req-badge { background: rgba(244,201,93,.22) !important; color: #f4c95d !important; }
.mk-req-meta { color: #f4e2b0; }
