:root {
  --ink: #12241c;
  --leaf: #1b5c3e;
  --leaf-2: #0f3d2e;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --sand: #f4efe4;
  --paper: #fbf8f2;
  --line: #e4ddd0;
  --muted: #6b746e;
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  --nav-h: 64px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.2rem; }
a { color: inherit; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.site-body {
  flex: 1 0 auto;
  padding-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}
h1,h2,h3,.display, .mk-word, .font-display {
  font-family: "Fraunces", Georgia, serif;
}
.mk-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 1030;
}
.mk-nav-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 64px;
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.mk-brand { margin: 0; padding: 0; }
.mk-nav-desk {
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
}
.mk-nav-link {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  border-radius: 999px;
  white-space: nowrap;
}
.mk-nav-link:hover, .mk-nav-link.active {
  background: var(--sand);
  color: var(--leaf-2);
}
.mk-nav-user {
  border: 0;
  background: transparent;
}
.mk-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}
.mk-nav-icon:hover { background: var(--sand); color: var(--leaf-2); }
.mk-nav-tools {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}
.mk-burger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.mk-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.mk-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-burger.is-open span:nth-child(2) { opacity: 0; }
.mk-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mk-drawer { width: min(360px, 92vw); }
.mk-drawer-nav { display: grid; gap: .2rem; }
.mk-drawer-nav a,
.mk-drawer-account a:not(.btn) {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  min-height: 48px;
}
.mk-drawer-nav a i { color: var(--leaf); width: 1.2rem; }
.mk-drawer-nav a.active,
.mk-drawer-nav a:hover {
  background: var(--sand);
}
.mk-drawer-account a:not(.btn) { padding-left: .9rem; }
.mk-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--leaf), var(--leaf-2));
  color: #e8f8ea;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}
.mk-logo {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.mk-header-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 58vw);
  display: block;
}
.mk-header-logo-foot { height: 48px; max-width: 240px; }
.sell-hero {
  background: linear-gradient(160deg, #0c2b21 0%, #164433 60%, #1b5c3e 100%);
  color: #f4efe4;
  padding: 2rem 0 1.8rem;
}
.sell-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.03em;
}
.sell-hero .lead { color: #d7e8dc; max-width: 36rem; }
.sell-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.sell-ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.sell-ticks li { margin-bottom: .4rem; }
.sell-ticks i { color: var(--gold-2); margin-right: .35rem; }
.sell-hero-aside { display: none; text-align: center; }
.sell-hero-aside img { width: 120px; height: 120px; border-radius: 28px; }
.sell-hero-aside p { color: #cfe0d5; margin: .75rem 0 0; font-size: .9rem; }
.sell-step {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--leaf); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; margin-bottom: .5rem;
}
.sell-tpls { display: grid; gap: 8px; }
.sell-tpl {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: .7rem .85rem;
  cursor: pointer;
}
.sell-tpl span { display: block; font-size: .8rem; color: var(--muted); }
.sell-tpl.is-on { border-color: var(--leaf); box-shadow: 0 0 0 2px rgba(27,92,62,.15); }
@media (min-width: 768px) {
  .sell-hero-grid { grid-template-columns: 1fr 160px; }
  .sell-hero-aside { display: block; }
}
.mk-word { font-weight: 650; color: var(--ink); font-size: 1.2rem; }
.mk-pg { color: var(--gold); font-weight: 500; }
.mk-search {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}
.mk-search i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.mk-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  outline: none;
}
.mk-search input:focus { border-color: var(--leaf); background: #fff; }
.mk-search-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .55rem 0 .65rem;
  position: sticky;
  top: 64px;
  z-index: 1020;
}
.mk-search-strip .mk-search { max-width: none; }
.mk-search-strip input { min-height: 44px; }
.mk-badge {
  position: absolute; top: 2px; right: -2px;
  background: var(--gold); color: #1a1404;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 999px; padding: 0 5px;
}
.btn-mk, .btn-mk-gold {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
}
.btn-mk { background: var(--leaf); color: #fff; }
.btn-mk:hover { background: var(--leaf-2); color: #fff; }
.btn-mk-gold { background: var(--gold); color: #1a1404; }
.btn-mk-gold:hover { background: var(--gold-2); color: #1a1404; }
.btn-mk-ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  background:
    radial-gradient(900px 380px at 88% 20%, rgba(212,160,23,.22), transparent 55%),
    linear-gradient(160deg, #0c2b21 0%, #14382c 48%, #1b5c3e 100%);
  color: #f4efe4;
  padding: 1.4rem 0 1.3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 { font-size: clamp(1.45rem, 3.4vw, 2.35rem); letter-spacing: -0.03em; }
.hero .lead { color: #d7e8dc; margin-bottom: .75rem !important; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: #cfe0d5;
  font-size: .85rem;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  width: clamp(100px, 18vw, 180px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.mk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: auto;
  transition: transform .18s ease, box-shadow .18s ease;
}
.row > [class*="col"] > .mk-card,
.row > [class*="col"] > a.mk-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.row > [class*="col"] > .mk-card > .p-3,
.row > [class*="col"] > a.mk-card > .p-3 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.row > [class*="col"] > .mk-card > .p-3 > .d-flex.justify-content-between:last-child,
.row > [class*="col"] > a.mk-card > .p-3 > .price {
  margin-top: auto;
}
.mk-card h3,
.mk-card .h6,
.mk-card .fw-semibold {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
  max-height: 2.6em;
}
.mk-card .p-3 > .small.text-muted {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  white-space: normal;
}
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,36,28,.08); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: .7rem .45rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-sizing: border-box;
}
.cat-card i {
  font-size: 1.5rem;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: .4rem;
  flex: 0 0 auto;
}
.cat-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  height: 2.4em;
  line-height: 1.2;
  font-size: .78rem;
  font-weight: 600;
}
.mk-card img, .mk-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #e7efe9;
  display: block;
}
.dir-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  background: #fbf8f2;
  border-radius: 14px;
  flex-shrink: 0;
}
.dir-list { display: grid; gap: 14px; }
.dir-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  height: auto;
}
.dir-card-title {
  font-size: 1.05rem;
  margin: 0 0 .25rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.dir-card-title a { color: var(--ink); text-decoration: none; }
.dir-card-title a:hover { color: var(--leaf); }
.dir-card-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.dir-card-tagline {
  font-size: .92rem;
  font-weight: 600;
  color: var(--leaf-2);
  margin: 0 0 .35rem;
}
.dir-card-desc {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 .6rem;
  line-height: 1.45;
}
.dir-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  display: grid;
  gap: .2rem;
  font-size: .85rem;
}
.dir-card-meta i { color: var(--leaf); margin-right: .3rem; }
.dir-card-meta a { color: var(--ink); }
.dir-card-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
@media (min-width: 768px) {
  .dir-card { grid-template-columns: 88px minmax(0, 1fr); }
}
img.w-100.rounded-4 {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
.price { font-weight: 700; color: var(--leaf); }
.chip {
  display: inline-block;
  font-size: .72rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #e7f3ec;
  color: var(--leaf);
  font-weight: 600;
}
.chip-gold { background: #f8edd0; color: #7a5a08; }
.section-title { letter-spacing: -0.02em; }
.page { padding: 1.35rem 0 2.25rem; }
.page-head { margin-bottom: 1.15rem; }
.page-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  letter-spacing: -.02em;
  margin: 0 0 .3rem;
}
.page-head .lede { color: var(--muted); margin: 0; max-width: 40rem; }
.page-filters { margin-bottom: 1.15rem; }
.page-layout { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
}
.page-narrow { max-width: 360px; margin-left: auto; margin-right: auto; }
.container.page-narrow { max-width: 360px; }

/* Join / register — same width as Sell form (col-lg-7 ≈ 660px) */
.page-join { max-width: 660px; margin-left: auto; margin-right: auto; }
.container.page-join { max-width: 660px; }
.page-join-form,
.page-join-form-wide { max-width: 100%; margin-left: auto; margin-right: auto; }

.join-choice {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.join-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line, #e4ddd0);
  box-shadow: 0 8px 24px rgba(18, 36, 28, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.join-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(18, 36, 28, 0.1);
  border-color: var(--leaf, #1b5c3e);
  color: inherit;
}
.join-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: #e8f3ec;
  color: var(--leaf, #1b5c3e);
}
.join-card-vendor .join-card-icon {
  background: #fff4d6;
  color: #9a7408;
}
.join-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--ink, #12241c);
}
.join-card p {
  flex: 1;
  margin-bottom: 1rem;
  color: var(--muted, #6b7c73);
  font-size: 0.95rem;
  line-height: 1.45;
}
.join-card .join-cta {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--leaf, #1b5c3e);
}
.join-card-vendor .join-cta { color: #9a7408; }
.join-card:hover .join-cta { text-decoration: underline; }

.auth-form .auth-field { margin-bottom: 0.9rem; }
.auth-form .form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.auth-form .form-control { width: 100%; }
.file-pick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 38px;
  cursor: pointer;
}
.file-pick input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-pick-btn {
  flex: 0 0 auto;
  background: var(--leaf, #1b5c3e);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.file-pick-name {
  font-size: 0.8rem;
  color: var(--muted, #6b7c73);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-chat-toggle {
  position: fixed !important;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 4000;
  background: var(--leaf, #1b5c3e);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(18,36,28,.25);
}
.mk-chat-panel {
  position: fixed !important;
  right: 1.1rem;
  bottom: 4.5rem;
  z-index: 4000;
  width: min(360px, calc(100vw - 1.5rem));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18,36,28,.22);
}
.mk-chat-panel[hidden], #mk-chat-room[hidden], #mk-chat-gate[hidden] { display: none !important; }
.mk-chat-x {
  background: transparent; border: 0; color: #fff; font-size: 1.4rem; line-height: 1;
}
.mk-chat-head {
  background: var(--deep, #0f3d2e); color: #fff;
  padding: 0.7rem 0.9rem; display: flex; justify-content: space-between; align-items: center;
}
.mk-chat-gate, .mk-chat-send { padding: 0.8rem; }
.mk-chat-send { display: flex; gap: 0.4rem; }
.mk-chat-log { height: 240px; overflow: auto; padding: 0.8rem; background: #f6f3ec; }
.mk-chat-msg { max-width: 85%; margin-bottom: 0.5rem; }
.mk-chat-msg .b { background: #fff; padding: 0.45rem 0.65rem; border-radius: 10px; }
.mk-chat-msg.me { margin-left: auto; }
.mk-chat-msg.me .b { background: var(--leaf, #1b5c3e); color: #fff; }
.mk-chat-msg .t { font-size: 0.7rem; color: #7a8a80; margin-top: 0.15rem; }
.mk-chat-msg.me .t { text-align: right; }
.mk-chat-toast {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 4100;
  max-width: 280px;
  background: #0f3d2e;
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(18,36,28,.28);
  font-size: 0.88rem;
}
.mk-chat-toast[hidden] { display: none !important; }

.ad-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff8e8;
  border: 1px dashed #d4a017;
  border-radius: 16px;
  padding: .85rem 1rem;
  color: var(--ink);
}
.ad-card img { width: 120px; height: 72px; object-fit: cover; border-radius: 10px; }
.ad-kicker { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7a5a08; }
.ad-title { font-weight: 650; }
.ad-body { font-size: .9rem; color: var(--muted); }
.ad-rail {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-rail-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-box {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(18,36,28,.04);
}
.ad-box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.ad-box-ph {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1b5c3e, #0f3d2e);
  color: #e8f8ea;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}
.ad-box-body { padding: .75rem .85rem 1rem; }
.ad-box:hover { border-color: var(--gold); }

.mk-foot {
  background: #0c1f18;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  margin-top: 0;
  clear: both;
}
.mk-foot a { color: #c9d9cf; text-decoration: none; }
.mk-foot a:hover { color: var(--gold-2); }

.store-cover {
  height: auto;
  aspect-ratio: 32 / 13;
  background-size: cover;
  background-position: center;
  background-color: var(--leaf-2);
  position: relative;
}
.store-cover .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,31,24,.75), transparent 55%);
}
.logo-badge {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: #fbf8f2;
  border: 4px solid #fff;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}
[class^="tpl-"], [class*=" tpl-"] {
  padding-bottom: 2rem;
}

.tpl-boutique .mk-card img { aspect-ratio: 1 / 1; height: auto; }
.tpl-studio .svc-row { border-bottom: 1px solid var(--line); }
.stall-head { background: #163528; color: #e8f3ec; }
.stall-row { border-top: 1px dashed var(--line); }
.stall-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.catalog-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  gap: 10px;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: block;
}
@media (min-width: 768px) {
  .gallery-tile.wide { grid-column: span 2; }
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .55rem .7rem;
  background: linear-gradient(transparent, rgba(12,31,24,.82));
  color: #fff;
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .85rem;
}
.menu-board {
  background: #1a1408;
  color: #f3e6c4;
  border-radius: 18px;
  border: 8px solid #3d2a12;
}
.menu-line { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .15rem; }
.menu-name { font-family: "Fraunces", serif; }
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(243,230,196,.35); transform: translateY(-4px); }
.menu-price { font-weight: 600; color: #f0c14b; }
.tpl-cover-menu { background: #2a1c0c !important; }
.tpl-cover-stall { background: #3d4a28 !important; }
.tpl-cover-workshop { background: #1b2830 !important; }
.tpl-cover-gallery { background: #2c2430 !important; }
.dash-side {
  background: #0f3d2e;
  min-height: 0;
  color: #e8f3ec;
}
@media (min-width: 768px) {
  .dash-side { min-height: calc(100% - 0px); align-self: stretch; }
}
.dash-side a { color: #c9d9cf; text-decoration: none; display: block; padding: .55rem .8rem; border-radius: 10px; }
.dash-side a.active, .dash-side a:hover { background: rgba(255,255,255,.08); color: #fff; }

.mk-live {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(18,36,28,.12);
  z-index: 50;
  max-height: 380px;
  overflow: auto;
}
.mk-live a {
  display: block;
  padding: .55rem .9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mk-live a:hover { background: var(--sand); }
.mk-live .hint { padding: .4rem .9rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.id-card {
  width: 360px;
  background: linear-gradient(160deg, #0c2b21, #1b5c3e);
  color: #f4efe4;
  border-radius: 18px;
  padding: 1.2rem;
}
img, video { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }

@media print {
  nav, footer, .no-print, .ad-rail { display: none !important; }
  .id-card { box-shadow: none; width: 100%; }
}

@media (min-width: 576px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-card { height: 116px; }
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-card { height: 120px; }
}
@media (min-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Phone — up to 575.98px */
@media (max-width: 575.98px) {
  .mk-header-logo { height: 36px; }
  .hero { padding: 1.25rem 0 1.15rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lead { font-size: 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
  .stall-row { flex-wrap: wrap; }
  .stall-row img { width: 52px; height: 52px; }
  .menu-board { border-width: 5px; padding: 1.1rem !important; }
  .id-card { width: 100%; max-width: 360px; }
  .ad-rail { position: static; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 1rem; }
  .dash-side { padding: 1rem !important; }
  .dash-side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .dash-side nav a { padding: .4rem .7rem; font-size: .85rem; }
  .mk-foot .d-flex { flex-direction: column; gap: .35rem; }
  .btn-mk, .btn-mk-gold { min-height: 44px; }
}

/* Large phone / small tablet — 576–767.98 */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero { padding: 1.5rem 0 1.35rem; }
  .ad-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1rem; }
  .ad-rail-label { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-side nav { display: flex; flex-wrap: wrap; gap: 6px; }
}

/* Tablet — 768–991.98 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero { padding: 1.6rem 0 1.45rem; }
  .ad-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.25rem; }
  .ad-rail-label { grid-column: 1 / -1; }
  .mk-search { max-width: none; }
  .dash-side { align-self: stretch; }
}

/* Desktop — 992+ : sidebar ads sticky, search capped */
@media (min-width: 992px) {
  .mk-search { max-width: 420px; }
  .ad-rail { position: sticky; top: calc(var(--nav-h) + 16px); }
  .hero { padding: 1.75rem 0 1.6rem; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) 220px; gap: 1.5rem; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  .container.page-narrow { max-width: 360px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
  .container.page-narrow { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-card { transition: none; }
  .mk-card:hover { transform: none; }
}

.mk-note{display:inline-block;min-width:1.2rem;padding:0 .35rem;border-radius:999px;background:#d4a017;color:#12241c;font-size:.72rem;font-weight:700;line-height:1.3rem;text-align:center}

.mk-chat-desk { min-height: 240px; max-height: 380px; }
.mk-chat-msg.client { margin-right: auto; }
.mk-chat-msg.stall { margin-left: auto; }
.mk-chat-msg .who { font-size: .7rem; font-weight: 700; margin-bottom: .15rem; }
.mk-chat-msg.client .who { color: #0c2d48; }
.mk-chat-msg.stall .who { color: #0f3d2e; text-align: right; }
.mk-chat-msg.client .b { background: #e8f1f6; color: #12241c; border: 1px solid #c5d7e2; }
.mk-chat-msg.stall .b { background: #1b5c3e; color: #fff; }
.mk-chat-key { display: inline-block; margin-right: .6rem; font-size: .75rem; font-weight: 600; }
.mk-chat-key.client::before, .mk-chat-key.stall::before {
  content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px;
}
.mk-chat-key.client::before { background: #e8f1f6; border: 1px solid #c5d7e2; }
.mk-chat-key.stall::before { background: #1b5c3e; }

.mk-chat-desk .mk-chat-msg { max-width: 78%; }
.mk-chat-desk .mk-chat-msg.client { margin-left: 0; margin-right: auto; }
.mk-chat-desk .mk-chat-msg.stall { margin-left: auto; margin-right: 0; }
.mk-chat-desk .mk-chat-msg .who { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.mk-chat-desk .mk-chat-msg.stall .who { justify-content: flex-end; }
.mk-chat-desk .role {
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  padding: .1rem .35rem; border-radius: 4px;
}
.mk-chat-desk .client .role { background: #0c2d48; color: #fff; }
.mk-chat-desk .stall .role { background: #d4a017; color: #12241c; }
.mk-chat-desk .client .b {
  background: #0c2d48 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px 14px 14px 14px;
}
.mk-chat-desk .stall .b {
  background: #1b5c3e !important;
  color: #fff !important;
  border: 2px solid #d4a017 !important;
  border-radius: 14px 4px 14px 14px;
}
.mk-chat-desk .stall .t { text-align: right; }

.mk-chat-desk .client .role { background: #c45c26 !important; color: #fff !important; }
.mk-chat-desk .stall .role { background: #d4a017 !important; color: #12241c !important; }
.mk-chat-desk .client .b {
  background: #c45c26 !important;
  color: #fff !important;
}
.mk-chat-desk .stall .b {
  background: #0f3d2e !important;
  color: #fbf8f2 !important;
  border: 2px solid #d4a017 !important;
}
.mk-chat-key.client::before { background: #c45c26 !important; border-color: #c45c26 !important; }
.mk-chat-key.stall::before { background: #0f3d2e !important; border: 2px solid #d4a017 !important; }

.theme-swatch {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .25rem .7rem .25rem .4rem;
  font-size: .8rem;
  font-weight: 600;
}
.theme-swatch::before {
  content: "";
  display: inline-block;
  width: .85rem; height: .85rem;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: -1px;
  background: linear-gradient(135deg, var(--sw), var(--sa));
}
.vendor-theme { background: var(--paper, #fbf8f2); }
.vendor-theme .price { color: var(--leaf); }

.ind-banner{background:#0c2b21;line-height:0;border-bottom:0}
.ind-banner img{width:100%;height:auto;display:block;max-height:280px;object-fit:cover;object-position:center}
@media (min-width:992px){.ind-banner img{max-height:340px}}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.admin-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.admin-pay-grid {
  display: grid;
  gap: .85rem;
}
.admin-pay-proof img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: var(--sand);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.admin-pay-form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.admin-pay-form .btn {
  flex: 1 1 140px;
  min-height: 44px;
}
@media (min-width: 768px) {
  .admin-pay-grid {
    grid-template-columns: minmax(0,1.2fr) 220px minmax(160px,auto);
    align-items: center;
  }
  .admin-pay-proof img { max-height: 140px; }
}
@media (max-width: 767.98px) {
  .admin-toolbar h1, .admin-toolbar .h3 { font-size: 1.35rem; }
}

.admin-vendor-top {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
}
.admin-vendor-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.admin-vendor-form .btn { min-height: 44px; }
.admin-vendor-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-size: .9rem;
}
.admin-order {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .admin-vendor-form {
    grid-template-columns: minmax(120px,160px) auto 1fr;
    align-items: center;
  }
  .admin-vendor-form input[type="password"] { grid-column: 1 / 3; }
}

.trust-chip { font-weight: 700; }
.trust-100 { background: #d4a017; color: #1a1404; }
.trust-60 { background: #1b5c3e; color: #fff; }
.trust-40 { background: #c4a574; color: #1a1404; }

.admin-ids{display:flex;flex-wrap:wrap;gap:.4rem .6rem;align-items:center}
.admin-id{display:flex;gap:.35rem;align-items:baseline;padding:.25rem .55rem;border-radius:8px;border:1px solid var(--line);background:#fbf8f2;font-size:.82rem}
.admin-id .k{font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.68rem}
.admin-id.has{border-color:#1b5c3e;background:#e7f3ec}
.admin-id.has .k{color:#1b5c3e}
.admin-id.missing{border-color:#e2d6c4;background:#faf6ef}
.admin-id.missing .v{color:#9a7b4a;font-style:italic}


/* Storefront product & service cards */
.store-item-card { overflow: hidden; }
.store-item-media { position: relative; display: block; background: #f0ebe1; }
.store-item-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.store-item-badge { position: absolute; top: .55rem; left: .55rem; }
.store-item-title {
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.store-item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}
.store-svc-card {
  border: 1px solid var(--line, #e4ddd0);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.store-svc-card:hover {
  border-color: var(--leaf, #1b5c3e);
  box-shadow: 0 10px 24px rgba(18,36,28,.08);
}


/* Professional job cards */
.job-list { display: grid; gap: 1rem; }
.job-card {
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.job-card:hover {
  border-color: rgba(27,92,62,.35);
  box-shadow: 0 12px 28px rgba(18,36,28,.08);
}
.job-card-featured {
  border-color: rgba(212,160,23,.55);
  background: linear-gradient(180deg, #fffdf7 0%, #fff 40%);
}
.job-card-inner {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}
@media (min-width: 768px) {
  .job-card-inner {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }
}
.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  margin-bottom: .45rem;
}
.job-company {
  font-weight: 650;
  font-size: .9rem;
  color: var(--ink, #12241c);
  text-decoration: none;
}
a.job-company:hover { color: var(--leaf, #1b5c3e); }
.job-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .55rem;
}
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { color: var(--leaf, #1b5c3e); }
.job-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  font-size: .86rem;
  color: var(--muted, #6b7c73);
}
.job-facts li { display: inline-flex; align-items: center; gap: .3rem; }
.job-grade {
  font-weight: 700;
  color: var(--leaf, #1b5c3e) !important;
  background: #e8f3ec;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.job-desc, .job-req {
  margin: .75rem 0 0;
  font-size: .9rem;
  color: var(--muted, #6b7c73);
  line-height: 1.45;
}
.job-req { margin-top: .4rem; }
.job-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}
@media (min-width: 768px) {
  .job-card-aside {
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid var(--line, #e4ddd0);
    padding-left: 1rem;
  }
}
.job-salary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink, #12241c);
}
.job-salary-muted {
  font-size: .86rem;
  color: var(--muted, #6b7c73);
}
.job-close {
  font-size: .82rem;
  color: var(--muted, #6b7c73);
}
.job-close.is-soon {
  color: #9a5b00;
  font-weight: 600;
}
.job-apply { margin-top: .35rem; }


/* Vendor profile current media — tiny preview + visible filename */
.profile-media-block {
  display: block;
  margin-bottom: .35rem;
}
.profile-logo-preview,
.profile-cover-preview {
  width: 10px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
  background: #fff;
  border: 1px solid var(--line, #e4ddd0);
  display: block;
  margin-bottom: .25rem;
}
.profile-logo-preview {
  object-fit: contain;
}
.profile-media-file {
  display: block;
  font-size: .8rem;
  color: var(--muted, #6b7c73);
  line-height: 1.35;
}
.profile-media-file span {
  display: inline;
  color: var(--ink, #12241c);
  font-weight: 600;
  word-break: break-all;
}
