/* Monke Maker */
.monke-maker-box {
  background: var(--paper);
  border: 4px solid var(--forest-deep);
  border-radius: 22px;
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.mm-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr);
  gap: 1.2rem;
  align-items: start;
}
.mm-stage {
  position: sticky;
  top: calc(var(--header-offset) + 0.5rem);
}
.mm-preview {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 224, 102, 0.45), transparent 40%),
    linear-gradient(180deg, var(--foam) 0%, #e9f8ea 70%, var(--mint) 100%);
  border: 4px solid var(--forest-deep);
  border-radius: 22px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}
.mm-svg { width: 100%; max-width: 360px; height: auto; }
.mm-sign text { font-family: var(--font-display); }
.mm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}
.mm-actions .btn { cursor: pointer; font-size: 1rem; }
.mm-actions .btn:disabled { opacity: 0.6; cursor: wait; }
.mm-note {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: #3d5a40;
  text-align: center;
}
.mm-controls { display: grid; gap: 1rem; min-width: 0; }
.mm-field { display: grid; gap: 0.5rem; min-width: 0; }
.mm-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest-deep);
}
.mm-label small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d5a40;
}
#mm-name {
  width: 100%;
  font: 600 1.15rem var(--font-body);
  padding: 0.6rem 0.9rem;
  border: 3px solid var(--forest-deep);
  border-radius: 999px;
  background: #ffffff;
  color: var(--forest-ink);
}
#mm-name:focus { outline: 3px solid var(--banana-deep); outline-offset: 2px; }
.mm-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mm-swatch {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--forest-deep);
  cursor: pointer;
  padding: 0;
}
.mm-swatch.is-active {
  outline: 4px solid var(--banana-deep);
  outline-offset: 2px;
  transform: scale(1.08);
}
.mm-swatch:focus-visible { outline: 4px solid var(--leaf); outline-offset: 2px; }
.mm-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  border: 3px solid var(--forest-deep);
  border-radius: 999px;
  padding: 0.2rem 0.75rem 0.2rem 0.25rem;
  background: var(--cream);
  cursor: pointer;
  min-height: 44px;
}
.mm-custom input[type="color"] {
  width: 36px;
  height: 36px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}
.mm-slots { gap: 0.4rem; }
.mm-slots .chip { min-height: 40px; }
.mm-dot { color: var(--banana); font-size: 0.75em; }
.mm-search { max-width: none; }
.mm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
  border: 3px solid var(--forest-deep);
  border-radius: 16px;
  background: #ffffff;
}
.mm-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 600 0.98rem var(--font-body);
  color: var(--forest-ink);
  background: var(--cream);
  border: 2px solid var(--forest-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  min-height: 40px;
  cursor: pointer;
}
.mm-item:hover, .mm-item:focus-visible { background: var(--foam); outline: none; }
.mm-item.is-on { background: var(--leaf); color: var(--cream); }
.mm-none { font-family: var(--font-display); }
.mm-chipdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--forest-deep);
  flex: none;
}
.mm-wearing { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--banana);
  border: 2px solid var(--forest-deep);
  border-radius: 999px;
  padding: 0.2rem 0.3rem 0.2rem 0.75rem;
  font-size: 0.95rem;
}
.mm-tag button {
  appearance: none;
  border: 2px solid var(--forest-deep);
  background: var(--paper);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.mm-empty { color: #3d5a40; font-weight: 600; margin: 0; }
@media (max-width: 760px) {
  .mm-layout { grid-template-columns: 1fr; }
  .mm-stage { position: static; }
  .mm-svg { max-width: 300px; }
  .mm-items { max-height: 220px; }
}
